# CVE-2026-114938: Java4Shell, a Java Base64 decoder memory corruption with public PoC

Malformed Base64 input can corrupt the Java heap on x86-64 CPUs with AVX-512 VBMI, and researchers report remote code execution in apps such as Jenkins and Jira. A public proof of concept shows the memory corruption; no exploitation in the wild is confirmed and it is not in CISA KEV.

- Vendor: Oracle Corporation (OpenJDK and Java distributors), Java HotSpot Base64 decoder (x86-64 with AVX-512 VBMI)
- Severity: HIGH (CVSS 3.1 8.1)
- Exploited (CISA KEV): not listed
- EPSS: 72.5% on 2026-12-02
- Public exploit: yes
- Patch available: yes
- Vendor advisory: https://www.oracle.com/security-alerts/cspunov2026.html
- Published: 2026-11-17; updated: 2026-12-02
- Page: https://patchtonight.com/breaking/CVE-2026-114938/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| Oracle Java SE 17.0.6 to 17.0.21.0.3 (OpenJDK 17.0.6 and later, and distributions built from it) | 17.0.21.1 or later |
| Oracle Java SE 21 up to 21.0.13.0.3 | 21.0.13.1 or later |
| Oracle Java SE 25 up to 25.0.5.0.3 | 25.0.5.1 or later |
| Oracle Java SE 27 up to 27.0.1.0.3 | 27.0.1.1 or later |
| Oracle Java SE 8 Performance Pack 8u511b33-perf, Oracle GraalVM for JDK 17 and 21, GraalVM Enterprise 21.3.20 | Check Oracle's advisory for fixed builds |
| Amazon Corretto 27 | 27.0.1.1.4 or later |
| OpenJDK 8 and 11 (standard builds), ARM64 hosts, x86-64 CPUs without AVX-512 VBMI | Not affected |

## Why this matters

Java runs a huge share of enterprise software: identity providers, CI servers, wikis, artifact stores and message brokers. The bug is in the JVM itself, so every application on an affected runtime inherits it, whichever vendor wrote the application. Calif reports remote code execution in default configurations of **Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate** before login. A public proof of concept exists, and EPSS puts the chance of exploitation in the next 30 days at 72.5%. It is on PatchTonight because Oracle and OpenJDK are not vendors we track, but nearly every organisation has Java in production.

**Products we track.** No tracked vendor advisory for this CVE was known when this page was written. Palo Alto Networks publishes Cortex detections for it but does not say its products are affected. If a tracked vendor publishes an advisory, it will appear in the "Also affects products we track" box on this page.

## What it is

HotSpot's C2 compiler speeds up `java.util.Base64` decoding of short inputs using AVX-512 VBMI instructions. For input ending in `=` padding, the length calculation underflows to -1 or -2 and produces an all-ones write mask. The JVM then writes 64 bytes where it expected a few. Calif shows a 65-byte input writing 62 bytes past a 50-byte array. Java rejects the input afterwards, but neighbouring objects are already corrupted. Calif's trigger is 64 `A` characters followed by `=` (128 on OpenJDK 17).

Any code that Base64-decodes data an attacker controls can reach it: login tokens, `Authorization` headers, cookies, uploads. Red Hat says successful exploitation can run arbitrary code in the Java process, or read adjacent heap memory that may hold credentials or session tokens. The Apache Shiro project notes that its remember-me cookie decoder is one such path.

Ratings differ. Oracle's CVE record scores it CVSS 3.1 **8.1** (High, attack complexity high). Calif scores it CVSS 4.0 9.2 and Red Hat rates it Critical (9.8). CISA's data in the CVE record says exploitation is "none" and not automatable.

**Exploitation in the wild: not confirmed.** The CVE is not in CISA KEV (catalog 2026.11.30). Group-IB saw no exploitation as of November 18, and Palo Alto Networks reports no confirmed exploitation. EPSS is 72.5% (99th percentile) on 2026-12-01. Calif published a bounded proof of concept that shows the memory corruption, and withheld application-specific exploit chains. There is no universal exploit: success depends on the application's Base64 use and heap layout. Palo Alto Networks reports that about 28,300 malformed login requests in 20 seconds crashed a test Spring Boot app, so a denial of service is the easier outcome.

## Am I affected?

You need **all three**:

1. **A Java runtime built from OpenJDK 17.0.6 or later**, before the fix. That covers Oracle Java SE and OpenJDK, GraalVM, Amazon Corretto, Eclipse Temurin, Microsoft Build of OpenJDK, Azul Zulu, BellSoft Liberica, SapMachine and Red Hat OpenJDK. Java 8 and 11 standard builds are not affected (Red Hat; Palo Alto Networks), though Oracle lists the Java 8 Performance Pack 8u511b33-perf.
2. **An x86-64 CPU with AVX-512 VBMI.** Calif lists Intel Ice Lake, Sapphire Rapids, Emerald Rapids and Granite Rapids Xeons, and AMD EPYC and Ryzen Zen 4 or newer. ARM64 hosts, including AWS Graviton, are not affected.
3. **Application code that decodes attacker-controlled Base64.** Many common applications do.

