Java4Shell (CVE-2026-114938): The Pre-Auth RCE That Wants to Break Your Enterprise Stack—But Only…
A malformed Base64 string ending in an extra equals sign causes Java's optimised Base64 decoder to write past its output buffer, allowing memory manipulation. An attacker could then read server memory and execute unauthorised code without logging in, but only on specific x86-64 CPUs with AVX-512 VBMI support.
Published on vinitbetkar.medium.com
0day
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
Java4Shell (CVE-2026-114938) is a pre-authentication remote code execution issue in a highly optimised version of Java's Base64 decoder. The decoder is the code path that servers exercise constantly: SAML artifacts, CSRF tokens and HTTP Basic login headers all arrive as Base64 strings, so Java's compilers substitute high-performance code for the generic implementation to keep that work cheap at millions of calls a day.
The report attributes the disclosure to the security research firm Calif. The flaw is unusual in that it is not universal: the vulnerable fast path only exists on x86-64 Intel and AMD processors that implement AVX-512 VBMI, so whether a given deployment can be attacked depends on the silicon underneath it.

Setup
The report does not describe a lab, a target application, accounts or tooling. It is an analysis of the disclosed vulnerability rather than a walkthrough against a live host, so there are no captured requests or responses to reproduce. What it does give is the set of preconditions that decide whether a system is exposed:
- CPU: x86-64 Intel or AMD with AVX-512 VBMI. The report lists Intel Xeon Ice Lake, Sapphire Rapids, Emerald Rapids and Granite Rapids, and AMD Zen 4 or newer, as the affected parts.
- Architecture: ARM64, including AWS Graviton, does not implement those instructions and is described as completely unaffected.
- Java version: Java 17 from 17.0.6 onwards, plus Java 21, 25 and 27. Standard Java 8 and 11 are safe, with the exception of specialised performance packs such as
8u511b33-perf. - Exposure: for the products listed below, no login is needed on default settings; for others, at least a low-privilege login is required.
The practical consequence the report highlights is that a Docker container on a modern Intel server is vulnerable while the identical container on ARM is fine.
Finding it
The defect is in the accelerated Base64 decoder. When an attacker supplies a malformed string that ends with an extra =, the fast decoder is confused and writes 62 or 63 bytes past the end of its intended output buffer. The optimised path mishandles a padding character that ends the string, and the overrun is 62 or 63 bytes.
The report frames the exploitation technique as memory manipulation, which the researchers named JavaBleed.
Exploitation
Step 1: Reach a Base64 decode before authentication
Base64 decoding frequently happens before authentication checks run, which is why the flaw is described as pre-authentication. The attacker sends a malformed Base64 string ending in an extra = to a place that decodes Base64 before authentication checks. The report does not give a specific request or endpoint.
Step 2: Trigger the out-of-bounds write
The malformed string drives the optimised decoder past the end of its output buffer, writing 62 or 63 bytes beyond it. This is the primitive; everything else is built on it.
Step 3: Expand a neighbouring array
Using the JavaBleed technique, the attacker manipulates server memory to expand an array adjacent to the overflowed buffer. The attacker expands a neighbouring array as part of the JavaBleed technique.
Step 4: Write chosen bytes and read memory
With the neighbouring array expanded, the attacker can write bytes of their choosing and read the server's memory. The report lists writing chosen bytes and reading server memory among the outcomes of the technique.
Step 5: Execute code
The final step is execution of unauthorised code, achieved without ever presenting a valid login.
Step 6: Check whether the host is a candidate
On Linux, the report gives a single command to decide whether the CPU implements the instructions the vulnerable path needs. If it outputs all four flags, the hardware is vulnerable:
grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$'
The command reads the first flags line from /proc/cpuinfo, splits it into one flag per line, and filters for avx512f, avx512bw, avx512vbmi and bmi2. All four appearing means the machine is on the list.

