Java4Shell Vulnerability: Check Your Java and CPU

The Java4Shell vulnerability (CVE-2026-114938) corrupts memory when Java decodes a malformed Base64 string on newer x86 CPUs. Check and patch.

The Java4Shell vulnerability, CVE-2026-114938, turns a single malformed Base64 string into memory corruption inside Java itself. It only applies when the Java runtime uses a specific optimized decoder, which depends on both the Java version and the CPU. As of November 23, exploitation attempts are reported, no successful compromise is confirmed, and the flaw is not in CISA’s KEV catalog.

What Happened With the Java4Shell Vulnerability

The flaw sits in the HotSpot x86-64 Base64 decoder that uses AVX-512 VBMI instructions. A malformed Base64 string that ends in an extra “=” makes the decoder write 62 or 63 bytes past the end of its output buffer. Any application that decodes attacker-controlled Base64 with java.util.Base64 can reach it: tokens, headers, uploaded data. Affected are OpenJDK 17.0.6 and later, 21, 25 and 27 (and builds derived from them), plus Oracle’s Java SE 8 Performance Pack according to Azul. Red Hat says OpenJDK 8 and 11 are not affected. The CPU must be an Intel Ice Lake or newer, or an AMD Zen 4 or newer; ARM64 is not affected.

Scores differ by scoring system: Oracle rates the flaw 8.1 (CVSS 3.1), Calif and Cisco Talos 9.2 (CVSS 4.0). The German BSI rates it criticality 2 (high), and CISA and Canada’s Cyber Centre both issued alerts on November 17 urging immediate patching. Calif demonstrated pre-authentication remote code execution against Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate, and post-authentication attacks against Kafka, Solr, Elasticsearch, Gerrit and Spinnaker. There is no universal exploit, so each product needs its own path. SecurityWeek reports probing by GreyNoise (150 or more requests from five IP addresses), WatchTowr, Cloudflare and Previdian, with no confirmed successful intrusion. Cisco’s advisory says a proof-of-concept exploit is available and that Cisco knows of no malicious use; Calif has published a reproducer for the memory corruption but not its weaponized exploits. VulnCheck says it has a working exploit for customers.

Why It Matters

Java sits underneath identity, ticketing, build and messaging systems, and most teams don’t know which CPU generation their servers or cloud instances use. That is why a single “are we vulnerable?” answer is hard: the same Java version is safe on one host and exposed on the next. The flaw is also a reminder about supply chains: Calif’s timeline says a public bug report existed from June 9, and a fix proposed on September 9 was closed unmerged.

Keep the evidence in proportion. We have no reports of successful attacks in Germany, Austria or Switzerland, and exploitation needs a product-specific path to the vulnerable decoder. But patched builds exist, a mitigation flag exists, and probing has started.

What You Should Do Now

  1. Find your exposure. Check which JVMs run OpenJDK 17.0.6 or later, 21, 25 or 27, then check the CPU on those hosts: grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$'. Azul’s check treats a host as exposed only if all four flags appear.
  2. Update to a patched build where one exists. Oracle’s fixed builds, per Canada’s Cyber Centre, are 17.0.21.1, 21.0.13.1, 25.0.5.1 and 27.0.1.1 (and 8u513-perf for the Java SE 8 Performance Pack). Debian has shipped fixed packages, Red Hat has an update for its OpenJDK 25 portable builds (RHSA-2026:100573), and Atlassian says fixed Temurin releases exist. For other distributions, check your vendor’s notice. Restart the services afterwards; a running JVM keeps the old code.
  3. Where no fix exists yet, start the JVM with -XX:-UseBASE64Intrinsics (Azul’s preferred mitigation) or with -XX:UseAVX=2 (Cyber Centre and Talos). The second flag is for x86-64 only: on ARM the JVM may refuse to start, unless you also add -XX:+IgnoreUnrecognizedVMOptions, as Atlassian does. CISA also suggests limiting unauthenticated access and validating Base64 input at the application boundary. Test first. As of November 23, Cisco’s advisory (version 1.3) lists more than 20 affected products and no fixed release for any of them yet, while ISE, IOS XE, ASA and FTD are listed as not affected.
  4. Check products that bundle their own Java: a package update on the host does not change a vendor’s bundled runtime. Keycloak 26.8.2-3 fixes its bundled runtime. Atlassian Data Center products (Jira, Confluence, Bamboo, Bitbucket, Crowd) can use -XX:UseAVX=2 -XX:+IgnoreUnrecognizedVMOptions until the fixed bundles Atlassian announced “in coming days” arrive; Atlassian says its Cloud products are already remediated. For Jenkins, update the Java runtime and restart. Ask each vendor for its status.

DIESEC Perspective

This is an inventory problem before it is a patch problem. If you cannot say which of your Java services run on which CPU generation, start with the externally reachable ones that decode tokens or uploads, and apply the flag there while the vendor builds arrive.

Need help finding which Java services are exposed? Contact DIESEC for a rapid Java runtime and CPU exposure check.

Sources: CISA | Cisco | Azul | SecurityWeek
Published: 2026-11-25 | Category: Vulnerabilities & Patches | ~5 min read