Java4Shell (CVE-2026–114938): Bir “=” İşaretiyle Başlayan JVM Zafiyeti
A heap out-of-bounds write in OpenJDK's AVX-512 Base64 decoder intrinsic, caused by an integer underflow when input ends with padding characters, could allow an attacker to crash the JVM and, under specific conditions, achieve unauthenticated remote code execution.
Published on medium.com
Cybersecurity
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context: what Java4Shell is
Java4Shell (CVE-2026-114938) is a heap out-of-bounds write in HotSpot's x86-64 AVX-512 VBMI Base64 decoding intrinsic. Oracle classifies the affected component as Java SE "Compiler"; in OpenJDK it lives under hotspot/compiler. The flaw is an integer underflow in the handling of Base64 padding, and it sits in a performance optimisation rather than in ordinary Java code.
The JVM replaces some hot, frequently used operations with hand-written, processor-specific machine code instead of running the Java implementation. These routines are called intrinsics. Base64 decoding is one of them: when a decode loop runs often enough, the C2 JIT compiler swaps the standard Java loop for a fast routine written with AVX-512 VBMI instructions. Only "warmed up", JIT-compiled decode paths reach the vulnerable code. A server that continuously processes authentication requests fits that profile exactly.
Because the vulnerable routine is reached through the standard java.util.Base64 decoder, any untrusted Base64 data that arrives there is a potential entry point: authentication headers, tokens, file uploads and network messages. This is also why the bug is described as pre-auth: Base64 decoding usually happens before a password or signature check.
Setup: versions, hardware and preconditions
The affected scope, as published at the time of writing:
| Dimension | Affected |
|---|---|
| Java versions | 17.0.6 and later on the 17 line; all versions on 21, 25 and 27 before the November 2026 fixes |
| Exceptions | Standard Java 8 and 11 are not affected; the exception is Oracle's Java 8 Performance Pack (8u511b33-perf). GraalVM builds are in scope |
| Hardware | x86-64 processors with AVX-512 VBMI: Intel Xeon from Ice Lake to Granite Rapids, AMD EPYC Zen 4 and later |
| Not affected | ARM64 servers, including AWS Graviton |
| Input path | Untrusted Base64 data reaching the standard java.util.Base64 decoder |
Packaged runtimes deserve separate attention. Products that ship their own Java can stay vulnerable even after the system Java on the host is updated; for those, the vendor's update has to be awaited.
Three conditions have to hold at the same time for a system to be in the risky set: the hardware, the Java version and an input path into the decoder.
Finding it: an hour with an AI coding assistant
Calif researcher Quang Luong says he found the bug while developing a zero-click exploit for a phone manufacturer. According to Calif's account, Luong was auditing HotSpot with an AI coding assistant and focused on the JIT compiler, intrinsics and widely used APIs.
The numbers are striking: finding the bug took about an hour with AI assistance, the first working exploit was ready two hours later, and the AI cost stayed under 200 dollars. Calif warns that attackers can do the same, even if more slowly.
There is a parallel thread. Chainguard's CEO said his team independently found and reported the same bug on 13 November while scanning an open-source Java project. Wiz also announced that its AI-based research infrastructure found the vulnerability and produced a PoC within two hours, before the full details were published.
Exploitation
Step 1: reach the intrinsic with a padded input
The problem is in the handling of padding (=) characters at the end of the input. When the input ends with = in an unexpected place, the routine first computes a zero-length output, then performs one more subtraction for the padding, and the length drops to -1.
Step 2: turn the negative length into a 64-byte write
The negative length turns a small write into a 64-byte write. In Calif's example, 64 bytes are written into a 50-byte output array starting at byte 48, so 62 bytes land outside the array.
Step 3: survive the silent failure
After the overflow happens, Java treats the input as invalid and rejects it. What the application sees is an ordinary IllegalArgumentException. The memory corruption stays in the background, and application logs may say nothing about it.
Step 4: defeat the "crash only" expectation
The first independent analyses were cautious for a good reason: the bytes written out of bounds are determined by the decoder, not chosen by the attacker. Early readings therefore predicted a JVM crash.
Calif got past this by controlling the heap layout. Memory is arranged so that the overflow lands on the length field of a neighbouring array. The fixed-content overflow then becomes a limited but selectable write that "grows" the neighbouring array. The grown array is used to write chosen bytes, and a second array is used to read memory back. Calif calls this technique JavaBleed. The resulting read and write primitives are then carried through to code execution.
Step 5: what the exploit chains achieve
Calif's published results:
- Unauthenticated RCE (default configuration): Keycloak, Atlassian Jira, Atlassian Confluence, JFrog Artifactory, Jenkins, PingFederate
- RCE after login: Apache Kafka Broker, Apache Solr, Elasticsearch, Gerrit, Spinnaker
- Frameworks: sample applications built with Apache Struts and Spring Boot; features such as authentication and file upload can expose the vulnerable decoder
- Client side: an exploitation scenario against Java programs that connect to a malicious TLS server was also reported, so the risk is not limited to servers
This is not "easy RCE for everyone", though. According to Help Net Security, crashing the JVM is easy and repeated requests can keep a service down. RCE requires heap grooming and a separate memory leak to defeat ASLR. Calif also says the exploits are application-specific, each needing its own memory layout and timing.
Calif is not sharing product-specific exploit chains for now. The published PoC only checks whether a given JDK and processor combination reproduces the memory corruption. VulnCheck reported that it developed its own full RCE exploit, and a lab exercise reproducing the overflow appeared in a public code repository.
Root cause
The mistake is in the padding arithmetic of the AVX-512 VBMI Base64 decode intrinsic. An input that ends with = in an unexpected position makes the routine compute a zero-length output and then subtract once more for the padding, producing a length of -1. That negative length is used as a write size, and a small write becomes a 64-byte write past the end of the output array.
Existing defences did not stop it because the corruption is silent at the application layer: Java rejects the input as invalid and raises IllegalArgumentException, so nothing in the application log points at memory corruption. The bytes written are decoder-determined, which is why early analysis expected only a crash; heap layout control is what turns the fixed write into a usable primitive. The vulnerable path is only reached through JIT-compiled, warmed-up decode loops, so the flaw lives in the runtime and in a hardware-dependent code path rather than in a library that dependency scanners would flag.
Impact
Severity assessments differ. Oracle gives CVSS 3.1 a score of 8.1 and points to high attack complexity; Calif gives CVSS 4.0 a score of 9.2 (Critical).
On scale, OX Security estimates the share of JVMs carrying RCE risk at under 0.12 percent and sums the flaw up as "easy to crash, hard to exploit". Security researcher Kevin Beaumont said the vulnerability is "not the end of the world" and should be handled in the normal patch cycle. CISA, on the other hand, called on organisations to patch immediately.
The author's own assessment: the ratio may be small, but inside that small ratio sit some of an organisation's most critical systems, such as identity management, CI/CD and collaboration platforms. For an attacker who takes over Keycloak or Jenkins, "one in a thousand" is a large enough door.
As of 18 November there was no confirmed attack in the field and the vulnerability was not in CISA's KEV catalogue.
Fix
Oracle's fixed versions are [redacted], [redacted], [redacted] and 27.0.1.1. Oracle and the OpenJDK project fixed the issue on 17 November; other distributions are publishing patches gradually. Status of other distributions as of 18 November:
- Amazon Corretto: 17.0.21.1.2, 21.0.13.1.2, 25.0.5.1.2 and 27.0.1.1.4 released. On Amazon Linux 2023 an ordinary update without a version pin can miss the fix; no fix is planned for Corretto 22, 23, 24 and 26.
- Azul Zulu: [redacted], [redacted] and [redacted] fixes released.
- Microsoft Build of OpenJDK: [redacted], [redacted] and [redacted] released and made the default on the download page.
- Eclipse Temurin: fixed versions [redacted]+2, [redacted]+2, [redacted]+2 and [redacted]+4. JDK 27 was released first during the day; distribution of the other lines was still ongoing.
- BellSoft Liberica: [redacted] released; patches for 17 and 25 were not yet listed.
- Red Hat: classified the vulnerability as "Critical" in advisory RHSB-2026-018 and covered RHEL 8, 9 and 10. Patches were not out yet;
-XX:-UseBASE64Intrinsicsis recommended as a temporary measure.
After patching, Java services have to be restarted, container images rebuilt and redeployed, and vendor updates tracked for products that bundle Java.
Temporary mitigations
For systems that cannot be patched immediately, the leading measure is starting the JVM with -XX:-UseBASE64Intrinsics. Red Hat and Japan's JPCERT/CC recommend this parameter; Upwind reports that it stopped the overflow on every affected version it tested in its lab. On x86-64 systems only, -XX:UseAVX=2 is an alternative. Both parameters require a restart and should be removed after the patch is applied.
An important correction: the -XX:DisableIntrinsic=_base64_decodeBlock parameter, which circulated as an alternative in many sources in the first hours, causes Java not to start at all when used on its own, according to Upwind's warning. Do not use this parameter in production.
CISA's compensating control recommendations are: validate Base64 input at the application boundary, cap input size, and restrict unauthenticated access. Because the triggering input is very short, a size limit alone is not enough.
At the network layer, Equixly's WAF rule can be used; it catches Basic values in the Authorization header that end with = and whose length is not a multiple of 4:
^Basic\s+(?:\S{4})*\S{0,2}=$
Since standard JWTs carry no padding characters, rejecting JWTs that contain = is also a reasonable additional measure.
Detection and threat hunting
The hardest part of this vulnerability is visibility, because both a failed attempt and a successful one can look like an ordinary error in application logs. Signals to look at:
- Authorization headers: suspicious Base64 values that end with
=and have an invalid length - Error spikes: sudden increases in
IllegalArgumentExceptionoriginating fromjava.util.Base64$Decoder - Crash traces: unexpected
hs_err_pid*.logfiles, services restarting in a row, and containers exiting with code 134 or 139. If there was no deploy before a crash, examine the requests immediately before it. - Post-exploitation behaviour: a shell, script interpreter or file transfer tool started from the Java process. In EDR,
javastartingsh,bash,cmd.exeorpowershell.exeshould be a high-priority alert.
The absence of these signals does not prove safety; there may be no clear trace, especially during the heap leak stage.
Possible MITRE ATT&CK mappings:
- T1190 (Exploit Public-Facing Application): initial access through an internet-facing Java service
- T1499.004 (Application or System Exploitation): service disruption by crashing the JVM
- T1059 (Command and Scripting Interpreter): command execution after RCE
Prioritisation: where to look first
For a team with limited resources, the order could be:
- Identity and access systems: identity providers such as Keycloak and PingFederate. Taking them over hands over the keys to the whole environment.
- CI/CD and software supply chain: Jenkins and Artifactory. A breach here can reach the software that is built.
- Collaboration platforms: Jira and Confluence. They are likely to hold sensitive information and credentials.
- Other internet-facing Java services: especially those accepting Basic Auth, tokens or file uploads.
- Java clients and internal services: Java applications connecting to external TLS servers and internal services receiving data from other systems.
At each step, checking for AVX-512 VBMI support on the processor first (grep -c avx512vbmi /proc/cpuinfo), then verifying the version of every running JVM per process (jcmd <PID> VM.version), saves time.
Field activity
GreyNoise opened a monitoring dashboard for Java4Shell. As of the afternoon of 18 November, 69 Java4Shell-like requests from 4 IP addresses had been recorded since 17 November, and no successful exploitation was seen on its sensors. The volume is low, but it shows scanning has started.
National cybersecurity agencies reacted quickly:
- US (CISA): called for "patch immediately" on the evening of 17 November; the vulnerability is not yet in the KEV catalogue.
- Japan (JPCERT/CC): issued an urgent action call and drew attention to packaged runtimes.
- Germany (BSI): published a security notice at "High" criticality.
- Switzerland (NCSC): asked for immediate checks of updates, reminding that Java is often embedded in software and devices.
- Belgium (CCB): advised organisations to patch.
- Slovenia: issued a binding directive with 24- and 48-hour deadlines for detecting and patching affected systems. This was the first binding state directive on the subject.
Assessment
The first lesson from Java4Shell is the limits of early technical assessments. The inference "the attacker cannot choose the content, so at most DoS" was reasonable at source-code level, but it did not account for the heap layout being actively shapeable. In memory corruption vulnerabilities, it is worth not rushing to a verdict of "not exploitable".
The second lesson is about speed. The bug being found in an hour, the first exploit written within a few hours, and different teams independently finding the same bug in the same week show that the gap between patches and exploitation is shrinking. Patch processes need to keep up with that speed.
The third is the definition of the attack surface. Dependency scanners catch libraries well, but this time the vulnerability is in the runtime itself and in a hardware-dependent code path. Asset inventory now needs to cover the JDK version, the processor model and packaged runtimes.
The picture may change again when Calif publishes product-specific exploit chains or the first confirmed attack is seen in the field. Until then, the most accurate approach is to apply patches starting with critical systems.
Variants to test
- Check the processor for AVX-512 VBMI. Run
grep -c avx512vbmi /proc/cpuinfoon each host. A positive result (a non-zero count) means the hardware can reach the vulnerable routine; a zero means the host is outside the hardware condition. - Verify the JVM actually running per process. Run
jcmd <PID> VM.versionagainst each Java process rather than trusting the system Java. A positive result is a version in the affected set (17.0.6 and later on 17, or 21, 25, 27 before the November 2026 fixes), especially when the process belongs to a product that bundles its own runtime. - Look for Base64 decode paths that run before authentication. Inspect authentication headers, tokens, file uploads and network message handling for calls into
java.util.Base64. A positive result is a decode of untrusted input that happens before a password or signature check, which is the pre-auth condition. - Hunt for the silent failure signature. Search application logs for spikes in
IllegalArgumentExceptionfromjava.util.Base64$Decoder. A positive result is a cluster of such errors, which may accompany a memory corruption attempt. - Hunt for crash artefacts. Look for
hs_err_pid*.logfiles and containers exiting with code 134 or 139 without a preceding deploy. A positive result is a crash whose immediately preceding requests contain suspicious Base64 values. - Test the WAF rule against Basic values. Send
Authorizationvalues that end with=and whose length is not a multiple of 4, and check whether the rule^Basic\s+(?:\S{4})*\S{0,2}=$matches them. A positive result is that the rule catches the malformed value while normal padded values pass. - Check for post-exploitation process trees. In EDR, look for
javaspawningsh,bash,cmd.exeorpowershell.exe. A positive result is a Java process starting an interpreter or file transfer tool, which should be treated as a high-priority alert. - Validate the mitigation before relying on it. Start a JVM with
-XX:-UseBASE64Intrinsicsand confirm it starts and serves traffic normally. A positive result is a running JVM with the intrinsic disabled; do not use-XX:DisableIntrinsic=_base64_decodeBlockon its own, since it prevents Java from starting.
What happened, in plain words
Imagine a very common kind of software called Java. A huge number of websites, company tools and apps are built on it. Java runs on a "virtual machine" (the JVM), which is a program that reads Java code and turns it into instructions the computer's processor can actually carry out.
In November 2026, a security company called Calif announced that it had found a serious mistake inside the JVM itself. The mistake is in a small piece of code that decodes Base64, a way of packing data into plain text characters so it can travel safely through systems that only expect text. When that decoder receives a particular malformed input, it writes more data into memory than it should, spilling past the end of the space reserved for it. In the right circumstances, an attacker can use that spill to run their own code on the machine, without ever logging in.
The bug is tracked as CVE-2026-114938 and nicknamed Java4Shell.
This article walks through the whole story from the beginning: what the bug is, how it was found, how it can be abused, who is really at risk, how to fix it, and what to watch for. Every technical term is explained the first time it appears.
Context: what Java4Shell is
To understand the bug you need three ideas: memory, Base64, and intrinsics.
Memory is where a running program keeps its data. Think of it as a very long row of numbered boxes, each holding one byte (a byte is a small unit of data, roughly one character). A program asks the operating system for a block of boxes and promises to stay inside it. If it writes past the end of its block, it can overwrite boxes that belong to something else. That is called an out-of-bounds write, and it is one of the classic ways to break software.
Base64 is a way of turning raw data (images, files, binary tokens) into ordinary letters and digits so it can be sent through systems that only handle text, such as email or HTTP headers. A Base64 decoder takes that text and turns it back into the original data. Base64 text often ends with one or two = characters, called padding, which fill out the last group of characters. Padding is normal and expected; the bug is about padding arriving in an unexpected place.
An intrinsic is a shortcut inside the JVM. Some operations are so common that running them as ordinary Java code is slow. For those, the JVM swaps in hand-written machine code tuned for the specific processor, like a chef who keeps a pre-made sauce for the dish everyone orders. Base64 decoding is one of these shortcuts. The JVM only takes the shortcut once the operation has run often enough to be considered "hot"; at that point a part of the JVM called the JIT compiler (just-in-time compiler) replaces the normal code with the fast version.
Java4Shell (CVE-2026-114938) is a heap out-of-bounds write in HotSpot's x86-64 AVX-512 VBMI Base64 decoding intrinsic. Let us unpack that sentence:
- HotSpot is the name of the JVM that Oracle and the OpenJDK project ship.
- x86-64 is the family of processors used in most servers and PCs (Intel and AMD).
- AVX-512 VBMI is a set of extra instructions that some modern processors understand. The fast Base64 routine uses them.
- Heap is the area of memory where a program keeps objects it creates while running.
- Out-of-bounds write means writing past the end of an allocated block, as described above.
Oracle classifies the affected component as Java SE "Compiler"; in OpenJDK it lives under hotspot/compiler. The flaw is an integer underflow in the handling of Base64 padding, and it sits in a performance optimisation rather than in ordinary Java code. An integer underflow is when a counter that should never go below zero is subtracted one time too many and wraps around to a negative number. A negative length, used as a size for a write, turns a small write into a 64-byte write.
The JVM replaces some hot, frequently used operations with hand-written, processor-specific machine code instead of running the Java implementation. These routines are called intrinsics. Base64 decoding is one of them: when a decode loop runs often enough, the C2 JIT compiler swaps the standard Java loop for a fast routine written with AVX-512 VBMI instructions. Only "warmed up", JIT-compiled decode paths reach the vulnerable code. A server that continuously processes authentication requests fits that profile exactly.
Why does that matter? Because a website that checks logins all day long is constantly decoding Base64 (login tokens, session cookies, authentication headers), so its decoder is always hot and always running the fast, vulnerable version. A program that decodes Base64 rarely may never take the shortcut and so may never reach the buggy code.
Because the vulnerable routine is reached through the standard java.util.Base64 decoder, any untrusted Base64 data that arrives there is a potential entry point: authentication headers, tokens, file uploads and network messages. This is also why the bug is described as pre-auth: Base64 decoding usually happens before a password or signature check. In other words, the decoder does its work before the system has had a chance to ask "who are you?".
Setup: versions, hardware and preconditions
The affected scope, as published at the time of writing:
| Dimension | Affected |
|---|---|
| Java versions | 17.0.6 and later on the 17 line; all versions on 21, 25 and 27 before the November 2026 fixes |
| Exceptions | Standard Java 8 and 11 are not affected; the exception is Oracle's Java 8 Performance Pack (8u511b33-perf). GraalVM builds are in scope |
| Hardware | x86-64 processors with AVX-512 VBMI: Intel Xeon from Ice Lake to Granite Rapids, AMD EPYC Zen 4 and later |
| Not affected | ARM64 servers, including AWS Graviton |
| Input path | Untrusted Base64 data reaching the standard java.util.Base64 decoder |
A few words on the table. Java versions are numbered like software releases: 17, 21, 25 and 27 are different major lines, each with its own updates. GraalVM is an alternative Java runtime. Intel Xeon and AMD EPYC are server processor families; Ice Lake, Granite Rapids and Zen 4 are generations within them. ARM64 is a different processor family, common in cloud servers such as AWS Graviton, and it does not have the AVX-512 VBMI instructions, so the vulnerable routine never runs there.
Packaged runtimes deserve separate attention. Products that ship their own Java can stay vulnerable even after the system Java on the host is updated; for those, the vendor's update has to be awaited. A packaged runtime is a copy of Java bundled inside another product, like a spare battery sealed into a device: you cannot swap it out yourself, you have to wait for the manufacturer.
Three conditions have to hold at the same time for a system to be in the risky set: the hardware, the Java version and an input path into the decoder. If any one of them is missing, the bug cannot be triggered on that system.
Finding it: an hour with an AI coding assistant
Calif researcher Quang Luong says he found the bug while developing a zero-click exploit for a phone manufacturer. A zero-click exploit is an attack that works without the victim doing anything at all, not even tapping a link. According to Calif's account, Luong was auditing HotSpot with an AI coding assistant and focused on the JIT compiler, intrinsics and widely used APIs. An API (application programming interface) is the set of functions a program offers to other programs; think of it as the menu a restaurant hands to other kitchens.
The numbers are striking: finding the bug took about an hour with AI assistance, the first working exploit was ready two hours later, and the AI cost stayed under 200 dollars. Calif warns that attackers can do the same, even if more slowly.
There is a parallel thread. Chainguard's CEO said his team independently found and reported the same bug on 13 November while scanning an open-source Java project. Wiz also announced that its AI-based research infrastructure found the vulnerability and produced a PoC within two hours, before the full details were published. A PoC (proof of concept) is a small demonstration that shows a bug is real, without being a full weapon.
Exploitation
Step 1: reach the intrinsic with a padded input
The problem is in the handling of padding (=) characters at the end of the input. When the input ends with = in an unexpected place, the routine first computes a zero-length output, then performs one more subtraction for the padding, and the length drops to -1.
In everyday terms: the decoder counts how many characters it has to turn into bytes. A normal padded input makes it count down to zero and stop. A malformed one makes it count down to zero and then subtract once more, landing on -1. The decoder now has a length of -1, which turns a small write into a 64-byte write.
Step 2: turn the negative length into a 64-byte write
The negative length turns a small write into a 64-byte write. In Calif's example, 64 bytes are written into a 50-byte output array starting at byte 48, so 62 bytes land outside the array. An array is a fixed-size block of memory holding a list of items; here it is a 50-byte block meant to hold the decoded result. Writing 64 bytes starting at position 48 means the last 62 bytes go past the end of the block and into whatever memory sits next to it.
Step 3: survive the silent failure
After the overflow happens, Java treats the input as invalid and rejects it. What the application sees is an ordinary IllegalArgumentException. The memory corruption stays in the background, and application logs may say nothing about it.
An exception is Java's way of saying "something went wrong here". IllegalArgumentException means "the value you gave me is not acceptable". To the application, this looks like a routine input validation error, the kind that happens all day. Nothing in the log says "memory was corrupted". That silence is what makes the bug hard to spot.
Step 4: defeat the "crash only" expectation
The first independent analyses were cautious for a good reason: the bytes written out of bounds are determined by the decoder, not chosen by the attacker. Early readings therefore predicted a JVM crash. A crash is when a program stops abruptly because it hit something it cannot handle; here, the JVM would notice the corrupted memory and shut down.
Calif got past this by controlling the heap layout. Memory is arranged so that the overflow lands on the length field of a neighbouring array. The fixed-content overflow then becomes a limited but selectable write that "grows" the neighbouring array. The grown array is used to write chosen bytes, and a second array is used to read memory back. Calif calls this technique JavaBleed. The resulting read and write primitives are then carried through to code execution.
This is the cleverest part, so let us slow down. Heap grooming means arranging memory on purpose, like tidying a desk so that the next object you put down lands exactly where you want it. The attacker cannot choose the bytes that spill out, but they can choose what sits next to the array. If the neighbour is another array, and the spill happens to hit the neighbour's length field (the number that tells Java how big the array is), the neighbour suddenly claims to be much larger than it really is. A primitive in exploitation means a small, reliable capability, such as "read any memory" or "write any memory", that can be chained into bigger steps. JavaBleed gives the attacker both.
Step 5: what the exploit chains achieve
Calif's published results:
- Unauthenticated RCE (default configuration): Keycloak, Atlassian Jira, Atlassian Confluence, JFrog Artifactory, Jenkins, PingFederate
- RCE after login: Apache Kafka Broker, Apache Solr, Elasticsearch, Gerrit, Spinnaker
- Frameworks: sample applications built with Apache Struts and Spring Boot; features such as authentication and file upload can expose the vulnerable decoder
- Client side: an exploitation scenario against Java programs that connect to a malicious TLS server was also reported, so the risk is not limited to servers
RCE stands for remote code execution: an attacker somewhere on the network gets their own code to run on the victim's machine. Unauthenticated means without logging in first. The products listed are widely used company tools: Keycloak and PingFederate manage logins, Jira and Confluence are collaboration tools, Jenkins and Artifactory build and store software, Kafka, Solr and Elasticsearch handle data, Gerrit reviews code, Spinnaker deploys software. TLS is the encryption that puts the padlock in your browser; a malicious TLS server is a fake server that a Java program might be tricked into connecting to.
This is not "easy RCE for everyone", though. According to Help Net Security, crashing the JVM is easy and repeated requests can keep a service down. RCE requires heap grooming and a separate memory leak to defeat ASLR. ASLR (address space layout randomisation) is a defence that shuffles memory addresses each time a program starts, so an attacker cannot know where things are; a memory leak in this context means a way to read memory and learn those addresses.
Calif also says the exploits are application-specific, each needing its own memory layout and timing. In other words, there is no single magic packet that works everywhere; each target needs its own tuning.
Calif is not sharing product-specific exploit chains for now. The published PoC only checks whether a given JDK and processor combination reproduces the memory corruption. JDK is the Java Development Kit, the package that contains the JVM and the tools around it. VulnCheck reported that it developed its own full RCE exploit, and a lab exercise reproducing the overflow appeared in a public code repository.
Root cause
The mistake is in the padding arithmetic of the AVX-512 VBMI Base64 decode intrinsic. An input that ends with = in an unexpected position makes the routine compute a zero-length output and then subtract once more for the padding, producing a length of -1. That negative length is used as a write size, and a small write becomes a 64-byte write past the end of the output array.
Existing defences did not stop it because the corruption is silent at the application layer: Java rejects the input as invalid and raises IllegalArgumentException, so nothing in the application log points at memory corruption. The bytes written are decoder-determined, which is why early analysis expected only a crash; heap layout control is what turns the fixed write into a usable primitive. The vulnerable path is only reached through JIT-compiled, warmed-up decode loops, so the flaw lives in the runtime and in a hardware-dependent code path rather than in a library that dependency scanners would flag. A dependency scanner is a tool that reads a project's list of libraries and checks them against known bugs; it cannot see inside the JVM itself, which is why this bug slipped past that kind of tooling.
Impact
Severity assessments differ. Oracle gives CVSS 3.1 a score of 8.1 and points to high attack complexity; Calif gives CVSS 4.0 a score of 9.2 (Critical). CVSS is a standard scoring system for vulnerabilities, roughly from 0 to 10, where higher means worse. Version 3.1 and version 4.0 are two generations of that system, which is why the two scores are not directly comparable. Attack complexity describes how much skill and luck an attacker needs; "high" means it is not a one-click job.
On scale, OX Security estimates the share of JVMs carrying RCE risk at under 0.12 percent and sums the flaw up as "easy to crash, hard to exploit". Security researcher Kevin Beaumont said the vulnerability is "not the end of the world" and should be handled in the normal patch cycle. CISA, on the other hand, called on organisations to patch immediately. CISA is the US government's cybersecurity agency.
My own assessment: the ratio may be small, but inside that small ratio sit some of an organisation's most critical systems, such as identity management, CI/CD and collaboration platforms. CI/CD stands for continuous integration and continuous delivery, the automated pipeline that builds and ships software. For an attacker who takes over Keycloak or Jenkins, "one in a thousand" is a large enough door.
As of 18 November there was no confirmed attack in the field and the vulnerability was not in CISA's KEV catalogue. The KEV catalogue is CISA's list of bugs that are known to be exploited in the real world; being absent from it means, so far, nobody has been seen using this one.
Fix
Oracle's fixed versions are [redacted], [redacted], [redacted] and 27.0.1.1. Oracle and the OpenJDK project fixed the issue on 17 November; other distributions are publishing patches gradually. A distribution here means a vendor's own build of Java, such as Amazon's or Microsoft's; they all start from the same OpenJDK source but ship on their own schedules. Status of other distributions as of 18 November:
- Amazon Corretto: 17.0.21.1.2, 21.0.13.1.2, 25.0.5.1.2 and 27.0.1.1.4 released. On Amazon Linux 2023 an ordinary update without a version pin can miss the fix; no fix is planned for Corretto 22, 23, 24 and 26.
- Azul Zulu: [redacted], [redacted] and [redacted] fixes released.
- Microsoft Build of OpenJDK: [redacted], [redacted] and [redacted] released and made the default on the download page.
- Eclipse Temurin: fixed versions [redacted]+2, [redacted]+2, [redacted]+2 and [redacted]+4. JDK 27 was released first during the day; distribution of the other lines was still ongoing.
- BellSoft Liberica: [redacted] released; patches for 17 and 25 were not yet listed.
- Red Hat: classified the vulnerability as "Critical" in advisory RHSB-2026-018 and covered RHEL 8, 9 and 10. Patches were not out yet;
-XX:-UseBASE64Intrinsicsis recommended as a temporary measure.
A version pin means telling your package manager to install one exact version instead of whatever is newest; without a pin, an update can silently leave you on an older, still-vulnerable build. RHEL is Red Hat Enterprise Linux, a common server operating system.
After patching, Java services have to be restarted, container images rebuilt and redeployed, and vendor updates tracked for products that bundle Java. A container image is a packaged snapshot of an application and everything it needs to run; if the snapshot contains an old Java, restarting the service does not help until the image is rebuilt.
Temporary mitigations
For systems that cannot be patched immediately, the leading measure is starting the JVM with -XX:-UseBASE64Intrinsics. Red Hat and Japan's JPCERT/CC recommend this parameter; Upwind reports that it stopped the overflow on every affected version it tested in its lab. On x86-64 systems only, -XX:UseAVX=2 is an alternative. Both parameters require a restart and should be removed after the patch is applied.
A JVM parameter is an option you add to the command that starts Java, like a setting on a washing machine before you press start. -XX:-UseBASE64Intrinsics tells the JVM not to use the fast Base64 shortcut at all, so the buggy code never runs; the cost is a little speed. -XX:UseAVX=2 tells the JVM to use an older, less fancy set of processor instructions, which also avoids the buggy routine.
An important correction: the -XX:DisableIntrinsic=_base64_decodeBlock parameter, which circulated as an alternative in many sources in the first hours, causes Java not to start at all when used on its own, according to Upwind's warning. Do not use this parameter in production.
CISA's compensating control recommendations are: validate Base64 input at the application boundary, cap input size, and restrict unauthenticated access. Compensating controls are workarounds that reduce risk when the real fix is not yet in place. Because the triggering input is very short, a size limit alone is not enough.
At the network layer, Equixly's WAF rule can be used; it catches Basic values in the Authorization header that end with = and whose length is not a multiple of 4:
^Basic\s+(?:\S{4})*\S{0,2}=$
A WAF (web application firewall) is a filter that sits in front of a website and blocks requests matching suspicious patterns. This rule is a regular expression, a pattern language for matching text. Line by line:
^Basicmeans the value must start with the wordBasic, which is how HTTP Basic authentication identifies itself.\s+means one or more spaces after it.(?:\S{4})*means any number of groups of exactly four non-space characters. Base64 normally comes in groups of four, so this matches the well-formed part.\S{0,2}allows up to two extra non-space characters at the end.=requires a padding character right there.$means the value must end at that point.
Put together, the rule matches a Basic credential whose Base64 part ends in = but whose length is not a multiple of four, which is exactly the malformed shape that can trigger the bug. Normal, correctly padded values do not match and pass through.
Since standard JWTs carry no padding characters, rejecting JWTs that contain = is also a reasonable additional measure. A JWT (JSON Web Token) is a common format for login tokens; standard ones never need padding, so a = inside one is a sign of tampering.
Detection and threat hunting
The hardest part of this vulnerability is visibility, because both a failed attempt and a successful one can look like an ordinary error in application logs. Threat hunting means actively searching your own logs and systems for signs of an attack, rather than waiting for an alarm. Signals to look at:
- Authorization headers: suspicious Base64 values that end with
=and have an invalid length - Error spikes: sudden increases in
IllegalArgumentExceptionoriginating fromjava.util.Base64$Decoder - Crash traces: unexpected
hs_err_pid*.logfiles, services restarting in a row, and containers exiting with code 134 or 139. If there was no deploy before a crash, examine the requests immediately before it. - Post-exploitation behaviour: a shell, script interpreter or file transfer tool started from the Java process. In EDR,
javastartingsh,bash,cmd.exeorpowershell.exeshould be a high-priority alert.
A few explanations. An Authorization header is the part of a web request where a browser or program presents its credentials. hs_err_pid*.log is a file the JVM writes when it crashes, containing a snapshot of what went wrong. Exit codes 134 and 139 are the numbers a container reports when its process died from a crash. EDR (endpoint detection and response) is software on a machine that watches what programs do. A shell is a program that runs commands; if the Java process suddenly starts one, that is a strong sign someone has taken control.
The absence of these signals does not prove safety; there may be no clear trace, especially during the heap leak stage.
Possible MITRE ATT&CK mappings. MITRE ATT&CK is a public catalogue of attacker techniques, each with an ID, used to describe and compare attacks:
- T1190 (Exploit Public-Facing Application): initial access through an internet-facing Java service
- T1499.004 (Application or System Exploitation): service disruption by crashing the JVM
- T1059 (Command and Scripting Interpreter): command execution after RCE
Prioritisation: where to look first
For a team with limited resources, the order could be:
- Identity and access systems: identity providers such as Keycloak and PingFederate. Taking them over hands over the keys to the whole environment.
- CI/CD and software supply chain: Jenkins and Artifactory. A breach here can reach the software that is built.
- Collaboration platforms: Jira and Confluence. They are likely to hold sensitive information and credentials.
- Other internet-facing Java services: especially those accepting Basic Auth, tokens or file uploads.
- Java clients and internal services: Java applications connecting to external TLS servers and internal services receiving data from other systems.
At each step, checking for AVX-512 VBMI support on the processor first (grep -c avx512vbmi /proc/cpuinfo), then verifying the version of every running JVM per process (jcmd <PID> VM.version), saves time.
grep -c avx512vbmi /proc/cpuinfo
This command reads /proc/cpuinfo, a file on Linux that lists the processor's features, and counts how many lines mention avx512vbmi. A result of zero means the processor lacks the instruction set; a non-zero result means the hardware condition is met.
jcmd <PID> VM.version
This asks the running JVM with process ID <PID> to report its own version. It is more reliable than checking what is installed on the machine, because a product may be running its own bundled Java. A version in the affected set means the software condition is met.
Field activity
GreyNoise opened a monitoring dashboard for Java4Shell. GreyNoise is a service that watches internet background noise and reports which addresses are scanning for what. As of the afternoon of 18 November, 69 Java4Shell-like requests from 4 IP addresses had been recorded since 17 November, and no successful exploitation was seen on its sensors. The volume is low, but it shows scanning has started.
National cybersecurity agencies reacted quickly:
- US (CISA): called for "patch immediately" on the evening of 17 November; the vulnerability is not yet in the KEV catalogue.
- Japan (JPCERT/CC): issued an urgent action call and drew attention to packaged runtimes.
- Germany (BSI): published a security notice at "High" criticality.
- Switzerland (NCSC): asked for immediate checks of updates, reminding that Java is often embedded in software and devices.
- Belgium (CCB): advised organisations to patch.
- Slovenia: issued a binding directive with 24- and 48-hour deadlines for detecting and patching affected systems. This was the first binding state directive on the subject.
Assessment
The first lesson from Java4Shell is the limits of early technical assessments. The inference "the attacker cannot choose the content, so at most DoS" was reasonable at source-code level, but it did not account for the heap layout being actively shapeable. DoS means denial of service: making a system unavailable without taking it over. In memory corruption vulnerabilities, it is worth not rushing to a verdict of "not exploitable".
The second lesson is about speed. The bug being found in an hour, the first exploit written within a few hours, and different teams independently finding the same bug in the same week show that the gap between patches and exploitation is shrinking. Patch processes need to keep up with that speed.
The third is the definition of the attack surface. Attack surface means all the ways an attacker could get in. Dependency scanners catch libraries well, but this time the vulnerability is in the runtime itself and in a hardware-dependent code path. Asset inventory now needs to cover the JDK version, the processor model and packaged runtimes. Asset inventory is simply the list of everything you run and where.
The picture may change again when Calif publishes product-specific exploit chains or the first confirmed attack is seen in the field. Until then, the most accurate approach is to apply patches starting with critical systems.
Variants to test
- Check the processor for AVX-512 VBMI. Run
grep -c avx512vbmi /proc/cpuinfoon each host. A positive result (a non-zero count) means the hardware can reach the vulnerable routine; a zero means the host is outside the hardware condition. - Verify the JVM actually running per process. Run
jcmd <PID> VM.versionagainst each Java process rather than trusting the system Java. A positive result is a version in the affected set (17.0.6 and later on 17, or 21, 25, 27 before the November 2026 fixes), especially when the process belongs to a product that bundles its own runtime. - Look for Base64 decode paths that run before authentication. Inspect authentication headers, tokens, file uploads and network message handling for calls into
java.util.Base64. A positive result is a decode of untrusted input that happens before a password or signature check, which is the pre-auth condition. - Hunt for the silent failure signature. Search application logs for spikes in
IllegalArgumentExceptionfromjava.util.Base64$Decoder. A positive result is a cluster of such errors, which may accompany a memory corruption attempt. - Hunt for crash artefacts. Look for
hs_err_pid*.logfiles and containers exiting with code 134 or 139 without a preceding deploy. A positive result is a crash whose immediately preceding requests contain suspicious Base64 values. - Test the WAF rule against Basic values. Send
Authorizationvalues that end with=and whose length is not a multiple of 4, and check whether the rule^Basic\s+(?:\S{4})*\S{0,2}=$matches them. A positive result is that the rule catches the malformed value while normal padded values pass. - Check for post-exploitation process trees. In EDR, look for
javaspawningsh,bash,cmd.exeorpowershell.exe. A positive result is a Java process starting an interpreter or file transfer tool, which should be treated as a high-priority alert. - Validate the mitigation before relying on it. Start a JVM with
-XX:-UseBASE64Intrinsicsand confirm it starts and serves traffic normally. A positive result is a running JVM with the intrinsic disabled; do not use-XX:DisableIntrinsic=_base64_decodeBlockon its own, since it prevents Java from starting.
Glossary
- API: the set of functions one program offers to others, like a menu handed to another kitchen.
- Array: a fixed-size block of memory holding a list of items.
- ASLR: address space layout randomisation, a defence that shuffles memory addresses so attackers cannot predict them.
- Attack surface: all the ways an attacker could get into a system.
- AVX-512 VBMI: a set of extra processor instructions used by the fast Base64 routine.
- Base64: a way of encoding raw data as plain letters and digits so it can travel through text-only systems.
- CI/CD: continuous integration and continuous delivery, the automated pipeline that builds and ships software.
- CISA: the US government's cybersecurity agency.
- Compensating controls: workarounds that reduce risk while the real fix is pending.
- Container image: a packaged snapshot of an application and everything it needs to run.
- Crash: when a program stops abruptly because it hit something it cannot handle.
- CVSS: a standard 0 to 10 scoring system for vulnerabilities; higher is worse.
- Dependency scanner: a tool that checks a project's libraries against known bugs.
- Distribution: a vendor's own build of Java, such as Amazon Corretto or Microsoft Build of OpenJDK.
- DoS: denial of service, making a system unavailable without taking it over.
- EDR: endpoint detection and response, software that watches what programs on a machine do.
- Exception: Java's way of signalling that something went wrong.
- Exit code: the number a process reports when it ends; 134 and 139 indicate a crash.
- GraalVM: an alternative Java runtime.
- Heap: the area of memory where a running program keeps the objects it creates.
- Heap grooming: deliberately arranging memory so that a later write lands where the attacker wants.
- HotSpot: the JVM shipped by Oracle and the OpenJDK project.
- IllegalArgumentException: a Java exception meaning the value supplied is not acceptable.
- Integer underflow: when a counter that should not go below zero is subtracted once too many and becomes negative.
- Intrinsic: a hand-written, processor-specific shortcut the JVM uses for common operations.
- JDK: Java Development Kit, the package containing the JVM and its tools.
- JIT compiler: the part of the JVM that swaps frequently used code for faster compiled versions.
- JVM: the Java virtual machine, the program that runs Java code.
- JWT: JSON Web Token, a common format for login tokens.
- KEV catalogue: CISA's list of vulnerabilities known to be exploited in the real world.
- Memory leak (in exploitation): a way to read memory and learn addresses needed to bypass ASLR.
- MITRE ATT&CK: a public catalogue of attacker techniques, each with an ID.
- Out-of-bounds write: writing past the end of an allocated block of memory.
- Padding: the
=characters at the end of Base64 text that fill out the last group. - PoC: proof of concept, a small demonstration that a bug is real.
- Pre-auth: happening before any password or signature check.
- Primitive: a small, reliable exploitation capability, such as reading or writing memory.
- RCE: remote code execution, running the attacker's code on the victim's machine.
- Regular expression: a pattern language for matching text.
- RHEL: Red Hat Enterprise Linux, a common server operating system.
- Shell: a program that runs commands.
- Threat hunting: actively searching logs and systems for signs of attack.
- TLS: the encryption that puts the padlock in a browser.
- Unauthenticated: without logging in first.
- Version pin: telling a package manager to install one exact version instead of the newest.
- WAF: web application firewall, a filter in front of a website that blocks suspicious requests.
- Zero-click exploit: an attack that works without the victim doing anything.