Check the CPU on Linux (all four flags must appear):

```
grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$'
```

Check the Java version of the **running process**, not just the host install:

```
java -version
```

Many products bundle their own JRE: appliances, container images, IDE-based tools and vendor installers often do. CISA says these may not appear in your software inventory.

## What to do

1. **Upgrade the JDK or JRE** to a fixed build. Oracle's fixed builds, as reported by Palo Alto Networks and Group-IB, are 17.0.21.1, 21.0.13.1, 25.0.5.1 and 27.0.1.1. Palo Alto Networks lists Amazon Corretto 17.0.21.1.2, 21.0.13.1.2, 25.0.5.1.2 and 27.0.1.1.4, and Azul Zulu 17.70.201, 21.54.201, 25.38.201 and 27.30.201. For other distributions, use your supplier's advisory, since backported builds use different numbers.
2. **Restart every JVM and rebuild container images.** Palo Alto Networks notes that updating files on disk does not protect running processes.
3. **Update bundled runtimes.** Check each product that ships its own Java. Siemens fixed Industrial Edge Management Pro V1.15.21 and V2.3.3 and Management Virtual V3.0.3. Siemens has no fix yet for Desigo CC Advanced Reporting V8 and V9, Siveillance Control and Siveillance Control Pro.
4. **Move off unsupported releases.** Palo Alto Networks lists Java 18 to 20, 22 to 24 and 26 as having no fix; move to a supported LTS (21 or 25).
5. **If you can't patch tonight**, use a JVM flag and restart the service (Calif, oss-security):
   - `-XX:-UseBASE64Intrinsics` turns off the accelerated Base64 code. It is the narrowest option, with a possible performance cost. You can set it through `JAVA_TOOL_OPTIONS` (Apache Shiro).
   - `-XX:UseAVX=2` turns off AVX-512. Use it only on x86-64: **ARM JVMs will not start with it.**
   - Don't use `-XX:DisableIntrinsic=_base64_decodeBlock` alone; Palo Alto Networks says it can stop the JVM starting.
   - A buffering reverse proxy is not a complete defence, Calif says; it does not stop the Elasticsearch chain or cover traffic after a WebSocket upgrade.
6. **Patch in this order** (Palo Alto Networks): internet-facing identity providers, critical infrastructure, other internet-facing Java services that handle authentication or uploads, then internal services.
7. **If an exposed service ran a vulnerable version,** review it for the signs below. Red Hat warns that heap reads may expose credentials and session tokens, so if you see signs of compromise, rebuild the host and rotate secrets the process could read.

## Detection

No file hashes, IP addresses or domains have been published. These behavioural signs come from Palo Alto Networks and CISA. They may indicate attempts, and their absence doesn't prove safety.

- Base64 tokens of 32 or more characters that end in `=` and whose length is not a multiple of four, especially in `Authorization` headers.
- Bursts of `IllegalArgumentException` from `java.util.Base64$Decoder` in application logs.
- Unexplained `hs_err_pid*.log` crash files or repeated service restarts.
- Unexpected JVM crashes, rogue runtimes and suspicious child processes of Java services (CISA).
- Palo Alto Networks says Cortex XDR Agent detects the flaw in Oracle Java SE on Windows and macOS.

## Sources

- [CVE record (Oracle)](https://cveawg.mitre.org/api/cve/CVE-2026-114938)
- [CISA alert, critical Java vulnerability](https://www.cisa.gov/news-events/alerts/2026/11/17/critical-java-vulnerability-requires-immediate-patching)
- [CISA Known Exploited Vulnerabilities catalog](https://www.cisa.gov/known-exploited-vulnerabilities-catalog)
- [Calif, Java4Shell write-up and proof of concept](https://calif.io/java4shell)
- [oss-security post (Nov 17)](http://www.openwall.com/lists/oss-security/2026/11/17/31)
- [Red Hat CVE page](https://access.redhat.com/security/cve/cve-2026-114938)
- [Amazon Corretto 27 changelog](https://github.com/corretto/corretto-27/blob/27.0.1.1.4/CHANGELOG.md)
- [Apache Shiro blog](https://shiro.apache.org/blog/2026/11/apache-shiro-java4shell.html)
- [Palo Alto Networks, Java4Shell risks and mitigations](https://www.paloaltonetworks.com/blog/cloud-security/java4shell-cve-2026-114938-risks-mitigations.md/)
- [Group-IB analysis](https://www.group-ib.com/blog/java4shell-vulnerability/)
- [Siemens SSA-272816 (Industrial Edge)](https://cert-portal.siemens.com/productcert/html/ssa-272816.html)
- [Siemens SSA-810379 (Desigo CC, Siveillance)](https://cert-portal.siemens.com/productcert/html/ssa-810379.html)
- [BleepingComputer](https://bleepingcomputer.com/news/security/critical-java4shell-flaw-allows-rce-attacks-on-major-java-applications)

---

Data from PatchTonight (https://patchtonight.com), compiled from vendor advisories, CISA KEV and FIRST EPSS. Please credit PatchTonight and link to the CVE page when you use it.
