Java4Shell: CISA's Java alert, and how to find every JVM you run

CISA urges immediate patching of CVE-2026-114938 in the JVM's Base64 decoder. Start by finding every Java runtime you run, including ones hidden in apps and container images, then patch per Oracle's advisory.

Published 2 min read#Security updates#App security

If you run anything written in Java on a server, or a tool that runs on Java without you knowing it, this news is for you. Here you'll see what CISA said about the flaw, and how to find every Java runtime you have before you start patching.

What is the Java4Shell vulnerability?

The Java4Shell vulnerability is CVE-2026-114938, a bug in Base64 decoding inside the JVM. Crafted Base64 input can crash the JVM, and may let someone run code on your server without logging in.

According to CISA's official Java4Shell alert, the bug is in the Base64 decoder of the HotSpot JVM on x86-64, which is part of the JDK. The agency urges immediate patching, and points to Oracle's advisory for the affected versions and patching guidance.

Base64 turns any bytes into text made of letters and digits, so you find it everywhere: tokens, email attachments, images inside JSON. Any service that decodes Base64 from the outside can be a way in.

Why might you be affected without knowing it?

The hard part of this flaw is that Java is often not a separate program on the server. The alert itself says JDKs and Java runtimes can be bundled inside third-party applications, container images and appliances, and may not appear as separate entries in an inventory.

So if you ask "do I have Java?" and open the list of installed programs, the answer can come back "no" and be wrong. A search server, a CI tool, the admin panel of a network device: any of them can have a JVM inside.

How do you find every JVM you run?

You look for the JVM's own files, not for program names, because every hidden Java has to ship those files.

find / -name 'libjvm.so' 2>/dev/null
for j in $(find / -path '*/bin/java' -type f 2>/dev/null); do echo "$j"; "$j" -version 2>&1 | head -1; done
  1. Run both commands on every server, and you get the location of each JVM and its version.

  2. Do the same inside every container image you run, because an image has its own files.

  3. Next to each one, write down who owns it, and whether the service on top of it is open to the internet.

What do you do now?

CISA asks you to apply Java and vendor patches as soon as they are available, starting with internet-facing systems. If patching isn't possible yet, it asks for temporary controls:

  • Validate any Base64 input before you decode it, and reject what isn't well formed. The same idea is in checking uploaded files.

  • Put a limit on input size.

  • Reduce unauthenticated access to the service.

  • Watch for JVMs that crash unexpectedly, odd Java processes, and Java runtimes nobody remembers installing.

Every new security update lands in the security updates topic.

Where do you start?

The lesson for us as developers and server owners: you can't patch what you don't know you have, so the inventory comes before the patch. Run the search today on every server and every image, and put internet-facing services at the top of the list.

If you want someone to test your servers and apps before someone else finds the flaw, there's Muhassan. How many JVMs showed up in your inventory, and how many did you not know about?

FAQ

If I don't write Java, does this matter to me?

Yes, it can. Many tools ship with Java inside, such as search servers, network appliances and container images, and they don't show up in an inventory as a separate program. Look for them before you decide.

What do I do if the patch hasn't reached my tool yet?

Add temporary protection: validate Base64 input and cap its size, and reduce unauthenticated access to the service. When the vendor ships a patch, install it.

How do I know if someone tried to exploit it on my server?

Watch for unexpected JVM crashes, odd Java processes and Java runtimes you don't recognize. Repeated crashes in an internet-facing Java service are reason enough to look deeper.

Share

More articles