Security Alert

Java4Shell (CVE-2026-114938): What It Is, Who Is Affected and How to Fix It

RS
Raiyan Shahid Building ExamAI, FileForge, CodeCompiler & Party Rush under BrynFlow · Get in touch

Java4Shell (CVE-2026-114938) is a memory-corruption bug in the Base64 decoder that ships with OpenJDK, and it became one of the fastest-rising technology searches in the US on Google Trends this week after CISA told organisations to patch it immediately. People are typing "java4shell vulnerability", "java4shell fix" and "cve-2026-114938 patch". Here is what the Java4Shell vulnerability is, who is actually exposed, which Java versions fix it, and what to do if you cannot update today.

What is Java4Shell?

Java4Shell is the nickname the security firm Calif gave to CVE-2026-114938, which Oracle and the OpenJDK Vulnerability Group disclosed and fixed on November 17, 2026. The flaw sits in java.util.Base64's decoder. On some Intel and AMD processors, the JVM swaps the normal decoding code for a hand-tuned fast path (an "intrinsic") that uses AVX-512 instructions to process many bytes at once. According to Calif and VulnCheck, a malformed Base64 string can make that fast path write past the end of its buffer and corrupt nearby memory.

Because Base64 is everywhere, so are the inputs that can reach the bug: HTTP Basic authentication headers, SAML artifacts, CSRF tokens, MIME-encoded email headers, file uploads and JSON fields that carry encoded data. Help Net Security reports that the trigger can be as small as 64 "A" characters followed by "=" (128 on OpenJDK 17).

How serious is the Java4Shell vulnerability?

It is serious, but narrower than the name suggests. The scores differ: Oracle rates it 8.1 (CVSS 3.1) because it considers the attack complexity high, while Calif rates it 9.2 (CVSS 4.0, critical). CISA published an alert on November 17 that "strongly urges" organisations to patch.

As of November 17, Tenable said there were no reports of exploitation in the wild and the bug was not in CISA's Known Exploited Vulnerabilities catalogue. Calif has published only a proof of concept that checks whether a JDK and CPU combination reproduces the bug, and says it is holding back application-specific exploits until people have had time to upgrade.

Who is affected?

You need three things to be exposed: an affected Java runtime, an affected CPU, and an application that decodes Base64 from untrusted input.

Affected Java versions

Affected processors

The bad code path only runs on x86-64 CPUs that support AVX-512 VBMI: Intel Ice Lake, Sapphire Rapids, Emerald Rapids and Granite Rapids server chips, and AMD Zen 4 or newer. Calif says ARM64 machines (AWS Graviton, Apple Silicon, Ampere) are not affected. On Linux, Qualys says a host meets the hardware condition only if all four of these flags appear:

grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$'

Java4Shell fix: patched Java versions

The only complete fix is to update the Java runtime and restart the application. Oracle's fixed releases are:

Other vendors publish on their own schedules (Qualys lists Amazon Corretto 17.0.21.1.2, for example), so check your vendor's advisory and confirm it names CVE-2026-114938. Run java -version with the same runtime your service uses, not just the one on your PATH.

A common trap: many products and container images bundle their own JDK. Updating the operating system's Java package does not patch a JDK inside a Docker image, an IDE, a build agent or a vendor appliance. CISA specifically asks teams to check software inventories for Java bundled in third-party applications and to fix internet-facing systems first.

If you cannot patch today

Security researchers have pointed to two JVM flags that switch off the vulnerable code path. Neither Oracle nor the OpenJDK advisory mentions them, so treat them as temporary and test before using them in production. Both need a JVM restart.

# Preferred: turn off only the fast Base64 intrinsic
java -XX:-UseBASE64Intrinsics -jar app.jar

# Alternative (x86-64 only): turn off AVX-512 entirely
java -XX:UseAVX=2 -jar app.jar

Qualys warns that the first flag can slow down heavy Base64 workloads, the second has a broader performance cost, and -XX:UseAVX=2 stops Java from starting on ARM machines. CISA's own interim advice is to validate and size-limit Base64 input at the application boundary, limit unauthenticated access, and watch for unexpected JVM crashes. Qualys adds that a reverse proxy alone is not a reliable control.

Does Java4Shell affect Android apps?

None of the advisories list Android. The bug is in a JVM intrinsic for desktop and server x86-64 chips; Android apps run on the Android Runtime (ART), and almost all phones use ARM processors, which Calif says are not affected. Where Android developers should look is the JVMs around their apps: Java or Kotlin backends (Spring Boot, Ktor), self-hosted Jenkins or Artifactory, and build machines with recent Intel or AMD CPUs. Build tools rarely decode untrusted Base64, so the risk there is low, but update the bundled JDK when your IDE vendor ships a fix.

Why Java4Shell matters beyond this bug

Calif says it used AI to find the flaw: The Record quotes the company saying discovery took about an hour and the total token cost was under $200, with a first working exploit about two hours later. That is the same pattern behind the recent rise in AI-era security issues: finding and weaponising bugs is getting cheaper, so the gap between disclosure and attacks is shrinking. The practical lesson for teams is boring but important: keep an inventory of every runtime you ship, including bundled ones, and make "update the JDK and restart" a routine you can do in a day.

Frequently asked questions

What is CVE-2026-114938?

It is the ID for Java4Shell, a memory-corruption flaw in the OpenJDK Base64 decoder's AVX-512 fast path. It can crash a Java process, leak memory and, in some applications, allow remote code execution.

Is Java 8 or Java 11 affected by Java4Shell?

Standard Java 8 and Java 11 releases are not listed as affected. Oracle's Java SE 8 Enterprise Performance Pack is affected and is fixed in 8u513-perf.

How do I fix Java4Shell?

Update to a patched runtime (for Oracle builds: 17.0.21.1, 21.0.13.1, 25.0.5.1 or 27.0.1.1) or your vendor's fixed build, then restart. Until then, researchers suggest starting the JVM with -XX:-UseBASE64Intrinsics.

Is Java4Shell being exploited?

As of November 17, 2026, Tenable reported no in-the-wild exploitation and the flaw was not in CISA's KEV catalogue. Calif has withheld application-specific exploits for now.

Sources and further reading

Facts as reported on November 17–18, 2026. Fixed versions for non-Oracle distributions vary; always check your vendor's advisory.

Where to go next

Learn to build secure software

The free Cybersecurity path covers vulnerabilities, patching and secure coding basics, step by step.

Start the Cybersecurity Path