Java4Shell: patch Java 17, 21, 25 and 27, and check which CPUs your JVMs run on

OpenJDK lists CVE-2026-114938, which Calif calls Java4Shell. Upwind says Oracle's .1 builds fix it; Amazon, Azul and Microsoft have new builds out. GreyNoise has logged exploit attempts, none successful, and VulnCheck has a working exploit. Upwind says only some x86 CPUs run the flawed code.

Share
A blue glass funnel with a side tube pushing a small sphere out. An illustration of output spilling past its limit.

OpenJDK's vulnerability advisory of 17 November lists CVE-2026-114938, a flaw in its HotSpot compiler component scored 8.1 under CVSS 3.1, against Java 17, 21, 25 and 27. Calif, a security firm whose researcher is one of two reporters Oracle credits for the flaw, calls it Java4Shell. By Upwind's account, it is a heap out-of-bounds write in the hardware-accelerated Base64 decoder, and Oracle's builds ending in .1 fix it.

By 15:30 UTC on 18 November no successful exploitation had been reported, and the flaw was not in CISA's Known Exploited Vulnerabilities catalogue. But GreyNoise's tracking page, as updated at 15:18 UTC, counted 69 requests carrying Java4Shell-shaped Base64 from four IP addresses since 17 November, three of them tagged as sources of remote code execution attempts, and no successful intrusion. CISA's entry in the CVE record, made on 17 November, still scores exploitation as "none", automatable as "no" and technical impact as "total". VulnCheck says it already has a full remote code execution exploit for its intelligence customers, though it does not expect easy or wide exploitation.

Read the advisory's list the right way round

The advisory says its vulnerabilities "were fixed in this release" and that "The affected versions are 27.0.1.0.3, 25.0.5.0.3, 21.0.13.0.3, 17.0.21.0.3, 11.0.33, 8u512, and earlier." Those are the last vulnerable builds, not the fixed ones, and the sentence covers every flaw in the release. The risk matrix row for CVE-2026-114938 marks only 17, 21, 25 and 27. The advisory does not name the fixed builds or mention Base64, AVX-512 or the Java4Shell name.

Oracle's CVE record lists the same four builds ending in .0.3 as affected, plus 8u511b33-perf, Oracle GraalVM for JDK 17.0.21.0.3 and 21.0.13.0.3, and Oracle GraalVM Enterprise Edition 21.3.20.0.3. It calls the flaw difficult to exploit, open to an unauthenticated attacker over the network, with "takeover" as the possible result.

Orca says OpenJDK 8 and 11 do not contain the decoder intrinsic; Upwind says standard Java 8 and 11 are not affected and found 11.0.33 clean. The exception is Oracle's Java 8 Performance Pack build in the CVE record; Oracle released 8u513-perf on 17 November as that line's new security baseline, though its notes do not name the CVE. The release still matters on 8 and 11: the advisory marks both against five other CVEs, among them CVE-2026-114939, and Orca says Oracle released 8u513 and 11.0.33.1 in the same update. Neither says those builds fix CVE-2026-114938.

What the bug does, and what is still a claim

Upwind describes a bug in the hand-written assembly that decodes the last few characters of a Base64 string. A malformed string that ends with a stray = makes the decoder calculate a negative output length, so a small write becomes a 64-byte write, 62 bytes past the end of the output array. Java rejects the input afterwards, but neighbouring objects may already be corrupted.

Earlier source-code analyses by Upwind and Equixly, as The Hacker News reported them, judged a crash the likely result. Upwind's updated post now calls "It's just a crash" wrong. It reports that Calif demonstrated heap disclosure and pre-authentication remote code execution against Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate in default configurations, and a client-side exploit against a Java program that connects to a malicious TLS server.

Upwind adds that the technique can first read heap memory, which may hold tokens, keys and personal data. It says Calif is holding back its product-specific exploits.

What Upwind did reproduce is the memory damage. On an AWS c6i instance, with an exact-size output buffer, the overflow corrupted the next object in 97% of rounds and eventually crashed the JVM. Upwind also says Spring Security, Tomcat and Jetty 12 Basic auth, and Auth0's java-jwt pass attacker tokens straight to the vulnerable decoder. Upwind credits OpenJDK with a 9.2 CVSS 4.0 score, but the advisory and the CVE record carry only the 8.1 CVSS 3.1 score.

Which builds fix it

For Oracle's JDK, Upwind lists Java 17 as affected from 17.0.6 to 17.0.21 and fixed in 17.0.21.1, Java 21 up to 21.0.13 and fixed in 21.0.13.1, Java 25 up to 25.0.5 and fixed in 25.0.5.1, and Java 27 up to 27.0.1 and fixed in 27.0.1.1.

