What happened
On November 17, 2026 the security firm Calif disclosed Java4Shell, tracked as CVE-2026-114938. It is a memory-corruption flaw in OpenJDK's Base64 decoder. According to Calif and to Oracle's November 2026 Critical Security Patch Update, the problem sits in an optimized code path that uses AVX-512 VBMI instructions on x86-64 processors. When the decoder handles a short, badly padded tail, it miscalculates how many bytes to store and writes past the end of its output buffer before Java rejects the input.
Calif rates the flaw 9.2 (CVSS 4.0). Oracle, which assigned the CVE, rates it 8.1 (CVSS 3.1) and calls it difficult to exploit. Calif reports that the corruption can be turned into a heap read, in the style of Heartbleed, and into remote code execution. It demonstrated unauthenticated RCE against default installs of Keycloak, Jira, Confluence, JFrog Artifactory, Jenkins and PingFederate, and authenticated RCE against Kafka, Solr, Elasticsearch, Gerrit and Spinnaker. There is no universal exploit: each application needs its own chain, and the bug only triggers on CPUs with the required instructions. Oracle shipped fixes on November 17, and Amazon Corretto has published fixed builds. According to Qualys, no in-the-wild exploitation had been confirmed as of November 17, and the flaw was not on CISA's Known Exploited Vulnerabilities list. Calif is withholding its exploit code for the individual applications. Other labs have so far reproduced crashes and memory leaks rather than code execution, and one researcher says he has a working exploit that he has not released. CISA has issued an alert urging organizations to patch immediately. Red Hat was still preparing fixes for its own builds when the news broke, so check its advisory if you run Red Hat OpenJDK.
Why it matters
This is a flaw in the runtime, not in one application. Any Java service that decodes attacker-supplied Base64 can reach it, and Base64 is everywhere: HTTP Basic authentication headers, tokens, file uploads and API payloads. Calif also describes a client-side case, where a Java program that connects over TLS to a malicious server can be affected even if it exposes no service.
The affected software is often the most sensitive in an estate: identity providers, CI/CD servers, artifact repositories and wiki or ticketing systems. A heap read from such a process can expose tokens, private keys and personal data even before any code execution. The trigger is public, so defenders should assume exploit development is under way, even though no attacks were confirmed at the time of writing.
What defenders should check
- Affected builds: OpenJDK 17.0.6 and later, plus vendor builds derived from it (Oracle Java SE, Corretto, Temurin, Microsoft Build of OpenJDK, Zulu, Red Hat). Use your vendor's advisory for the exact fixed version; Oracle JDK 17.0.21.1 was released on November 17.
- Hardware: x86-64 with AVX-512 VBMI (for example Intel Ice Lake and newer Xeon, AMD Zen 4 and newer). ARM64 is not affected. On Linux, all of avx512f, avx512bw, avx512vbmi and bmi2 should appear in /proc/cpuinfo for a host to be in scope.
- Inventory: list every JVM, including those bundled inside appliances, container images and CI agents. Rebuild images; patching the host does not fix a container with its own JDK.
- Priority: internet-facing identity, CI/CD, artifact and collaboration systems first, then internal services.
Starting-point commands to adapt in your environment:
# Hosts with the required CPU flags
grep -m1 -o 'avx512vbmi' /proc/cpuinfo
# Running JVMs and their versions
ps -eo pid,args | grep [j]ava
java -version 2>&1 | head -1
Detection ideas
These are starting points to adapt and test, not production-ready rules. The researchers' write-up describes a short malformed Base64 trigger, so malformed padding is the main signal, and exploitation chains likely need repeated attempts.
// KQL: web logs with Basic auth values that are not valid Base64 length
W3CIISLog
| where isnotempty(csAuthorization) and csAuthorization startswith "Basic "
| extend b64 = substring(csAuthorization, 6)
| where strlen(b64) % 4 != 0 or b64 has "==" and strlen(b64) < 8
| summarize attempts=count() by cIP, csUriStem, bin(TimeGenerated, 5m)
| where attempts > 20
# Log grep: Base64 decode failures in application logs
grep -R "IllegalArgumentException" /var/log/<app>/ | grep -i base64
# Crash artifacts from JVMs
find / -name 'hs_err_pid*.log' -mtime -7 2>/dev/null
// KQL (Defender for Endpoint): shells spawned by java
DeviceProcessEvents
| where InitiatingProcessFileName in~ ("java.exe","java")
| where FileName in~ ("cmd.exe","powershell.exe","sh","bash","curl","wget")
| project Timestamp, DeviceName, InitiatingProcessCommandLine, FileName, ProcessCommandLine
A failed or crashed exploit attempt may leave only a decode exception or a JVM crash log, so treat those as leads worth investigating, not proof of compromise.
Investigation
If a vulnerable internet-facing Java service was exposed before patching, collect the following before restarting it, if operations allow:
- Web server, reverse proxy and WAF logs covering November 17 onward, filtered for malformed Authorization headers and unusual request bursts from single sources.
- Application logs and any hs_err_pid crash files, plus the JVM start time and command line.
- Process tree and network connections of the Java process, looking for child shells, downloaded files and unfamiliar outbound connections.
- Because the flaw can disclose heap contents, list the secrets that service held (service tokens, signing keys, database credentials) and decide which to rotate.
- For Jenkins, Artifactory and identity providers, review recent credential, job and token changes.
If you find indications of compromise, our incident response and threat hunting teams can help scope it.
Mitigation
- Update to your vendor's fixed JDK or JRE build, then restart every JVM process and rebuild container images.
- If you cannot patch immediately, Calif recommends starting the JVM with -XX:-UseBASE64Intrinsics, which disables the vulnerable intrinsic, or -XX:UseAVX=2, which disables AVX-512 and must only be used on x86-64 hosts because it prevents startup on ARM. Calif gives no data on effectiveness or performance cost, so test first. Some guidance (VulnCheck) shows the first option with -XX:+UnlockDiagnosticVMOptions placed in front of it. If the JVM refuses to start with the flag on its own, add that option. These are temporary measures.
- Where it is practical, put internet-facing Java services behind a reverse proxy that rejects malformed Authorization headers.
- Rotate secrets held by any exposed service you cannot confirm was clean.
- Add Java runtime versions to your asset inventory so the next runtime-level flaw takes hours, not weeks, to scope.
For related training, see our incident handling course path, and use the vendor advisory as the source of truth for fixed versions.