I ran the trigger on my own machine before writing this. The decoder threw IllegalArgumentException: Input byte array has wrong 4-byte ending unit and the process kept running, so the build on this disk rejects the malformed tail.
The tail handler trusts a length it computed
HotSpot replaces its Java Base64 decoder with a hand-written assembly routine once the method has run often enough, and on x86-64 with AVX-512 VBMI that routine decodes 64 bytes at a time 1. The remainder that does not fill a block goes to a tail handler, which sizes its output as (len / 4) * 3 and subtracts one for each = it counts. A one-character remainder divides to zero, the subtraction underflows to negative one, and that value becomes the mask for a masked store that writes the full 64 bytes 1.
Calif.io reduced the trigger to 64 A characters and a single =; on OpenJDK 17 the same tail is 128 A characters and a single =, because the length threshold to reach the vector path is higher 1. On their test the decoder allocates 50 bytes, writes 64 starting at offset 48, and lands 62 bytes past the end of the array 1. Datadog’s standalone test corrupted a neighboring array header, and the JVM crashed later during garbage collection 2. The decoder throws on the malformed input either way, so catching that exception leaves the damage in place.
The fix is four lines. Before the tail gets sized, a compare sends any remainder shorter than one four-character block to the slow scalar path 3. The arithmetic stays wrong and the fix removes the input shape that reaches it, which is why my test on this box got an exception instead of a crash.
The CPU flag decides whether the bug exists on a host
The intrinsic needs AVX-512 VBMI, which Calif lists on Intel Xeon Ice Lake and newer, and on AMD EPYC and Ryzen from Zen 4 1. ARM64 never runs that code.
grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$'
Mine returns all four, and Akamai’s patch analysis points at the same avx512vbmi flag in /proc/cpuinfo as the check 3. The hardware on this desk is in scope, so the version query is the one that settles it.
The version is a release line, not a build number
The OpenJDK Vulnerability Group’s matrix marks CVE-2026-114938 against the 17, 21, 25 and 27 release lines, and leaves 8 and 11 unmarked for this CVE 4. The bug arrived with the AVX-512 implementation, which puts the floor at 17.0.6, and the downstream builds inherit it 1. Datadog’s table of first fixed releases reads 17.0.21.1+4, 21.0.13.1+4, 25.0.5.1+4 and 27.0.1.1+4 2.
My host runs jdk21-openjdk 21.0.13.1.u2-1 and reports openjdk version "21.0.13.1", build 21.0.13.1+2. The plus-two is my distribution’s build for that tag, not Oracle’s plus-four, because the distro compiles the source itself. The release line carries the fix, and 21.0.13.1 is that line.
Reading the package database next to java -version proves less than it looks, since both describe the runtime the package manager installed.
The JVM inside an image never saw that install
A container image ships its own JRE, and updating the host changes nothing about the copy baked into an image built in the spring. Datadog’s mitigation section covers this: include the runtimes bundled with applications and container images, rebuild the application image after the base image update, and restart the Java processes so they run the new runtime 2. Akamai singles out runtimes embedded in applications and appliances as the ones that get missed 3.
My homelab runs four containers and none of them carries a JVM. I looked for a java binary in each one and found none, though one image gave me no shell to look through. For this box the package database is the whole answer. On a fleet that runs a Java image I read the runtime version inside the image, then ask the running process, because a version in a ticket is worth less than the one the process prints.
What the process reports, and how to turn the path off
jcmd <PID> VM.version prints the runtime a running JVM loaded, and jcmd <PID> VM.flags -all prints the effective flags, which is where a workaround shows up 2. On my box, java -XX:+PrintFlagsFinal -version reports UseAVX = 3 and UseBASE64Intrinsics = true, so the vector path is available and only the release line keeps the store inside the array.
For a host that cannot take the update before a deadline, -XX:-UseBASE64Intrinsics disables the Base64 intrinsics and leaves the other AVX-512 work alone 2. -XX:UseAVX=2 restricts HotSpot to AVX2, which also touches JVM work outside this bug, and a native ARM64 JVM will not start when it sees that flag 2. A shared startup template carrying the option takes ARM services down, so I keep it per service and scoped to x86-64.
The decoder call site sets the top of the order
Datadog traced the AVX-512 path to the basic and URL decoders behind Base64.getDecoder() and Base64.getUrlDecoder(), while Base64.getMimeDecoder() bypasses it 2. That turns reachability into a filter I can run against a list of applications: one that decodes a bearer token on every request sits in a different bucket from one that only touches MIME bodies.
I rate the impact lower than the score suggests. Datadog puts denial of service ahead of code execution when attacker input reaches the decoder, with code execution needing work tailored to each application 2. Calif says there is no universal exploit 1. Both framings put the decoder call site ahead of the fleet count, and that ordering is what I hand over.
Three scores for one bug
The OpenJDK matrix scores CVE-2026-114938 at 8.1 on CVSSv3.1 4. Calif and Datadog both quote 9.2 under CVSS 4.0 12. Akamai reports that Red Hat “has rated the vulnerability Critical with a preliminary CVSS score of 9.8” and names no rubric 3. Those are three scores for one description, and only two of them name a rubric, so I quote a score next to its rubric and add the line about which decoder the application calls.
The order I hand over starts with the CPU flag, moves to the release line, then the decoder call site, and ends at the JVM the service started.
-
Luong, Q. (2026, November 17). Java4Shell: Write once, RCE everywhere. Calif.io. https://calif.io/java4shell ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎
-
Obregoso, S., & Frichette, N. (2026, November 17). Java4Shell: Remote code execution in OpenJDK (CVE-2026-114938). Datadog Security Labs. https://securitylabs.datadoghq.com/articles/java4shell-remote-code-execution-in-openjdk-cve-2026-114938/ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎ ↩︎
-
Akamai Security Intelligence Group. (2026, November). Java4Shell: A closer look and patch analysis (CVE-2026-114938). Akamai. https://www.akamai.com/blog/security-research/java4shell-closer-look-patch-analysis-cve-2026-114938 ↩︎ ↩︎ ↩︎ ↩︎
-
OpenJDK Vulnerability Group. (2026, November 17). OpenJDK vulnerability advisory: 2026/11/17. OpenJDK. https://openjdk.org/groups/vulnerability/advisories/2026-11-17 ↩︎ ↩︎