Java4Shell — CVE-2026–114938 Understandings
A counting error in Java's Base64 decoder causes a heap out-of-bounds write when a malformed tail is decoded, allowing an attacker to corrupt neighbouring objects. This can lead to data leaks and potentially remote code execution.
medium.com
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
Java4Shell (CVE-2026-114938) is a heap out-of-bounds write inside the Java runtime itself, specifically in HotSpot's Base64 decoder. The bug was reported by Calif and disclosed on 17 November 2026, the same day OpenJDK published its advisory and Oracle shipped patches. Oracle rates it CVSS 3.1: 8.1 (High), and early reports using CVSS 4.0 give 9.2.
The feature involved is Base64 decoding, which Java performs constantly: when it reads a login token, an API payload or an uploaded image. Many systems can only carry plain text, such as emails, JSON and web forms, so an app that needs to send a file, an image or a login token through them first converts the data into harmless letters and numbers. That conversion is Base64:
Hello ──(encode)──→ SGVsbG8= ──(decode)──→ Hello
The = at the end is padding. It simply fills the last empty space, like bubble wrap in a box.

The image is titled Java4Shell: HotSpot Base64 Heap Out-of-Bounds Write (CVE-2026-114938).
The author's framing for the bug is a shelf with exactly 50 slots reserved for you, with your neighbour's shelf right next to it. A helper is told to put away "-1 items". A sensible helper would do nothing, but this helper reads "-1" as "put away everything" and starts filling 64 slots. Your 50 slots overflow, and the extra items land on your neighbour's shelf.
Setup
The write-up does not describe a lab, accounts, roles or tooling. What it does define are the preconditions for exposure. A system is exposed only when all three conditions are true:
- It runs a vulnerable Java build.
- It runs on an x86-64 CPU with AVX-512 VBMI (the flags
avx512f,avx512bw,avx512vbmiandbmi2are present). - The application decodes Base64 sent by an outside user (which most web apps do).
Vulnerable Java build +AVX-512 VBMI CPU +Attacker-controlled Base64 =Exposed
CPUs that have these features include Intel Xeon Ice Lake, Sapphire Rapids, Emerald Rapids and Granite Rapids, and AMD EPYC and Ryzen Zen 4 or newer. ARM64 is not affected.
OpenJDK 17.0.6 and later is affected, along with every distribution built from it: Oracle Java SE, Oracle GraalVM, Amazon Corretto, Eclipse Temurin, Microsoft Build of OpenJDK, Azul Zulu, BellSoft Liberica, SAP SapMachine and Red Hat OpenJDK. Oracle lists these Java SE versions as vulnerable: 8u511b33-perf, 17.0.21.0.3, 21.0.13.0.3, 25.0.5.0.3 and 27.0.1.0.3. Older OpenJDK 7, 8 and 11 builds are reported as lacking the vulnerable decoder, but the author advises confirming with your vendor.
In Kubernetes, a safe pod becomes exposed when it is scheduled onto a node with an AVX-512 VBMI CPU.
Finding it
The bug lives in the JIT intrinsic for Base64 decoding. Java does not run everything slowly: HotSpot starts by interpreting code, then compiles the methods that run often, and its most aggressive compiler is called C2. For some library methods, C2 does not compile the Java code at all. It swaps in an intrinsic: a small piece of hand-written machine code that uses special CPU instructions to go faster.
For Base64 decoding on x86-64 CPUs with AVX-512 VBMI, the intrinsic works like this:
Input │ ├── 256-byte blocks → decoded quickly ├── 64-byte blocks → decoded quickly └── final tail (<64) → decoded with a masked store
A masked store writes data into memory, but only the bytes selected by a mask. Think of the mask as a stencil that says, "write only here". If the stencil is wrong, the write goes where it should not.
The defect appears when the decoder handles the final tail. It calculates how many bytes it should write, and the code assumes the tail contains at least one full group of 4 characters before padding is removed. But the tail can be just =, ==, X= or XY=:
Tail length = 1 to 3 charactersFull groups (÷ 4) = 0Bytes to write = 0Padding adjustment = minus 1 or 2 ↓Bytes to write = -1 or -2 (integer underflow)
A negative count is meaningless for a mask. The hardware only looks at the low 8 bits of that number, so -1 turns into 255. A value of 64 or more selects nothing to clear, and the mask ends up with every bit set:
Expected: "write 0 bytes" → mask = 0000...0000Actual: "write -1 bytes" → mask = 1111...1111 → writes all 64 bytes
Exploitation
Step 1: Warm up the decoder
Java only uses the fast intrinsic after C2 compiles it. The attacker sends valid Base64 repeatedly until that happens.
Step 2: Arrange the heap
The exploit sends requests in timed pieces and creates many objects, so the decoder's output buffer ends up next to the object it wants to damage. It checks the response size to see whether the layout worked and retries if not.
Step 3: Send the malformed tail
The overwrite hits the neighbouring object and corrupts its size field.
Step 4: Leak memory
The application now writes or returns more data than it should, so the response carries extra heap memory. This leak is nicknamed JavaBleed and can expose private keys, tokens and personal data.
Step 5: Take control
With the ability to read and write heap memory, the attacker may alter application data or reach the JVM's compiled code, which leads to code execution.
The chain in summary:
Malformed Base64 tail ↓Out-of-bounds write ↓Neighbouring object corrupted ↓Wider read / write access to heap memory ↓Secrets leaked, data altered ↓Potential Remote Code Execution
A concrete walkthrough of the overwrite
Take 64 A characters followed by one = (65 characters in total):
- Java allocates a 50-byte output array.
- The first 64 characters decode into 48 bytes, written at positions 0 to 47.
- The tail is the single
=, so the byte count becomes -1 and the mask becomes all ones. - The decoder writes 64 bytes starting at position 48. Positions 48 and 49 are inside the array. The remaining 62 bytes land outside it.
- The decoder notices the input is invalid and Java throws an
IllegalArgumentException.
[ 0 ........ 47 ][ 48 ][ 49 ][ 50 ............. 111 ] decoded data inside array 62 bytes OUTSIDE the array
On older OpenJDK 17 builds, the trigger needs 128 A characters plus =.
The critical detail is ordering: the error is thrown after the overwrite. The application sees a normal "invalid input" failure, but the memory has already been damaged.
Root cause
The mistake is a counting error in the tail-handling path of the Base64 intrinsic. The code assumes the tail contains at least one full group of 4 characters before padding is removed. When the tail is shorter than that, the full-group count is 0 and the padding adjustment of minus 1 or 2 drives the byte count negative. The hardware only looks at the low 8 bits of the count, so -1 becomes 255, which is 64 or more, which selects nothing to clear, and the mask ends up with every bit set. The masked store then writes all 64 bytes instead of none.
The overwrite on its own is small and made of mostly fixed bytes, so it gives an attacker very little control. What the attacker can influence is where it lands. If the overwrite damages the right neighbouring object, it can be turned into something more powerful.
Crucially, the application itself does not need to contain a security flaw. The defect exists inside the Java runtime.
Impact
Successful exploitation may allow a remote, unauthenticated attacker to:
- Crash the Java process and cause a Denial of Service.
- Leak sensitive data from the heap, such as private keys, tokens and personal information (JavaBleed).
- Execute arbitrary code in specific applications, with the privileges of the Java process.
Researchers tested popular Java products such as Jenkins, Atlassian Jira, Confluence and Keycloak, and confirmed some versions as vulnerable.
The author is careful about the RCE claim. The malformed Base64 is only the trigger. Turning it into RCE needs extra techniques such as heap grooming and memory disclosure, and each application needs its own exploit, built around how that app uses Base64 and what it sends back. Not every memory corruption bug leads to RCE; some only crash the application. Successful RCE depends on whether the attacker can reliably convert the corruption into control over execution. At disclosure, no exploitation in the wild had been confirmed.
A reverse proxy that buffers whole requests (like NGINX by default) can break some timed-request variants. It is not a full defence: the published Elasticsearch exploit fits in a single request, and WebSocket traffic skips the buffering.
Fix
The primary and recommended action is to update Java to a patched build. The affected and fixed versions from the OpenJDK advisory are:
| Product | Affected Versions | Fixed Versions |
|---|---|---|
| OpenJDK 17 | 17.0.6 and later, before the fix |
[redacted] |
| OpenJDK 21 | Builds before the fix | [redacted] |
| OpenJDK 25 | Builds before the fix | [redacted] |
| OpenJDK 27 | Builds before the fix | [redacted] |
| Amazon Corretto | Builds based on the affected OpenJDK | 17.0.21.1.2, 21.0.13.1.2, 25.0.5.1.2, 27.0.1.1.4 |
| Oracle Java SE | 8u511b33-perf, 17.0.21.0.3, 21.0.13.0.3, 25.0.5.0.3, 27.0.1.0.3 |
See Oracle's November 2026 Critical Security Patch Update |
Two traps to remember:
- Containers: a patched host does not patch the Java inside a Docker image. Rebuild images on an updated base image.
- Bundled Java: many products ship their own JDK. Updating the system Java will not fix them, so apply the vendor's patch.
Patch internet-facing systems first. The author notes that JVM flags can serve as a temporary shield if you cannot update yet.
Variants to test
- Send a Base64 value whose final tail is exactly
=,==,X=orXY=, with the preceding data sized so the decoded output fills a small array. - Repeat valid Base64 requests to the same endpoint until the intrinsic is compiled, then send the malformed tail.
- Vary the amount of attacker-controlled data before the tail (the walkthrough uses 64
Acharacters, and older OpenJDK 17 builds need 128Acharacters plus=). - Send the malformed tail in timed pieces and watch response sizes.
- Test endpoints that echo decoded data back to the client.
- Try the same payloads over WebSocket, where reverse-proxy request buffering does not apply.
- Check whether the host CPU exposes
avx512f,avx512bw,avx512vbmiandbmi2. - In Kubernetes, check which nodes carry AVX-512 VBMI CPUs.
For detection, a failed attempt can crash the JVM and the attacker can simply try again. Useful signals to hunt for in a SIEM are repeated crashes or restarts of an internet-facing Java service, including new hs_err_pid*.log files; bursts of Base64 decoding errors on the same endpoint; and unusually large responses from endpoints that echo decoded data. These signals suggest possible exploitation but do not prove it. The relevant MITRE ATT&CK technique is T1190 (Exploit Public-Facing Application).
The broader lesson is that even the smallest helper functions deserve security attention.
What happened, in plain words
On 17 November 2026 a flaw in Java reported by Calif was disclosed. one of the most widely used programming languages for running websites and business applications. The flaw was given the identifier CVE-2026-114938 and the nickname Java4Shell. The same day, the organisation that maintains the free version of Java (OpenJDK) published an advisory, and Oracle, the company that sells the commercial version, released patches.
Oracle scores the flaw at CVSS 3.1: 8.1 (High). Early reports that use the newer CVSS 4.0 scoring system give it 9.2. A CVSS score is a number from 0 to 10 that tries to express how bad a security flaw is; higher is worse.
The flaw is not in any particular website or app. It is inside Java itself, in the part that turns a special text format called Base64 back into ordinary data. When Java is given a very short, slightly malformed piece of Base64 text, it can write data past the end of the memory space it was given, into memory that belongs to something else. Security people call that a heap out-of-bounds write. In the right circumstances an attacker can use it to crash the program, to read data they should not see, or even to run their own code on the server.
The author of the write-up explains it with a shelf. Imagine a shelf with exactly 50 slots reserved for you, and your neighbour's shelf right next to it. A helper is told to put away "-1 items". A sensible helper would do nothing. But this helper reads "-1" as "put away everything" and starts filling 64 slots. Your 50 slots overflow, and the extra items land on your neighbour's shelf.
That is the whole idea. Everything below unpacks it step by step, assuming you have never read a security advisory before.
1. First, understand what Base64 is
Many systems can only carry plain text. Email, JSON (the text format most web apps use to exchange data) and web forms are all built for text. They cannot carry a photo, a file or a random-looking login token directly.
So when an app needs to send something that is not text through a text-only channel, it first converts the data into harmless letters and numbers. That conversion is called Base64. It is not encryption: anyone can reverse it. It is just a way of packing arbitrary data into a safe alphabet of characters.
Hello ──(encode)──→ SGVsbG8= ──(decode)──→ Hello
Line by line:
Helloon the left is the original data.──(encode)──→means "convert to Base64".SGVsbG8=is whatHellolooks like after conversion. Notice it is only letters, digits and one=sign.──(decode)──→means "convert back".Helloon the right is the original data recovered.
The = at the end is called padding. It simply fills the last empty space, like bubble wrap in a box. Base64 works in groups of four characters, and padding tops up the final group when the original data does not divide evenly.
Why does this matter so much? Because Java decodes Base64 constantly. Every time it reads a login token, an API payload or an uploaded image, it is likely running this conversion. An API (application programming interface) is simply a way for one piece of software to talk to another over the network, usually by sending text back and forth. A token is a short string of characters that proves who you are, a bit like a wristband at an event: you show it, and the door opens. Because Base64 is everywhere, a bug in the Base64 code is reachable from almost anywhere.

