Java4Shell: how malformed Base64 becomes RCE in the JDK
CISA calls CVE-2026-114938 critical; Oracle scores it 8.1 and Calif, which disclosed it, 9.2. The bug sits in HotSpot's hardware-accelerated Base64 decoder and only reaches x86-64 CPUs with AVX-512 VBMI.

Oracle released the patch for CVE-2026-114938, known as Java4Shell, on November 17. The flaw is a heap buffer overflow in the Base64 decoder that HotSpot uses on x86-64 processors with AVX-512 VBMI.²⁴ CISA issued an alert the same day urging immediate patching and calling the flaw critical, warning that malformed Base64 input could crash the JVM and open the way to unauthenticated remote code execution.¹ Oracle assigns a CVSS score of 8.1, rated high, while Calif, which disclosed the flaw, scores it 9.2 under CVSS 4.0.⁴⁶ The numbers come from different CVSS versions and weigh the conditions an attack needs in different ways.
Where the error lives
HotSpot, the OpenJDK JVM, compiles frequently called methods into native code. For a few of them, Base64 decoding among them, it swaps the Java code for a hand-written routine that uses the processor's vector instructions, called an intrinsic. On x86-64 with AVX-512 VBMI, that routine walks the input in 256-byte blocks and drops to 64-byte blocks when less than that remains.⁶
The defect is in how the last group of characters is handled. According to Rapid7, when that group is malformed, the calculation of the remaining output length goes negative, and the routine performs a 64-byte store that runs 62 or 63 bytes past the end of the calculated output.² Calif's write-up gives a concrete case. An input of 64 A characters followed by one = makes Java allocate a 50-byte array for the result. The write mask of the vector instruction, computed from an already negative length, stops limiting the operation, and all 64 bytes are written starting at offset 48, 62 bytes past the end of the array.⁶ On OpenJDK 17 the triggering input is 128 A characters plus the =, because the size threshold for reaching that path is higher.⁶
Java then detects the invalid input and throws IllegalArgumentException. Catching the exception does not undo the write. The neighboring object stays damaged, and the JVM may crash only later, during garbage collection for example.²
The published OpenJDK fix is short: if fewer than four bytes remain at the end, the native routine hands the work to the ordinary Java decoder.⁷
When the bug is exploitable
Five conditions must hold together. The processor is x86-64 with AVX-512 VBMI, which covers Intel Xeon from Ice Lake onward and AMD EPYC and Ryzen on Zen 4 or newer. The JIT is active, the Base64 intrinsic is enabled (the default), and the code has been called often enough to be compiled.²⁶ Finally, the application has to pass attacker-controlled data to the decoder. Rapid7's example is a web service that decodes HTTP Basic credentials before checking the username and password.²
ARM64 and x86-64 without AVX-512 VBMI are out of scope, according to Cisco, which also excludes its own Silicon One chips.³ Red Hat reports no known exposure on those platforms.² Calif publishes a Linux command that checks the CPU flags (avx512f, avx512bw, avx512vbmi and bmi2).⁶
Getting from memory corruption to remote code execution takes considerably more. Rapid7 notes that a reliable exploit has to influence which objects occupy the affected region and turn the limited write into access to other objects.² Calif says there is no universal exploit: each target needs its own profile, with a route to the decoder, an object whose length can be overwritten and a way to send the leaked data back.⁶ Even so, the company says it demonstrated unauthenticated remote code execution in Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate, and authenticated execution in Kafka, Solr, Elasticsearch, Gerrit and Spinnaker, all in default configurations. The product-specific exploits remain private.⁶
Why "critical" and "high" diverge
Oracle scores the flaw 8.1 under CVSS 3.1: network vector, no privileges, no user interaction, high impact on confidentiality, integrity and availability, and high attack complexity.⁴ Cisco also rates it high.³ The hardware and configuration conditions and the per-application exploitation work described above help explain the high complexity. Calif, calculating under CVSS 4.0, arrives at 9.2.⁶ CISA uses "critical" in its alert without citing a score.¹
The document's name can mislead. Critical Security Patch Update is the monthly fix program Oracle releases on the third Tuesday of each month, alongside its quarterly Critical Patch Updates. The "Critical" in the title is not a severity rating.⁴
Versions, fixes and mitigations
Version ranges vary by source. Cisco and Calif cite OpenJDK 17.0.6 and later.³⁶ The OpenJDK advisory's risk matrix marks the CVE against versions 17, 21, 25 and 27, with no mark for 8 or 11.⁵ Rapid7 repeats that list, cites Red Hat for 17.0.6 as the start of the 17 range and adds Oracle's Java 8 Enterprise Performance Pack, which Oracle includes in its own matrix.²⁴
Oracle's fix table, reproduced by Rapid7, pairs vulnerable and fixed versions:²⁴
- Java SE 17: from 17.0.21.0.3 to 17.0.21.1.
- Java SE 21: from 21.0.13.0.3 to 21.0.13.1.
- Java SE 25: from 25.0.5.0.3 to 25.0.5.1.
- Java SE 27: from 27.0.1.0.3 to 27.0.1.1.
- Java SE 8 Performance Edition: from 8u511b33-perf to 8u513-perf.
- GraalVM for JDK 17 and 21: same fixes as Java SE 17 and 21.
Rapid7's scanner checks also flag Oracle Java 17.0.0 through 17.0.5 and Java 8 before 8u513. Because they rely only on the installed version, they indicate potential exposure without confirming exploitability.² The general version list at the top of the OpenJDK advisory, which includes 11.0.33 and 8u512, covers all ten CVEs fixed in the round, not this one specifically.⁵ For derived distributions, the fixed package comes from the runtime vendor.² Corretto, Temurin, Microsoft, Zulu, Liberica, SapMachine, Red Hat and Oracle OpenJDK appear in Calif's list of OpenJDK-based distributions.⁶
Anyone who cannot update immediately has options, though the sources disagree. Rapid7 recommends restarting the JVM with -XX:-UseBASE64Intrinsics, which turns off only the Base64 acceleration and leaves other optimizations in place.² Calif adds -XX:UseAVX=2, which disables AVX-512, and warns that it applies only to x86-64, since the JVM on ARM does not recognize it and fails to start.⁶ Cisco says no workaround exists for its products.³ CISA points to compensating controls: validating and restricting Base64 input at the application boundary, enforcing input-size limits and limiting unauthenticated access.¹
The JDK nobody inventoried
CISA reminds readers that JDKs and runtimes may not show up as separate entries in software inventories, since they come bundled with third-party applications, container images and appliances.¹ Cisco's list illustrates the point: the advisory, updated on November 19, names more than 20 affected products, among them Secure Network Analytics, Secure Workload, Finesse, Unified Contact Center Enterprise, Intersight Virtual Appliance and Splunk AppDynamics. Catalyst SD-WAN, ISE, IOS XE, NX-OS and the ASA, FMC and FTD firewall lines are listed as not affected. None of the affected products had a fix available yet: Cisco's table lists every fixed release as to be determined (TBD).³
For those cases, Rapid7 advises using the product vendor's update, rebuilding and redeploying container images, and verifying that each running Java process uses the fixed build.²
Exploitation and history
Cisco is aware of public proof-of-concept code and not aware of any malicious use.³ Calif published a local PoC that checks whether a JDK reproduces the corruption.²⁶ As of November 19, none of the advisories cited here reported attacks in progress.
According to Calif, the bug was already known. A user hit it in production and opened an issue on June 9, and in September another developer identified the root cause and proposed an OpenJDK fix that was eventually closed without being merged. Calif says it found the flaw independently on October 24 with the help of an AI agent and reported it to Oracle the same day.⁶ The company says the fixed release shipped on November 17 at 1 p.m. Pacific time.⁶
Sources
- Critical Java Vulnerability Requires Immediate Patching · CISA · https://www.cisa.gov/news-events/alerts/2026/11/17/critical-java-vulnerability-requires-immediate-patching · Nov. 17, 2026
- CVE-2026-114938: Reported Critical Pre-authentication Remote Code Execution in Java 17 · Rapid7 · https://www.rapid7.com/blog/post/etr-cve-2026-114938-reported-critical-pre-authentication-remote-code-execution-java-17/ · Nov. 17, 2026, updated Nov. 19
Show 5 more sourcesHide sources
- Vulnerability in Oracle OpenJDK (Java4Shell) Affecting Cisco Products: November 2026 · Cisco · https://sec.cloudapps.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-nov2026-java-rce-eCa6ss9z · Nov. 18, 2026, updated Nov. 19
- Oracle Critical Security Patch Update Advisory - November 2026 · Oracle · https://www.oracle.com/security-alerts/cspunov2026.html · Nov. 17, 2026
- OpenJDK Vulnerability Advisory: 2026/11/17 · OpenJDK · https://openjdk.org/groups/vulnerability/advisories/2026-11-17 · Nov. 17, 2026
- Java4Shell: Write once, RCE everywhere · Quang Luong · Calif · https://calif.io/java4shell · Nov. 17, 2026, updated Nov. 19
- 8393212: Base64 optimization improvements · commit 5177a70 · openjdk/jdk · https://github.com/openjdk/jdk/commit/5177a70b385c16f26ede191fdac7aaba0bed0f8b