Root cause
The mistake is in the optimised Base64 decoder: it does not correctly handle a malformed input ending in an extra =, and writes 62 or 63 bytes past the end of its output buffer. The generic implementation is not implicated; the report notes that standard Java 8 and 11 are safe, and that only specialised performance packs on 8 are affected.
The vulnerable code is a compiler-selected fast path that only exists on CPUs with AVX-512 VBMI, and decoding happens before authentication. The vulnerable code is a compiler-selected fast path that only exists on CPUs with AVX-512 VBMI, so the same Java build behaves differently depending on the hardware it runs on. Because decoding happens before authentication, authentication controls never get a chance to intervene.
Impact
Successful exploitation gives an unauthenticated attacker memory read, controlled memory write and, ultimately, unauthorised code execution on the server. Because the decode happens before login, the front door is bypassed entirely.
According to the researchers, the vulnerability can be exploited without a login on the default settings of:
| Product | Pre-auth on default settings |
|---|---|
| Atlassian Jira & Confluence | Yes |
| Keycloak | Yes |
| Jenkins | Yes |
| JFrog Artifactory | Yes |
| PingFederate | Yes |
| Apache Kafka Broker | Requires at least a low-privilege login |
| Apache Solr | Requires at least a low-privilege login |
| Elasticsearch | Requires at least a low-privilege login |
| Gerrit | Requires at least a low-privilege login |
| Spinnaker | Requires at least a low-privilege login |
All of this is conditional on the host running an affected Java version on an affected CPU. ARM64 hosts, including AWS Graviton, are outside the blast radius regardless of the software stack above them.
Fix
Oracle and the OpenJDK project have released fixes. The report says to move to the new .1 releases as soon as possible:
| Java line | Fixed release |
|---|---|
| Java 17 | [redacted] |
| Java 21 | [redacted] |
| Java 25 | [redacted] |
| Java 27 | [redacted] |
Amazon Corretto and Azul Zulu also have patched builds ready. The report stresses that updating container base images is not enough on its own: the images have to be rebuilt and redeployed for the fix to take effect.
Where a vendor patch is not yet available or a reboot is not possible, the risky hardware acceleration can be disabled with JVM flags:
-XX:-UseBASE64Intrinsicsis described as the best fix. It turns off only the faster Base64 code, removing the vulnerable path while keeping the other AVX-512 speed optimisations.-XX:UseAVX=2disables AVX-512 entirely. The report warns that this should only be used on x86-64 servers, because ARM64 machines will panic and refuse to start.
Variants to test
- Hardware inventory. Run the
/proc/cpuinfocheck across the fleet, including container hosts. A positive result is all four flags present on a host running an affected Java version.
What happened, in plain words
A security research firm called Calif disclosed a serious flaw in Java, the programming language and runtime that a huge amount of business software is built on. The flaw has an ID, CVE-2026-114938, and a nickname, Java4Shell. A CVE is simply a public catalogue number that every known security bug gets, so people can talk about the same bug without confusion.
The bug lets an attacker run their own code on a server without logging in first. That is what "pre-authentication remote code execution" means: remote, because the attacker works over the network; code execution, because they end up running commands of their choosing; pre-authentication, because they never have to prove who they are. Think of it as someone getting into your house and using your kitchen before you have even checked their key at the door.
The twist is that the bug only exists on certain computer chips. The same Java program is vulnerable on one machine and perfectly safe on another, depending on the processor underneath. That is unusual, and it is why the article keeps talking about hardware.

