Java4Shell: Pre-Authentication RCE in the Java Base64 Decoder (CVE-2026-114938) – 20261120018

SeverityHIGH 
Threat CategoryVulnerability – Pre-Authentication Remote Code Execution (memory corruption)
Affected PlatformsOpenJDK-based Java 17 (17.0.6 and later), 21, 25 and 27, running on x86-64 CPUs with AVX-512 VBMI – across all distributions (Oracle Java SE, Oracle GraalVM, Red Hat, Amazon Corretto, Eclipse Temurin, Microsoft, Azul Zulu, BellSoft Liberica, SAP SapMachine); also Oracle Java 8 Enterprise Performance Pack. ARM64 and x86-64 without AVX-512 VBMI are not exposed; standard Java 8 and 11 are not flagged
CVECVE-2026-114938 (“Java4Shell”)
CVSS8.1 (CVSS v3.1, High, assigned by Oracle) – CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H; the finder, Calif, rates it 9.2 (CVSS v4.0, Critical)

1. Overview

CVE-2026-114938, nicknamed “Java4Shell,” is a memory-corruption vulnerability in the Base64 decoder of the Java runtime (the HotSpot JVM used by OpenJDK and the distributions built from it). Specially crafted Base64 input causes the hardware-accelerated decoder to write past the end of a heap buffer. The corruption can crash the Java process and, with further work, can be turned into remote code execution – triggered by an unauthenticated attacker, because many applications decode attacker-supplied Base64 (authentication headers, tokens, cookies) before any login check.

The flaw was disclosed on 17 November 2026, alongside fixes from Oracle and the OpenJDK project. Because Java is embedded in an enormous range of server software, the practical blast radius is large: the finder, Calif, reports demonstrating unauthenticated code execution against six widely used products in their default configurations – Keycloak, Atlassian Jira, Atlassian Confluence, JFrog Artifactory, Jenkins, and PingFederate – and says the list is not exhaustive.

2. Who is Affected

Java is one of the most pervasive server platforms in use, so a very large number of systems are potentially affected, including many in Bhutanese government and enterprise environments. CISA has described the flaw as “critical” and strongly urged organizations to patch immediately, prioritizing internet-facing systems.

Two points determine real exposure:

  • Bundled Java runtimes are the main risk, not just the system JDK. Applications such as Jira, Jenkins and Keycloak, as well as appliances and container images, ship their own private copy of Java. Updating the operating system’s JDK does not fix those – each runtime must be identified and patched on its own.
  • The flaw is limited to x86-64 with AVX-512. Only OpenJDK-based Java 17 (17.0.6 and later), 21, 25 and 27 on an x86-64 CPU with the AVX-512 VBMI feature are affected. ARM64 has no known exposure, nor does x86-64 that lacks AVX-512 VBMI. Standard Java 8 and 11 are not flagged (only Oracle’s Java 8 Enterprise Performance Pack is).

As of this advisory, BtCIRT is not aware of any confirmed exploitation within Bhutan; no in-the-wild exploitation has been publicly reported, and CVE-2026-114938 is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog (checked against catalog version 2026.11.18, 18 November 2026). The severity is rated HIGH because:

  • It is a pre-authentication flaw in ubiquitous software, confirmed by the finder to yield remote code execution against six major products in default configurations.
  • Even where reliable code execution is impractical, a single crafted request can crash the JVM – a denial-of-service risk for any exposed service.
  • The root cause and a crash proof-of-concept were public well before the fix (a production crash was reported in June 2026 and the root cause in September 2026), so the path to a working exploit is well understood; Oracle’s 8.1 score reflects only the current difficulty of reliable exploitation, not a limit on impact.

3. How the [Threat/Vulnerability/Attack] Works

The vulnerability is a heap buffer overflow (CWE-122) in the optimized, hardware-accelerated Base64 decoder that the HotSpot JVM uses on capable x86-64 CPUs.

Stage 1 — A malformed Base64 input

An attacker submits a Base64 string with a specific malformed ending (for example a long run of valid characters followed by a stray = padding character). Applications routinely feed such input to the decoder – for instance when decoding an HTTP Basic-auth credential or a token before checking whether it is valid.

Stage 2 — Out-of-bounds write before validation

When the optimized AVX-512 code path handles the malformed final group, an internal output-length calculation underflows and goes negative. This turns a masked 64-byte vector store into a full write that lands roughly 62–63 bytes past the end of the decoder’s output array. Crucially, this write happens before Java validates the input: the runtime then rejects the bad string and throws an exception, but the neighbouring heap memory is already corrupted.

Stage 3 — Crash or remote code execution

