What is this vulnerability?
CVE-2026-114938 ("Java4Shell") is a heap overflow in the Java runtime’s Base64 decoder that can be triggered over the network without authentication. Oracle and OpenJDK fixed it on 17 November 2026. The researchers (Calif) report working RCE in Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate before login, and in Kafka, Solr, Elasticsearch, Gerrit and Spinnaker after login. They have not released those exploit chains. A public trigger PoC exists, but no exploitation in the wild has been reported, and the CVE is not in CISA KEV.
It affects HotSpot-based Java 17.0.6 and later, and every release from 18 to 27, on x86-64 CPUs with AVX-512 VBMI.
Which assets are listed here?
Assets where we identified Java, or a product known to run on Java (such as Tomcat, Spring Boot, Jira or WebLogic), from data already collected when we crawled the asset. This list is a starting point for triage, not a confirmed list of vulnerable assets. The Java version and the server’s CPU cannot always be determined from the outside, so it includes assets that are not affected. An asset missing from the list may still be affected.
Who is actually exposed
A system is at risk when all of the following are true:
- It runs an affected Java version (below).
- It runs on an x86-64 CPU with AVX-512 VBMI, for example Intel Xeon Ice Lake, Sapphire, Emerald or Granite Rapids, or AMD Zen 4 and Zen 5. ARM is not affected, and neither are Intel CPUs without AVX-512 VBMI (Skylake and Cascade Lake Xeons, Xeon 6 E-core, Alder Lake or later client chips).
- Attacker-controlled data reaches Java’s standard or URL-safe Base64 decoder (
Base64.getDecoder()/getUrlDecoder()); the MIME decoder is not affected. Decoding before login, such as HTTP Basic auth or JWT parsing, is the worst case. Paths that require a login are also exploitable, and Calif reports that Java clients connecting to a malicious TLS server can be compromised too.
Technical details
- Component: HotSpot compiler (
hotspot/compiler): an out-of-bounds write in the AVX-512 Base64 decoding stub used by the C2 JIT. It runs only after the decoder is JIT-compiled, which happens on any busy server. - Attack: over the network, no authentication, no user interaction.
- Trigger length: at least 129 characters on Java 17–20, 65 on Java 21+.
- Impact: RCE per the researchers. IONIX reproduced the memory corruption and a crash in the lab, but has not independently reproduced RCE.
Affected software
- Affected: HotSpot-based Java 17.0.6 and later, and Java 18 to 27, before the fixed builds below. This includes Oracle Java SE, Oracle GraalVM for JDK, Oracle Java SE 8 Performance Pack (8u511b33-perf), and OpenJDK builds such as Temurin, Corretto, Zulu, Red Hat and Microsoft. Java 18–20, 22–24 and 26 are end-of-life and will not be fixed.
- Fixed: 17.0.21.1, 21.0.13.1, 25.0.5.1 and 27.0.1.1 (Oracle and upstream OpenJDK, fix JDK-8393212). Corretto, Azul Zulu and SapMachine shipped fixed builds on 17 Nov; others follow on their own schedule.
- Not affected: Java 17.0.5 and earlier, Java 11 and standard Java 8.
Severity
CVSS 3.1: 8.1 (High), AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H, per Oracle. Red Hat rates it 9.8, and Calif rates it CVSS 4.0 9.2.
How to check a Java server yourself
Run on the host (safe, read-only):
java -version
grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vl|avx512vbmi|bmi2)$'
java -XX:+PrintFlagsFinal -version | grep -E "UseAVX|UseBASE64Intrinsics"
All five CPU flags must appear. Do not test with crafted input against production systems.
Mitigation and recommended actions
- Inventory all Java 17+ systems, starting with the assets listed here. Products often bundle their own Java (e.g. ColdFusion, Zimbra, Elasticsearch).
- Update to a fixed build, or a vendor build whose release notes name CVE-2026-114938, then restart. Move Java 18–26 to a fixed LTS build.
- If you can’t update yet: start the JVM with
-XX:-UseBASE64Intrinsics(recommended by Red Hat and the researchers, verified by IONIX).-XX:UseAVX=2also works, but only on x86-64; ARM64 JVMs will not start with it. - Reduce exposure: restrict internet-facing Java endpoints with a VPN or allowlist.
- WAF rules: a partial control only, since the crafted data can appear in headers, tokens and bodies. See below.
Interim WAF rules
IONIX research, not vendor endorsed. The rules block the input shape that triggers the flaw: one or more whole blocks of 64 Base64 characters, followed by =, ==, x=, x== or xx=. Correctly padded Base64 never has this shape, so normal traffic is not blocked, except in the oversize cases noted below.
Tested on AWS WAF, Cloudflare and Akamai in front of vulnerable and patched Java labs. Each WAF has gaps, listed below. A WAF rule does not replace patching.
Regexes. Apply them with no decoding transformation:
- General, for header, cookie, query and body values:
(?:^|[^A-Za-z0-9+/_%-])(?:(?:[A-Za-z0-9+/_-]|%[0-9A-Fa-f]{2}){64})+(?:(?:[A-Za-z0-9+/_-]|%[0-9A-Fa-f]{2}){0,2}(?:=|%3[Dd])|(?:[A-Za-z0-9+/_-]|%[0-9A-Fa-f]{2})?(?:=|%3[Dd]){2})(?:$|[^A-Za-z0-9+/_=%-])
- Path, for the raw request path:
^[^?#]*/(?:(?:[A-Za-z0-9+_-]|%[0-9A-Fa-f]{2}){64})+(?:(?:[A-Za-z0-9+_-]|%[0-9A-Fa-f]{2}){0,2}(?:=|%3[Dd])|(?:[A-Za-z0-9+_-]|%[0-9A-Fa-f]{2})?(?:=|%3[Dd]){2})(?:$|[/?#;])
- Parsed values, for values the WAF has already decoded (AWS
JsonBody):
(?:^|[^A-Za-z0-9+/_-])(?:[A-Za-z0-9+/_-]{64})+(?:[A-Za-z0-9+/_-]{0,2}=|[A-Za-z0-9+/_-]?==)(?:$|[^A-Za-z0-9+/_=-])
Gaps that apply to every WAF
- Anything past the WAF’s inspection limit isn’t seen. If the application trims whitespace before decoding, an attacker can pad a short trigger past that limit.
- Compressed (
gzip) request bodies, multipart file contents, XML entities (=), and text split over repeated headers or parameters that the application joins.
Cloudflare (tested)
Custom rule, action Block. matches needs a Business or Enterprise plan, and http.request.body.raw needs Enterprise.
(any(http.request.headers.values[*] matches r"(?:^|[^A-Za-z0-9+/_%-])(?:(?:[A-Za-z0-9+/_-]|%(?:25)?[0-9A-Fa-f]{2}){64})+(?:(?:[A-Za-z0-9+/_-]|%(?:25)?[0-9A-Fa-f]{2}){0,2}(?:=|%(?:25)?3[Dd])|(?:[A-Za-z0-9+/_-]|%(?:25)?[0-9A-Fa-f]{2})?(?:=|%(?:25)?3[Dd]){2})(?:$|[^A-Za-z0-9+/_=%-])") or http.request.uri.query matches r"(?:^|[^A-Za-z0-9+/_%-])(?:(?:[A-Za-z0-9+/_-]|%(?:25)?[0-9A-Fa-f]{2}){64})+(?:(?:[A-Za-z0-9+/_-]|%(?:25)?[0-9A-Fa-f]{2}){0,2}(?:=|%(?:25)?3[Dd])|(?:[A-Za-z0-9+/_-]|%(?:25)?[0-9A-Fa-f]{2})?(?:=|%(?:25)?3[Dd]){2})(?:$|[^A-Za-z0-9+/_=%-])" or raw.http.request.uri.path matches r"^[^?#]*/(?:(?:[A-Za-z0-9+_-]|%(?:25)?[0-9A-Fa-f]{2}){64})+(?:(?:[A-Za-z0-9+_-]|%(?:25)?[0-9A-Fa-f]{2}){0,2}(?:=|%(?:25)?3[Dd])|(?:[A-Za-z0-9+_-]|%(?:25)?[0-9A-Fa-f]{2})?(?:=|%(?:25)?3[Dd]){2})(?:$|[/?#;])" or http.request.body.raw matches r"(?:^|[^A-Za-z0-9+/_%\-]|\[bfnrt\x22]|\\\|\\u00(?:[01][0-9A-Fa-f]|2[0-9AaCcEe]|3[A-Fa-f]|40|5[B-Eb-e]|60|7[B-Fb-f]|[89A-Fa-f][0-9A-Fa-f]))(?:(?:[A-Za-z0-9+/_-]|%(?:25)?[0-9A-Fa-f]{2}|\\u00[0-9A-Fa-f]{2}|\/){64})+(?:(?:[A-Za-z0-9+/_-]|%(?:25)?[0-9A-Fa-f]{2}|\\u00[0-9A-Fa-f]{2}|\/){0,2}(?:=|%(?:25)?3[Dd]|\\u003[Dd])|(?:[A-Za-z0-9+/_-]|%(?:25)?[0-9A-Fa-f]{2}|\\u00[0-9A-Fa-f]{2}|\/)?(?:=|%(?:25)?3[Dd]|\\u003[Dd]){2})(?:$|[^A-Za-z0-9+/_=%\-]|\[bfnrt\x22]|\\\|\\u00(?:[01][0-9A-Fa-f]|2[0-9AaCcEe]|3[A-Fa-f]|40|5[B-Eb-e]|60|7[B-Fb-f]|[89A-Fa-f][0-9A-Fa-f]))" or (http.request.body.truncated and http.request.body.raw matches r"(?:[A-Za-z0-9+/_-]|%[0-9A-Fa-f]{2}){64,}(?:%[0-9A-Fa-f]?)?$"))
Known gaps:
- Cloudflare inspects only the first 128 KB of a body. Trigger text placed after it passes.
- The last clause (
http.request.body.truncated) blocks any body cut off inside Base64 text, including valid Base64 bodies over 128 KB, such as JSON file uploads. Drop it, or scope it to endpoints that don’t take uploads.
AWS WAF (tested, on an Application Load Balancer)
Eight regex-match rules, action Block, OversizeHandling: CONTINUE:
| Field to match | Regex | Transformation |
| — | — | — |
| Headers (exclude cookie), values | General | NONE |
| Cookies (all), values | General | NONE |
| QueryString | General | NONE |
| Body | General | NONE and JS_DECODE (two rules) |
| JsonBody (all, values, EVALUATE_AS_STRING) | Parsed values | NONE and JS_DECODE (two rules) |
| UriPath | Path | NONE |
Known gaps:
- On a load balancer, AWS WAF inspects only the first 8 KB of headers, cookies and body. A trigger longer than 8 KB, or a short one placed after 8 KB of other headers or of whitespace in the body, passes.
OversizeHandling: MATCHcloses this, but blocks every request with more than 8 KB of headers, cookies or body, valid or not. - A cookie with a 64-character name and an empty value passes.
Akamai (tested)
App & API Protector custom rules have no regex operator, so build the rule in Property Manager: extract each header, cookie, the query string and the path into a variable with setVariable, test it with the regularExpression criterion (General or Path regex), and denyAccess on a match.
Known gaps:
- The request body isn’t covered, because Property Manager can’t read it.
- Only the headers and cookies you name are checked.
- Trigger text of more than about 8 KB in
Authorization, the query or the path passed.
What to watch for
The more likely sign of an attack is instability, not a shell. Watch for unexpected Java process crashes and hs_err_pid crash logs. A spike of "Input byte array has wrong 4-byte ending unit" or "Last unit does not have enough valid bits" errors on endpoints that do not require login can also be a hint, although ordinary malformed requests cause the same errors. Also watch for unusual process launches or outbound connections from Java services.

