Java vulnerability CVE-2026-114938 (Java4Shell)
Java vulnerability CVE-2026-114938 (Java4Shell): 19 of 19 Java app images unpatched the next day
What we found
We install self-hosted apps, try to break them, and tell you if they're worth your time. Today, a Security Report: Java4Shell, CVE-2026-114938, a hole in OpenJDK's Base64 decoder, fixed in OpenJDK's releases of 17 November 2026 (17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1).
Who is affected, from OpenJDK's advisory and Red Hat's bulletin: Java 17.0.6 or newer (fixed releases exist for 17, 21, 25 and 27) without that fix, on an x86 processor with AVX-512 VBMI, in an app that decodes Base64 sent from outside. OpenJDK 8 and 11 are not affected; ARM64 machines are not known to be affected.
What we found on 18 November 2026: 19 of 19 images of 15 popular self-hosted Java apps, read from their registries, carried a Java in the affected range, 14 of them Eclipse Temurin, which had no fixed build of Java 17, 21 or 25 yet that morning; the Amazon Corretto 17, 21 and 25 base images we read were fixed. Of the 29 images we read from the tools we've reviewed, only Nextcloud All-in-One's optional full-text search carries Java.
The Minecraft server image (itzg), rebuilt overnight on 18 November 2026, adds -XX:-UseBASE64Intrinsics by itself; its Java is still 25.0.5.
Until a fixed image is out, Red Hat's interim fix is the flag -XX:-UseBASE64Intrinsics; we set it as JAVA_TOOL_OPTIONS=-XX:-UseBASE64Intrinsics. We ran it with Jenkins, Keycloak and a Minecraft server: each logged "Picked up JAVA_TOOL_OPTIONS" and started. Elasticsearch and OpenSearch throw JAVA_TOOL_OPTIONS away: their start scripts ask for their own Java options (not tested by us). When the fixed image arrives, update and take the setting out.
Red Hat's bulletin: https://access.redhat.com/security/vulnerabilities/RHSB-2026-018
OpenJDK's advisory: https://openjdk.org/groups/vulnerability/advisories/2026-11-17
Not tested: the attack itself (no exploit was run; our test machine's processor has no AVX-512), whether a given app decodes outside Base64 on the affected path, Windows and macOS installs.
The Short
Chapters
- 0:00 Java4Shell: who is affected
- 2:27 Is your Java affected: the checks
- 4:38 How to fix Java4Shell in Docker
- 6:47 Why Java4Shell worked
- 7:42 Java4Shell: 19 self-hosted Java images checked
- 8:46 Nextcloud, Immich and the other tools we reviewed: any Java?
The full narration
What the video says, word for word, by chapter.
Opening (host)
This is a security report on CVE-2026-114938, a hole in Java itself that its finders named Java4Shell.
It affects Java 17 and newer, 21, 25 and 27 included, on x86 servers whose processor has a feature called AVX-512 VBMI.
No login is needed: crafted Base64 text sent to such a server could let an attacker take over the Java app, say the CVE record and Red Hat. The same record rates the attack difficult.
A fix came out on the seventeenth of November 2026. But the next morning, all 19 images we checked, from 15 popular self-hosted Java apps, still had a Java without it.
So today we also show a one-line setting that switches the risky code off, and how to see that it worked.
We install self-hosted apps, try to break them, and tell you if they're worth your time. Today: who is affected, how to check your server, and what to do until your app's image is updated.
What it means for you
Base64 is a common way to write any data as plain letters, used in logins, file uploads and network messages. To decode it faster, Java has a special helper for newer x86 processors that works on many characters at once.
On a short ending with padding, that helper wrote past the end of the space Java had set aside for the result. Picture a clerk filling a form with fifty boxes who, on one odd ending, keeps writing onto the next form in the pile.
The finders, the security company Calif, say they used that to take over apps like Keycloak and Jenkins, with the apps' own default settings. On the eighteenth of November 2026, they still held back their exploits for specific apps, but had published a test showing the bug. America's cybersecurity agency urges patching at once; that day, it did not list the hole as exploited.
OpenJDK rates it 8.1 out of 10, high, and the official record calls it difficult to exploit; Red Hat gives a preliminary 9.8, critical, and does not rate it difficult.
Is this you?
Red Hat's bulletin gives four conditions that must all be true, and the first two take one command each to check. One: your app runs Java 17 or newer without the fix of November 2026; on Java 17 itself, from update 17.0.6 on.
In most containers, this prints the Java inside; on the Jenkins image we checked, Java 21.0.13 from Eclipse Temurin. If it says java is not found, that's not a pass: Traccar's image, for one, keeps its Java in a folder of its own.
A fixed version adds a point one to the October 2026 number, like 21.0.13.1.
A build from late October 2026, such as 21.0.13.0.3, is still affected.
OpenJDK 8 and 11 are not affected, OpenJDK's own table says.
Two, the processor: if this command prints avx512vbmi, yours has the feature, according to Red Hat. On our test machine it printed nothing, and the finders' longer check found just one of its four flags.
Red Hat names, for example, Intel's Ice Lake, Sapphire, Emerald and Granite Rapids, and AMD from Zen 4 on, but the command is what decides.
ARM64 machines are not known to be affected.
On Java 21 and 25, the setting UseBASE64Intrinsics is on by default whenever UseAVX is 2 or more, so that setting alone tells you nothing. Red Hat's third condition is about UseAVX: at 2 or lower, Java uses no AVX-512, and on ours it read 2.
Four: the app decodes Base64 sent from outside; Red Hat says logins and tokens often are, even before you sign in. You can't check that one easily, so if the others are true, treat the app as affected.
How to fix it
The real fix is a Java update; when an app bundles its own Java, take it through the app's own updates. For a Docker app, that means a newer image.
But on the morning of the eighteenth of November 2026, Eclipse Temurin had no fixed build of Java 17, 21 or 25 yet. Amazon's Corretto had published one the day before.
And Temurin is the Java in 14 of the 19 app images we checked.
Until your image is updated, Red Hat and the finders give a setting that switches the fast Base64 helper off.
In a docker compose file, we put it under environment, as JAVA_TOOL_OPTIONS, then recreate the container.
Then check the app's log: Java itself prints Picked up JAVA_TOOL_OPTIONS when it takes the setting. We did that with Jenkins and Keycloak: both logged the line, started and answered, and the running Jenkins read UseBASE64Intrinsics false.
No line means it didn't take: the start scripts of Elasticsearch and OpenSearch, for example, throw this variable away. For those, the flag goes into the app's own Java options setting, next to anything already there, which we did not test.
On a Minecraft server, the line showed five times, once per Java program, and the server started.
One image now does it for you: the Minecraft server image we read, rebuilt overnight, adds the setting by itself, as its documentation now says.
Red Hat prefers this flag to the other option, UseAVX 2, which switches off AVX-512 altogether and stops Java from starting on ARM machines.
When the fixed image arrives, update and check the version with the same command; then the workaround can come out, as Red Hat's advice goes.
And to see whether someone already got in? Red Hat's bulletin gave no signs when we read it; America's cybersecurity agency says to watch for unexpected Java crashes and suspicious Java processes.
Why it worked
Java is meant to be memory safe: it manages memory for the programmer and checks each access. But its fastest helpers are written in low-level code, even assembly, where memory mistakes still happen. Java switches to such a helper once the same code has run many times.
The Base64 helper writes up to 64 bytes in one go, with a mask that says which of them count. For a short ending with padding, it worked out the length as less than zero, and the mask let all 64 through.
The fix is two instructions and a comment: a padded ending of fewer than four characters now goes to Java's ordinary code.
It changes one file, the one for x86 processors, and the helper it fixes is only built when the processor has AVX-512 VBMI and BW.
Our lab test
We read 19 images of 15 popular self-hosted Java apps straight from their registries, at the tags people pull, without running them.
All 19 had a Java in the affected range: Minecraft, Jenkins, Keycloak, Elasticsearch, Nexus, Komga and more. The Minecraft server image was rebuilt overnight, a few hours after the fix, and still came with Java 25.0.5 from Temurin.
Started as shipped, with nothing set by us, its server ran with the setting already on its command line.
Of the six Java base images we read, Amazon's three Corretto images had the fix, and Temurin's three did not.
Debian's tracker still listed its releases bookworm and trixie as vulnerable that morning.
On our test machine we also started Jenkins, Keycloak and a Minecraft server with the setting, as in the fix above. We only checked that each app took the setting and kept working. We never sent them the attack.
The tools we reviewed
Of the 29 images we read from the tools we've reviewed, only one carries Java, and it is optional. It is Nextcloud All-in-One's full-text search, which runs Elasticsearch, with Java 27, an Oracle OpenJDK build in the affected range. It only runs if you switch it on in All-in-One's interface; the project's readme lists it as optional. It runs Elasticsearch, so JAVA_TOOL_OPTIONS won't take; All-in-One has FULLTEXTSEARCH_JAVA_OPTIONS for it, untested by us.
What we did not test
We did not try the attack, on any machine, and our test machine's processor could not run the affected code anyway. Our scan reads which Java an image carries; it can't tell whether an app sends outside Base64 down the affected path. Minecraft is not on the finders' lists of apps they attacked, and we did not test whether it can be.
Every image here is as we read it on the eighteenth of November 2026; images change, so check yours with the command.
Outro
Next: our security report on the OpenSSH password bypass, published on the sixteenth of November 2026.
We read the docs. Then we measured. Haste ye back.
Sources
Snapshots of 2026-11-18, pinned to the commit we tested.
- web:
- https://openjdk.org/groups/vulnerability/advisories/2026-11-17
- https://cveawg.mitre.org/api/cve/CVE-2026-114938
- https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json
- https://www.cisa.gov/news-events/alerts/2026/11/17/critical-java-vulnerability-requires-immediate-patching
- https://security-tracker.debian.org/tracker/CVE-2026-114938
- https://api.adoptium.net/v3/assets/latest/21/hotspot?os=linux&architecture=x64&image_type=jre
- https://api.adoptium.net/v3/assets/latest/17/hotspot?os=linux&architecture=x64&image_type=jre
- https://api.adoptium.net/v3/assets/latest/25/hotspot?os=linux&architecture=x64&image_type=jre
- https://github.com/openjdk/jdk21u/commit/8e115fb5c7c5e2b35f0aa86353ce3f84b49e7319.diff
- https://access.redhat.com/security/vulnerabilities/RHSB-2026-018
- https://calif.io/java4shell
- https://access.redhat.com/security/cve/cve-2026-114938
- https://raw.githubusercontent.com/corretto/corretto-27/27.0.1.1.4/CHANGELOG.md
- https://api.adoptium.net/v3/info/release_names?release_type=ga&version=%5B21.0.13%2C22%29&vendor=eclipse
- https://github.com/nextcloud/all-in-one/tree/ccaeea57cbb09140494caa6003fe8a0997e14646
- Files: readme.md
- https://github.com/elastic/elasticsearch/tree/48acba663b09e70b115dd879329141506c377890
- Files: elasticsearch-env
- https://github.com/openjdk/jdk17u/tree/e8adc958475b92b9f251145c6ce20532be16d806
- Files: vm_version_x86.cpp
- https://github.com/openjdk/jdk25u/tree/fda231468e56663992785ec199a6efb8eca3cc7a
- Files: vm_version_x86.cpp
- https://github.com/openjdk/jdk21u/tree/ccb06ed8ec75927d88ff859a9198a7ea72f698b6
- Files: stubGenerator_x86_64.cpp, globals_x86.hpp, vm_version_x86.cpp
- https://github.com/itzg/docker-minecraft-server/tree/22613f0349148d073203e7f44d234605dedaa33a
- Files: start-finalExec-jvmFlags, jvm-options.md
- https://github.com/opensearch-project/OpenSearch/tree/b9f09249b4a9922f0d0bc5bb8f62f90cf95e5eea
- Files: opensearch-env
How this was checked
71 claims, each checked against its cited source by a verifier that did not write them; every number recomputed from the raw lab data by a second verifier. How we test: the method.
Corrections
None so far. Found a mistake? Tell us.