Java4Shell: CVE-2026-114938 overruns Java's Base64 decoder
CVE-2026-114938 makes Java's AVX-512 Base64 decoder write past its buffer. Patches shipped Nov 17; the RCE claim is disputed, CVSS scores range 8.1–9.8, and no exploitation is known.
A flaw in Java's Base64 decoder, nicknamed Java4Shell, affects a long list of JVM applications. Patches shipped on 17 November 2026. Start with CVE-2026-114938 on NVD; this post draws on Elastic's advisory ESA-2026-vpcg-q2wh and reporting at The Hacker News.
What the bug does
A faster Base64 decoder path runs on x86-64 chips with AVX-512 VBMI support. A malformed input ending in an extra = makes that decoder write 62 or 63 bytes past the end of its output buffer; Java only rejects the input after the write. ARM64 and older x86 chips are not affected. So this is a memory-safety bug in a specific SIMD intrinsic, not a general flaw in all of OpenJDK or Oracle Java.
Is it really RCE?
Here the honest answer diverges from the branding. The flaw is widely tagged "pre-auth RCE," but code execution is disputed:
- The research firm Calif, which disclosed it, withheld its exploit.
- Other labs reproduced only crashes and a memory leak; Blackpoint did not reproduce remote code execution.
- Amazon describes code execution as possible only for "an authenticated low-privileged user" in certain environments.
For Elasticsearch specifically, Elastic rates it an authenticated RCE at CVSS 8.8 (a user with at least read access) and an unauthenticated denial of service at CVSS 7.5; Logstash impact is denial of service only. The scores elsewhere are all over the map: Oracle 8.1 (CVSS 3.1), Calif 9.2 (CVSS 4.0), Red Hat preliminary 9.8, Amazon 8.8. Pick your patch priority from your exposure, not from the highest number in a headline.
Where you will meet it
The Hacker News, citing Calif's (admittedly incomplete) lists, reports default-config reachability without a login for Keycloak, Atlassian Jira and Confluence, JFrog Artifactory, Jenkins, and PingFederate, and reachability behind authentication for Apache Kafka Broker, Apache Solr, Elasticsearch, Gerrit, and Spinnaker.
On the runtime side: Oracle Java 17.0.6 and later (17, 21, 25, 27) and a Java SE 8 Performance Pack build are affected, along with several GraalVM builds. Amazon Corretto and Azul Zulu have fixes; Red Hat builds were still unpatched as of The Hacker News' report.
Exploitation status
Canada's Cyber Centre said it was "not aware of any attacks exploiting the flaw," and it was not in CISA's KEV catalog when The Hacker News checked. A proposed OpenJDK fix describing a similar overflow was posted publicly on 9 September and closed in early November without merging — a detail worth noting given the eventual disclosure.
Action checklist
- Patch the runtime. Move to a fixed Oracle, Corretto, or Zulu build; track your Red Hat and GraalVM builds until fixes land.
- Patch the app too. For Elasticsearch and Logstash, update to 8.19.26, 9.4.10, or 9.5.7 (Elastic Cloud Enterprise 3.8.7 / 4.2.2), which bundle JDK 27.0.1.1+4; restart hosted deployments afterward.
- If you cannot patch, Elastic's interim mitigation is the JVM flag
-XX:-UseBASE64Intrinsicson affected hosts — and do not set-XX:+UseBASE64Intrinsics. - Scope by CPU. Only x86-64 hosts with AVX-512 VBMI are affected; use that to triage a large fleet.
Context
The "4Shell" naming invites a Log4Shell comparison, and the parallels are shallow: Log4Shell was trivially exploitable and mass-scanned within hours, while Java4Shell's code-execution path is contested and unproven in several labs. Patch it as a serious memory-safety bug, but resist importing Log4Shell's panic along with its suffix.