The background you need first
What Base64 is
Computers move data around as raw bytes, but many systems (email, web headers, configuration files) only reliably carry plain text. Base64 is a way of rewriting any chunk of bytes using only 64 safe text characters, so the data survives the trip. It is not encryption and it hides nothing; it is more like packing a fragile object in bubble wrap so it can be posted. Anyone can unwrap it.
Why servers decode Base64 all day
Servers constantly receive Base64 text and turn it back into bytes. Three everyday examples from the report:
- SAML artifacts: SAML is a common way for companies to let staff log in once and use many applications. Small pieces of that login exchange travel as Base64.
- CSRF tokens: a CSRF token is a random value a website puts in a form so it can tell a genuine submission from one forged by another site. It is often Base64.
- HTTP Basic login headers: when a browser sends a username and password in a request, it packs them as Base64 after the word
Basic.
Because this decoding happens millions of times a day, the people who write Java added a very fast version of the decoder, used automatically when the hardware can run it. A decoder is just the piece of code that turns Base64 text back into bytes.
What a buffer is
When a program decodes something, it needs somewhere to put the result. It reserves a small block of memory for that purpose, called a buffer. Think of it as a row of labelled boxes sized to fit exactly the expected output. Writing past the end of the buffer means putting data into boxes that belong to something else.
What the vulnerability class means
This bug is an out-of-bounds write: the program writes data beyond the space it reserved. In the hands of an attacker, that is dangerous because the memory just past the buffer holds other data the program relies on. If you can control what gets written there, you can start changing the program's behaviour. The report calls the exploitation technique JavaBleed.
Who is affected, and why the chip matters
The fast decoder only exists on x86-64 processors from Intel and AMD that support a set of instructions called AVX-512 VBMI. Instructions here means extra capabilities built into the chip; AVX-512 is a family of them for doing many calculations at once, and VBMI is a specific part of that family. If the chip does not have them, the fast decoder is never used, and the bug is never reachable.
The report lists the affected chips:
- Intel Xeon Ice Lake, Sapphire Rapids, Emerald Rapids and Granite Rapids.
- AMD Zen 4 or newer.
ARM64 chips, including AWS Graviton (Amazon's own server chips), do not have those instructions and are described as completely unaffected.
The practical result is odd but important: a Docker container (a packaged, self-contained application) running on a modern Intel server is vulnerable, while the exact same container on an ARM server is fine. The software is identical; only the silicon differs.
The bug itself
When an attacker sends a malformed Base64 string that ends with an extra =, the fast decoder gets confused and writes 62 or 63 bytes past the end of its output buffer. The = character is Base64's padding symbol, used to round the text out to a neat length. The optimised decoder mishandles a string ending in an extra =. The overrun is 62 or 63 bytes past the end of the output buffer.
How an attacker would use it
The report describes the exploitation as a sequence of steps. It does not give a specific request, endpoint or captured traffic, so what follows is the logic of the attack rather than a recipe against a particular site.
Step 1: Reach a Base64 decode before authentication
Because so much software decodes Base64 early in handling a request, before it checks who is asking, the attacker only needs to find any place that does that. The attacker sends a malformed Base64 string ending in an extra = to a place that decodes before authentication.
Step 2: Trigger the out-of-bounds write
The malformed string pushes the fast decoder past the end of its buffer, writing 62 or 63 bytes beyond it. This is the primitive: the one small, reliable effect everything else is built on. A primitive in security writing means a basic capability you can repeat at will.
Step 3: Expand a neighbouring array
Using the JavaBleed technique, the attacker manipulates server memory so that an array sitting next to the overflowed buffer grows larger. An array is just an ordered list of values in memory. The attacker expands a neighbouring array as part of the JavaBleed technique.
Step 4: Write chosen bytes and read memory
With that window open, the attacker can write bytes of their choosing and read the server's memory. The attacker can write bytes of their choosing and read the server's memory.
Step 5: Execute code
The final step is running unauthorised code on the server, all without ever presenting a valid login.
Step 6: Check whether a machine is even a candidate
On Linux, the report gives one command to find out whether a machine's processor has the instructions the vulnerable path needs. If it prints all four flags, the hardware is vulnerable:
grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$'
Line by line, in plain words:
/proc/cpuinfois a file on Linux that describes the processor. You can open it like any text file.grep -m1 '^flags' /proc/cpuinforeads that file and stops at the first line beginning withflags. That line lists the processor's capabilities, separated by spaces.-m1means stop after one match.tr ' ' '\n'takes that line and replaces every space with a line break, so each capability sits on its own line.trmeans translate characters.grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$'keeps only the lines that are exactly one of those four names.-Eallows the|to mean "or".- The
|between commands is a pipe: it feeds the output of one command into the next, like passing a bucket along a line.
If you see all four names printed, the chip has everything the fast decoder needs, and the machine is on the list. If you see fewer, it is not.

Why it went unnoticed
The mistake lives only in the optimised decoder. The ordinary implementation is not affected, which is why standard Java 8 and 11 are safe, and why only specialised performance packs on Java 8, such as 8u511b33-perf, are caught out.
The vulnerable code is chosen automatically by the compiler based on the hardware, and decoding happens before authentication. The vulnerable code is chosen automatically by the compiler based on the hardware, so the same Java build behaves differently on different machines. And because the decoding happens before authentication, login checks never get a chance to step in.
What an attacker gets
Successful exploitation gives someone with no login at all three things: the ability to read the server's memory, the ability to write controlled data into it, and finally the ability to run their own code. The front door is bypassed entirely.
According to the researchers, the flaw can be exploited without a login on the default settings of these products:
| Product | Pre-auth on default settings |
|---|---|
| Atlassian Jira & Confluence | Yes |
| Keycloak | Yes |
| Jenkins | Yes |
| JFrog Artifactory | Yes |
| PingFederate | Yes |
| Apache Kafka Broker | Requires at least a low-privilege login |
| Apache Solr | Requires at least a low-privilege login |
| Elasticsearch | Requires at least a low-privilege login |
| Gerrit | Requires at least a low-privilege login |
| Spinnaker | Requires at least a low-privilege login |
For context, these are widely used workplace tools: Jira and Confluence for tracking work and writing documentation, Keycloak for single sign-on, Jenkins for building software, Artifactory for storing build packages, PingFederate for identity, Kafka for moving data between systems, Solr and Elasticsearch for search, Gerrit for code review, and Spinnaker for releasing software.
All of this depends on the host running an affected Java version on an affected chip. ARM64 hosts, including AWS Graviton, are outside the blast radius whatever software runs on them.
How to fix it
Oracle and the OpenJDK project have released fixes. The report says to move to the new .1 releases as soon as possible:
| Java line | Fixed release |
|---|---|
| Java 17 | [redacted] |
| Java 21 | [redacted] |
| Java 25 | [redacted] |
| Java 27 | [redacted] |
Amazon Corretto and Azul Zulu, two other suppliers of Java builds, also have patched versions ready.
One warning matters for anyone using containers: updating the base image is not enough. A container image is a template; running containers are copies made from it. You have to rebuild the image and redeploy the containers for the fix to actually take effect.
The temporary workaround
If a vendor patch is not available yet, or you cannot restart everything right away, you can switch off the risky hardware acceleration with JVM flags. The JVM is the Java Virtual Machine, the program that runs Java applications; flags are startup options you add to its command line.
-XX:-UseBASE64Intrinsicsis described as the best fix. It turns off only the faster Base64 code, removing the vulnerable path while keeping the other AVX-512 speed optimisations. An intrinsic, in this context, is a piece of code the JVM swaps in because the hardware can run it especially fast.-XX:UseAVX=2disables AVX-512 entirely. The report warns that this should only be used on x86-64 servers, because ARM64 machines will panic and refuse to start.
Things worth checking
- Hardware inventory. Run the
/proc/cpuinfocheck across all your machines, including the hosts that run containers. A positive result is all four flags present on a host that also runs an affected Java version.
Glossary
- API: a defined way for one piece of software to ask another to do something, like a service counter with set procedures.
- ARM64: a family of processor designs, common in phones and in cloud servers such as AWS Graviton, that uses a different instruction set from x86-64.
- Array: an ordered list of values stored in memory.
- Authentication: the process of proving who you are, usually by logging in.
- AVX-512: a set of extra processor instructions for doing many calculations at once.
- AVX-512 VBMI: a specific part of AVX-512 that adds particular byte-manipulation instructions; the vulnerable fast decoder needs it.
- Base64: a way of rewriting bytes using 64 safe text characters so data can travel through text-only channels. Not encryption.
- Buffer: a reserved block of memory where a program puts data it is working on.
- Byte: the basic unit of computer data, roughly one character of text.
- Compiler: a program that turns source code into something the machine can run, sometimes choosing faster code based on the hardware.
- Container: a packaged, self-contained application plus everything it needs to run, built from an image.
- Container image: the template a container is created from.
- CSRF token: a random value placed in a web form so the site can tell a genuine submission from a forged one.
- CVE: a public catalogue number given to a known security vulnerability.
- Decoder: code that turns encoded data, such as Base64 text, back into its original bytes.
- Docker: a popular tool for building and running containers.
- Exploit: the act of using a vulnerability to achieve an effect the attacker wants.
- Flag (JVM): a startup option passed to the Java Virtual Machine on its command line.
- HTTP Basic: a simple login method where the browser sends a username and password, packed as Base64, in a request header.
- Instruction (CPU): a single operation a processor knows how to perform.
- Intrinsic: code the JVM substitutes for a normal implementation because the hardware can run it especially fast.
- Java: a programming language and runtime used by a great deal of business software.
- JavaBleed: the name the researchers gave to the memory-manipulation technique used to exploit this flaw.
- JVM: the Java Virtual Machine, the program that runs Java applications.
- Memory: the working space a program uses to hold data while it runs.
- Out-of-bounds write: writing data past the end of the memory a program reserved, into space that belongs to something else.
- Padding: extra characters added to encoded data to round it to a neat length; in Base64 the padding character is
=. - Pre-authentication: reachable before any login check happens.
- Primitive: a small, reliable capability an attacker can repeat, used as a building block.
- Remote code execution (RCE): running your own code on someone else's machine over a network.
- SAML: a common standard that lets staff log in once and use many applications.
- Silicon: the physical processor chip.
- Vulnerability: a weakness in software or hardware that an attacker can use.
- x86-64: the processor family used by most Intel and AMD server and desktop chips.