Oracle's fixed builds for Java 17, 21, 25 and 27, as Upwind lists them. Each ends in .1.
Oracle's fixed build for Java 17, 21, 25 and 27, as listed by Upwind. Amazon, Azul and Microsoft have shipped their own builds; for other runtimes, Upwind says to take fixed versions from each vendor.

Upwind says Corretto, Temurin, Microsoft, Zulu, Liberica, SapMachine, Red Hat OpenJDK and Oracle GraalVM all carry the same code. Amazon and Azul list CVE-2026-114938 as fixed in builds released on 17 November: Corretto 17.0.21.1.2, 21.0.13.1.2, 25.0.5.1.2 and 27.0.1.1.4, and Zulu 17.70.201, 21.54.201, 25.38.201 and 27.30.201. By 15:30 UTC on 18 November Microsoft's release notes listed new 17.0.21.1, 21.0.13.1 and 25.0.5.1 builds, pointing to the OpenJDK advisory for the flaws they fix without naming this CVE. Red Hat had listed no fixed build, and the only new Temurin release was 27.0.1.1+4, built on the same OpenJDK release as Amazon's and Azul's fixed Java 27 builds. Upwind's lab found Temurin 17.0.21, 21.0.13 and 25.0.5 vulnerable.

One shortcut to avoid: Upwind says advice that the bug was "Fixed in 17.0.11 and 21.0.3" confuses it with JDK-8321599, an older bug in the same decoder. It reproduced Java4Shell on 21.0.13.

Orca says every JDK line from 18 on contains the same code, though it calls that scope unconfirmed and suggests treating those lines as potentially exposed. Every fixed build named above is for 17, 21, 25 or 27, so move any runtime on Java 18, 19, 20, 22, 23, 24 or 26 to a line with a fix.

Who is exposed

Upwind sets out four conditions that must all hold. The JVM is an affected build, including runtimes bundled inside products. The CPU is x86-64 with AVX-512 VBMI, which it lists as Intel Xeon Ice Lake, Sapphire Rapids, Emerald Rapids and Granite Rapids, and AMD Zen 4 or newer, including AWS families such as c6i, m6i, c7i, c7a and m7a. On Linux the CPU flags must include avx512f, avx512bw, avx512vbmi and bmi2. Untrusted Base64 reaches Base64.getDecoder() or getUrlDecoder(). And the decoder is JIT-compiled, which Upwind says is true on any busy service. Upwind says ARM hosts are not affected; Orca says they are not known to be.

Upwind's four conditions for a JVM to be exposed. All four must hold, including an x86-64 CPU with AVX-512 VBMI.
Upwind's four conditions for exposure. By its account, a node without the right CPU does not run the flawed code.

Action Items

  1. Patch. Move Oracle JDK to its .1 builds and other runtimes to their vendor's release for the 17 November advisory, then restart services and rebuild images, as Upwind advises. Orca says to inventory every runtime, bundled ones included.
  2. Put internet-facing services that decode untrusted Base64 first: GreyNoise is already logging exploit attempts, and VulnCheck already has a working exploit. Upwind starts with identity and CI/CD: Keycloak, PingFederate, Jenkins, Artifactory, Jira and Confluence on affected CPUs. Java programs opening outbound TLS connections need the patch too, it adds.
  3. Where you cannot patch tonight, Upwind recommends -XX:-UseBASE64Intrinsics, which it says stopped the overflow on every affected version it tested and works on any architecture. Recreate containers so the setting reaches the running process.
  4. Treat the other stopgap, -XX:UseAVX=2, with more care. Orca says it keeps the JVM off the AVX-512 decoding path, though on Java 21 and later the intrinsic stays active through its AVX2 path, and that Oracle and OpenJDK have validated neither flag as a fix. VulnCheck says either stopgap blocked the overflow in its tests on Java 17, 21 and 25. Upwind and Equixly, as The Hacker News reported, say the AVX flag can slow other work, and Upwind adds that an ARM JVM does not recognise it and fails to start. Do not add -XX:DisableIntrinsic=_base64_decodeBlock as written: on its own, Upwind says, it stops the JVM from starting, and pushed through JAVA_TOOL_OPTIONS it is a fleet-wide outage.
  5. Hunt with Upwind's three signals: a Base64-alphabet token of 32 characters or more that ends in = and whose length is not a multiple of 4, starting with Authorization headers; bursts of IllegalArgumentException from java.util.Base64$Decoder; and unexplained hs_err_pid*.log files or bursts of restarts. None proves compromise, Upwind says, and their absence does not prove safety.

Let the CPU set the order of patching, not whether to patch. The hardware limit comes from the security firms' reading of the code; neither OpenJDK's advisory nor Oracle's CVE record mentions the CPU. As Upwind puts it, the same image can be exposed on one node and safe on another.