The corrupted heap can crash the JVM immediately or later (for example during garbage collection) – a reliable denial of service. Converting the corruption into code execution requires substantial additional work (controlling heap layout, turning the fixed write into read/write primitives, and tailoring a chain to the specific application and JVM build), which is why exploitation is rated high-complexity. The finder has published only a local proof-of-concept that tests whether a given JDK is vulnerable; the weaponized, per-product exploit chains are being withheld until organizations have had time to patch.

Preconditions:

  • An x86-64 CPU exposing AVX-512 VBMI to the JVM (Linux CPU flags avx512f, avx512bw, avx512vbmi, bmi2). ARM64 is not affected.
  • The decoder must have been JIT-compiled to the optimized path, which happens after the service has processed enough Base64 input – i.e. busy, long-running services are the realistic targets.
  • An application code path that passes untrusted data to the Base64 decoder, reachable without authentication for pre-auth impact.

4. Indicators to Watch For

Exposure (am I vulnerable?)

  • Any Java process running an OpenJDK-based runtime at version 17.0.6+ (or 21 / 25 / 27) below the patched build, on an x86-64 host with AVX-512 VBMI. Inventory the runtime each service actually uses – including Java bundled inside applications, appliances and container images, which often does not appear as a separate entry in software inventories.
  • Version numbers alone are not conclusive (CPU features and JVM settings also matter). The finder publishes a local test (a small trigger program) at calif.io that reports whether a specific JDK is vulnerable.
  • Internet-facing services that decode Base64 credentials or tokens before authentication (reverse-proxies, SSO/identity services, CI/CD, artifact repositories, collaboration tools) – prioritize these.

Possible exploitation / impact

  • Unexpected JVM crashes or restarts, segmentation faults, or HotSpot fatal-error logs (hs_err_pid*.log) on exposed Java services – these can indicate crash-level triggering of the flaw.
  • Anomalous child processes, outbound connections, or new files created by a Java service account, consistent with code execution in the Java process.

5. Recommendations

5.1. For organizations and government offices

  • Patch every affected Java runtime and restart it. Apply the fixed build for each runtime and restart the JVM (a running JVM keeps the vulnerable code until restarted). Per Rapid7’s reading of Oracle’s November 2026 Critical Patch Update, the fixed Oracle builds are 17.0.21.1, 21.0.13.1, 25.0.5.1 and 27.0.1.1 (GraalVM Enterprise 21.3.20.1; Java 8 Performance Pack 8u513-perf). Obtain patches from Oracle’s November 2026 CPU, the OpenJDK advisory, or your JDK distribution’s security update, and from each application vendor for bundled Java.
  • Inventory runtimes, not just packages. Identify the exact Java vendor and build used by every service, including runtimes embedded in applications, appliances and container images. Rebuild and redeploy container images on patched base images.
  • If you cannot patch immediately, apply the interim JVM mitigation. Restart the affected JVM with -XX:-UseBASE64Intrinsics, which disables only the vulnerable hardware-accelerated Base64 routine while leaving other optimizations in place. The finder also notes -XX:UseAVX=2 disables AVX-512 entirely, but it applies only to x86-64 and will prevent ARM JVMs from starting – stick to the -XX:-UseBASE64Intrinsics flag instead of -XX:UseAVX=2.
  • Add application-layer compensating controls as recommended by CISA: validate and restrict Base64 input at the application boundary, enforce input-size limits, and limit unauthenticated access to exposed services.
  • Prioritize internet-facing and pre-auth decoders. Patch externally reachable services that decode credentials or tokens before authentication first.
  • Monitor and hunt. Watch exposed Java services for unexplained JVM crashes and anomalous process or network activity, and centralize logs so these stand out.

6. Reporting

If you suspect your organization, device or account has been affected by this threat, or observe activity matching this pattern, please report it to BtCIRT at cirt@btcirt.bt

7. Sources and References

  1. MITRE / CVE Record – CVE-2026-114938 (CNA: Oracle), 17 November 2026. https://www.cve.org/CVERecord?id=CVE-2026-114938
  2. Calif — “Java4Shell” (Quang Luong), 17 November 2026.
    https://calif.io/java4shell
  3. CISA – “Critical Java Vulnerability Requires Immediate Patching,” 17 November 2026. https://www.cisa.gov/news-events/alerts/2026/11/17/critical-java-vulnerability-requires-immediate-patching
  4. Rapid7 – “CVE-2026-114938: Reported Critical Pre-Authentication Remote Code Execution in Java 17,” 17–19 November 2026. https://www.rapid7.com/blog/post/etr-cve-2026-114938-reported-critical-pre-authentication-remote-code-execution-java-17/

Scroll to Top