The image is titled Java4Shell: HotSpot Base64 Heap Out-of-Bounds Write (CVE-2026-114938).
2. What is a JIT intrinsic? (Java's "speed mode")
Java does not run everything slowly. The Java runtime, the program that actually executes Java code, is called HotSpot. It starts by interpreting code, meaning it reads and executes instructions one at a time. Then it watches which methods run often and compiles those into faster machine code. Its most aggressive compiler is called C2.
For some library methods, C2 does not compile the Java code at all. It swaps in an intrinsic: a small piece of hand-written machine code that uses special CPU instructions to go faster. Think of it as a shortcut. Instead of following the recipe step by step, the kitchen has a pre-built gadget that does the common job in one motion.
For Base64 decoding on x86-64 CPUs with a feature called AVX-512 VBMI, the intrinsic works like this:
Input │ ├── 256-byte blocks → decoded quickly ├── 64-byte blocks → decoded quickly └── final tail (<64) → decoded with a masked store
Line by line:
Inputis the Base64 text arriving at the decoder.256-byte blocks → decoded quicklymeans large chunks are handled in one fast operation.64-byte blocks → decoded quicklymeans medium chunks are also handled fast.final tail (<64) → decoded with a masked storemeans whatever is left over, less than 64 bytes, is handled by a special instruction called a masked store.
A masked store writes data into memory, but only the bytes selected by a mask. Think of the mask as a stencil that says, "write only here". If the stencil is wrong, the write goes where it should not.
A CPU is the chip that does the computing. x86-64 is the family of CPUs found in most servers and laptops. AVX-512 VBMI is a set of extra instructions built into some newer CPUs that let them process lots of data at once. Not every CPU has it, which becomes important later.
3. What is a heap out-of-bounds write?
A program keeps its objects, meaning its live data, in an area of memory called the heap. Each buffer, meaning a reserved block of memory for holding data, gets a fixed amount of space.
An out-of-bounds write happens when the program writes beyond the end of that space. Imagine renting a storage locker and stacking boxes past the back wall into the next locker. Whatever was in the next locker is now damaged or overwritten.
Normal:[ Buffer (50 bytes) ][ Neighbour object ] └─ write stays inside ─┘Out-of-bounds:[ Buffer (50 bytes) ][ Neighbour object ] └─ write ─────────────────────→ spills into the neighbour
Line by line:
[ Buffer (50 bytes) ]is the space the program reserved, 50 bytes wide. A byte is a single character's worth of data.[ Neighbour object ]is whatever data happens to sit next to it in memory.- In the
Normalcase, the write stays inside the buffer. - In the
Out-of-boundscase, the write spills into the neighbour.
The overwritten neighbour may be anything the application uses. This is memory corruption: the program's own data has been silently changed by a write that went to the wrong place.
4. What is the bug in CVE-2026-114938?
Now let's connect the concept to the actual vulnerability.
When the decoder handles the final tail, it calculates how many bytes it should write. The code assumes the tail contains at least one full group of 4 characters before padding is removed. But what if the tail is just =, ==, X= or XY=?
Tail length = 1 to 3 charactersFull groups (÷ 4) = 0Bytes to write = 0Padding adjustment = minus 1 or 2 ↓Bytes to write = -1 or -2 (integer underflow)
Line by line:
Tail length = 1 to 3 charactersmeans the leftover piece is tiny, just one to three characters.Full groups (÷ 4) = 0means there is not even one complete group of four characters.Bytes to write = 0is what the code starts with, because no full group means nothing to write.Padding adjustment = minus 1 or 2is the step where the code subtracts the padding characters.Bytes to write = -1 or -2is the result. A count of bytes cannot be negative, so the number has wrapped around below zero. This is called an integer underflow.
A negative count is meaningless for a mask. The hardware only looks at the low 8 bits of that number, so -1 turns into 255. A value of 64 or more selects nothing to clear, and the mask ends up with every bit set.
Expected: "write 0 bytes" → mask = 0000...0000Actual: "write -1 bytes" → mask = 1111...1111 → writes all 64 bytes
Line by line:
Expected: "write 0 bytes" → mask = 0000...0000is what should happen: the stencil has no holes, so nothing is written.Actual: "write -1 bytes" → mask = 1111...1111is what really happens: the stencil has every hole open.→ writes all 64 bytesis the consequence: instead of writing nothing, the decoder writes a full 64-byte block.
A simple walkthrough
Take 64 A characters followed by one = (65 characters in total):
- Step 1: Java allocates a 50-byte output array.
- Step 2: The first 64 characters decode into 48 bytes, written at positions 0 to 47.
- Step 3: The tail is the single
=, so the byte count becomes -1 and the mask becomes all ones. - Step 4: The decoder writes 64 bytes starting at position 48. Positions 48 and 49 are inside the array. The remaining 62 bytes land outside it.
- Step 5: The decoder notices the input is invalid and Java throws an
IllegalArgumentException.
An array is a numbered list of slots in memory. Position 0 is the first slot, position 1 the second, and so on. An IllegalArgumentException is Java's way of saying "you gave me bad input".
[ 0 ........ 47 ][ 48 ][ 49 ][ 50 ............. 111 ] decoded data inside array 62 bytes OUTSIDE the array
Line by line:
[ 0 ........ 47 ]is the 48 bytes of properly decoded data, filling the first 48 slots.[ 48 ][ 49 ]are the last two slots of the 50-byte array, still inside it.[ 50 ............. 111 ]is the 62 bytes that landed outside the array, in memory that belongs to something else.
On older OpenJDK 17 builds, the trigger needs 128 A characters plus =.
The critical detail is ordering: the error is thrown after the overwrite. The application sees a normal "invalid input" failure, but the memory has already been damaged. Imagine a security guard who notices you broke a window, but only after you have already walked through it.
5. How can this lead to remote code execution?
This is the most critical part of understanding the vulnerability chain. Remote code execution, usually shortened to RCE, means an attacker somewhere else on the internet gets their own instructions to run on the victim's server. It is the worst outcome in most security flaws.
The overwrite on its own is small and made of mostly fixed bytes, so it gives an attacker very little control. What the attacker can influence is where it lands. If the overwrite damages the right neighbouring object, it can be turned into something more powerful:
Malformed Base64 tail ↓Out-of-bounds write ↓Neighbouring object corrupted ↓Wider read / write access to heap memory ↓Secrets leaked, data altered ↓Potential Remote Code Execution
Line by line:
Malformed Base64 tailis the attacker's input: a tiny piece of bad Base64.Out-of-bounds writeis the decoder writing past its buffer.Neighbouring object corruptedis the damage landing on something useful.Wider read / write access to heap memorymeans the attacker can now see or change more of the program's memory than they should.Secrets leaked, data alteredis the consequence: passwords, keys and personal data can escape, and data can be changed.Potential Remote Code Executionis the worst case: the attacker gets code running on the server.
The attack flow
The published research describes the following sequence:
- Step 1: The attacker warms up the decoder. Java only uses the fast intrinsic after C2 compiles it. The attacker sends valid Base64 repeatedly until that happens.
- Step 2: The attacker arranges the heap. The exploit sends requests in timed pieces and creates many objects, so the decoder's output buffer ends up next to the object it wants to damage. It checks the response size to see whether the layout worked and retries if not.
- Step 3: The malformed tail is sent. The overwrite hits the neighbouring object and corrupts its size field.
- Step 4: Memory is leaked. The application now writes or returns more data than it should, so the response carries extra heap memory. This leak is nicknamed JavaBleed and can expose private keys, tokens and personal data.
- Step 5: Control is taken. With the ability to read and write heap memory, the attacker may alter application data or reach the JVM's compiled code, which leads to code execution.
A few words to unpack. A request is what your browser sends to a server when you load a page or submit a form. A response is what the server sends back. Heap grooming is the deliberate arranging of memory so that the object you want to damage ends up next to the buffer you can overflow, like arranging furniture so a falling shelf lands on the sofa rather than the floor. The JVM, or Java Virtual Machine, is the program that runs Java code; its compiled code is the fast machine code C2 produced earlier.
Does one request give the attacker a shell?
Not necessarily. This is an important distinction.
The malformed Base64 is only the trigger. Turning it into RCE needs extra techniques such as heap grooming and memory disclosure, and each application needs its own exploit, built around how that app uses Base64 and what it sends back. Not every memory corruption bug leads to RCE. Some only crash the application. Successful RCE depends on whether the attacker can reliably convert the corruption into control over execution. At disclosure, no exploitation in the wild had been confirmed.
A reverse proxy that buffers whole requests (like NGINX by default) can break some timed-request variants. A reverse proxy is a server that sits in front of the real application and forwards traffic to it. Buffering means it waits until the whole request has arrived before passing it on, which spoils the attacker's timing. It is not a full defence: the published Elasticsearch exploit fits in a single request, and WebSocket traffic skips the buffering. A WebSocket is a two-way connection that stays open, so there is no single "whole request" to buffer.
6. Who is affected?
A system is exposed only when all three conditions are true:
- It runs a vulnerable Java build.
- It runs on an x86-64 CPU with AVX-512 VBMI (the flags
avx512f,avx512bw,avx512vbmiandbmi2are present). - The application decodes Base64 sent by an outside user (which most web apps do).
Vulnerable Java build +AVX-512 VBMI CPU +Attacker-controlled Base64 =Exposed
Line by line:
Vulnerable Java buildis a version of Java that still contains the bug.+AVX-512 VBMI CPUis a processor with the special instructions the buggy code path uses.+Attacker-controlled Base64is a way for an outsider to send Base64 into the app.=Exposedmeans all three together are what makes a system actually at risk.
CPUs that have these features include Intel Xeon Ice Lake, Sapphire Rapids, Emerald Rapids and Granite Rapids, and AMD EPYC and Ryzen Zen 4 or newer. ARM64 is not affected. ARM64 is a different CPU family, used in many phones and some servers.
OpenJDK 17.0.6 and later is affected, along with every distribution built from it: Oracle Java SE, Oracle GraalVM, Amazon Corretto, Eclipse Temurin, Microsoft Build of OpenJDK, Azul Zulu, BellSoft Liberica, SAP SapMachine and Red Hat OpenJDK. A distribution here means a packaged version of Java that a company ships to its users.
Oracle lists these Java SE versions as vulnerable: 8u511b33-perf, 17.0.21.0.3, 21.0.13.0.3, 25.0.5.0.3 and 27.0.1.0.3. Older OpenJDK 7, 8 and 11 builds are reported as lacking the vulnerable decoder, but always confirm with your vendor.
In Kubernetes, remember that a safe pod becomes exposed when it is scheduled onto a node with an AVX-512 VBMI CPU. Kubernetes is a system for running many containers across many machines. A pod is the smallest unit it runs, and a node is a machine in the cluster. The point is that a container image that looks safe can still land on hardware that makes it vulnerable.
7. What is the impact?
Successful exploitation may allow a remote, unauthenticated attacker to:
- Crash the Java process and cause a Denial of Service.
- Leak sensitive data from the heap, such as private keys, tokens and personal information (JavaBleed).
- Execute arbitrary code in specific applications, with the privileges of the Java process.
Remote means from somewhere else on the network. Unauthenticated means without logging in first. A Denial of Service, or DoS, means making a service unavailable to its real users. Privileges are the permissions a program runs with; if it runs as an administrator, so does the attacker's code.
Researchers tested popular Java products such as Jenkins, Atlassian Jira, Confluence and Keycloak, and confirmed some versions as vulnerable.
Crucially, the application itself does not need to contain a security flaw. The defect exists inside the Java runtime. That is why this is so broad: you do not have to have written bad code to be affected.
8. How can organisations protect themselves?
The primary and recommended action is to update Java to a patched build.
| Product | Affected Versions | Fixed Versions |
|---|---|---|
| OpenJDK 17 | 17.0.6 and later, before the fix |
[redacted] |
| OpenJDK 21 | Builds before the fix | [redacted] |
| OpenJDK 25 | Builds before the fix | [redacted] |
| OpenJDK 27 | Builds before the fix | [redacted] |
| Amazon Corretto | Builds based on the affected OpenJDK | 17.0.21.1.2, 21.0.13.1.2, 25.0.5.1.2, 27.0.1.1.4 |
| Oracle Java SE | 8u511b33-perf, 17.0.21.0.3, 21.0.13.0.3, 25.0.5.0.3, 27.0.1.0.3 |
See Oracle's November 2026 Critical Security Patch Update |
Also remember these two traps:
- Containers: a patched host does not patch the Java inside a Docker image. Rebuild images on an updated base image.
- Bundled Java: many products ship their own JDK. Updating the system Java will not fix them, so apply the vendor's patch.
A container is a packaged bundle of an application and everything it needs to run, including its own copy of Java. A Docker image is the template a container is built from. A JDK is a Java Development Kit, the full package of Java tools and runtime. The point of both traps is the same: there can be more than one copy of Java on a machine, and updating one does not update the others.
Patch internet-facing systems first. The author notes that JVM flags can serve as a temporary shield if you cannot update yet. JVM flags are startup options that change how Java behaves.
What should defenders watch for?
A failed attempt can crash the JVM, and the attacker can simply try again. Useful signals to hunt for in a SIEM:
- Repeated crashes or restarts of an internet-facing Java service, including new
hs_err_pid*.logfiles. - Bursts of Base64 decoding errors on the same endpoint.
- Unusually large responses from endpoints that echo decoded data.
A SIEM is a system that collects and searches logs from many machines. An endpoint is a specific address or path on a server that accepts requests. hs_err_pid*.log is the file Java writes when it crashes, containing diagnostic details.
These signals suggest possible exploitation but do not prove it. The relevant MITRE ATT&CK technique is T1190 (Exploit Public-Facing Application). MITRE ATT&CK is a public catalogue of attacker techniques, used by defenders to describe what they are seeing.
Conclusion
CVE-2026-114938 demonstrates how a subtle counting mistake can escalate into a critical security vulnerability.
The defect begins when a fast Base64 routine turns a negative length into a mask that writes 64 bytes where it should write none. The damage happens before Java reports the error, and with the right heap layout it can open the door to data leaks and code execution.
The fundamental takeaway is that even the smallest helper functions deserve security attention. Check your Java versions, patch your runtimes (including containers and bundled JDKs), and use the JVM flags as a temporary shield if you cannot update yet.
Glossary
- API: a way for one piece of software to talk to another over the network, usually by exchanging text.
- Array: a numbered list of slots in memory, where each slot holds one piece of data.
- ARM64: a family of CPUs different from x86-64, used in many phones and some servers.
- AVX-512 VBMI: a set of extra CPU instructions that let a processor handle lots of data at once.
- Base64: a way of converting arbitrary data into plain letters and digits so it can travel through text-only systems. Not encryption.
- Buffer: a reserved block of memory for holding data.
- Byte: a single character's worth of data; the basic unit of memory.
- C2: the most aggressive compiler inside HotSpot, which turns frequently used Java methods into fast machine code.
- Container: a packaged bundle of an application and everything it needs to run, including its own copy of Java.
- CPU: the chip that does the computing.
- CVSS: a scoring system from 0 to 10 that expresses how severe a security flaw is.
- CVE: a public identifier for a specific security flaw, like a reference number.
- Denial of Service (DoS): making a service unavailable to its real users.
- Docker image: the template a container is built from.
- Endpoint: a specific address or path on a server that accepts requests.
- Heap: the area of memory where a program keeps its live data.
- Heap grooming: deliberately arranging memory so that a chosen object ends up next to a buffer you can overflow.
- HotSpot: the Java runtime, the program that actually executes Java code.
- hs_err_pid.log*: the diagnostic file Java writes when it crashes.
- IllegalArgumentException: Java's way of saying "you gave me bad input".
- Integer underflow: when a number wraps around below zero because it was subtracted past its minimum.
- Intrinsic: a small piece of hand-written machine code that replaces a Java method to make it faster.
- JDK: Java Development Kit, the full package of Java tools and runtime.
- JIT: just-in-time compilation, the process of turning Java code into fast machine code while the program runs.
- JVM: Java Virtual Machine, the program that runs Java code.
- Kubernetes: a system for running many containers across many machines.
- Mask: a pattern of bits that selects which bytes a write is allowed to touch, like a stencil.
- Masked store: a CPU instruction that writes data only where a mask allows.
- Memory corruption: when a program's own data is silently changed by a write that went to the wrong place.
- MITRE ATT&CK: a public catalogue of attacker techniques used by defenders.
- Node: a machine in a Kubernetes cluster.
- Out-of-bounds write: writing data past the end of the memory space that was reserved.
- Padding: extra filler characters at the end of Base64 text that top up the final group.
- Pod: the smallest unit Kubernetes runs.
- Privileges: the permissions a program runs with.
- Remote code execution (RCE): when an attacker gets their own instructions to run on someone else's server.
- Request: what a browser or client sends to a server.
- Response: what a server sends back.
- Reverse proxy: a server that sits in front of the real application and forwards traffic to it.
- SIEM: a system that collects and searches logs from many machines.
- Token: a short string of characters that proves who you are.
- Unauthenticated: without logging in first.
- WebSocket: a two-way connection that stays open between client and server.
- x86-64: the family of CPUs found in most servers and laptops.