Java4Shell CVE-2026–114938: Check, Patch, Mitigate
A heap out-of-bounds write in the Java runtime's Base64 decoder on x86-64 CPUs with AVX-512 VBMI could allow unauthenticated remote code execution in some applications. Attackers could exploit this to run arbitrary code, though confirmed compromises have not been reported.
medium.com
Published on medium.com
Java
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 is CVE-2026-114938, a heap out-of-bounds write in the Base64 decoder of the Java runtime, disclosed on 17 November 2026. The bug is not in an application library but in HotSpot's x86-64 Base64 decoding routine, an intrinsic that the C2 JIT compiler emits. Malformed Base64 input can write past the end of a heap array. The vulnerable path is reached only on CPUs with AVX-512 VBMI; ARM64 does not use it.
The article separates what is established from what is not, because headlines about attackers disguising themselves as Chrome ran ahead of the evidence. The flaw and attack observations come from the research and vendor write-ups cited in the report; the version, CPU and workaround checks were run on Ubuntu 24.04 with OpenJDK 17 and 21.

Setup
The checks below were run on Ubuntu 24.04 with OpenJDK 17 and OpenJDK 21. No special accounts or roles are involved: everything is local inspection of a host and its JVMs. The tools used are standard ones present on a typical Linux system: grep, readlink, jcmd, javac, java and apt-get.
Three conditions must all hold for exposure:
- An unpatched Java build.
- An x86-64 CPU that advertises AVX-512 VBMI.
- An application that passes attacker-controlled Base64 data into the decoder.
Finding it
The starting point is the nature of the bug. Because it lives in the runtime rather than in a dependency, dependency scanners that read pom.xml or package-lock.json will not find it. Datadog, as quoted on Cloudflare's tracking page, says the bug is reached before the application can reject the input, so validating input in application code does not help either.
It is also not one universal exploit. The attacker needs an application-specific way to get Base64 data into the decoder, and for RCE, per OX Security, must manipulate heap layout and defeat ASLR for each target. OX estimates under 0.12% of JVM instances are exposed to RCE and about 0.8% to crashes; that is one vendor's estimate.
Scores differ between sources. Calif rates the flaw 9.2 under CVSS 4.0. Oracle rates its Java SE fixes up to 8.1 under CVSS 3.1. These are different scoring systems, and Cloudflare's page notes the two may describe different things.
On the observed activity: Cloudflare's Cloudforce One reported that a source IP scanned a target with a User-Agent that revealed the scanning tool, then about 17 hours later sent an exploit attempt to the same target, this time claiming to be Chrome. In a separate 18 November post it said that for the first time it had seen traffic linked to both ARTEX and Java4Shell from one IP address. watchTowr separately reported that its honeypots were being hit with requests carrying a java4shell-recon User-Agent and with blind exploitation attempts.
The Cybersecurity News write-up is explicit about the limits. The reports do not establish that ARTEX sent the Chrome-disguised request, that either attempt led to a breach, or that a shared IP means a common operator. The disguise was in the HTTP User-Agent header, not in Chrome.
ARTEX itself, per the FBI FLASH advisory of 13 November 2026 (FLASH-20261113-001) as summarised by SC Media and others, is an open-source, LLM-driven penetration-testing framework written in Go. The FBI says threat actors have used it since at least August 2026 to automate parts of intrusions, and that some went from initial targeting to privileged access in under three hours. It is a tool, not a group: many different actors can run it. If the Cloudforce One sighting does reflect ARTEX activity, it would mean an automated framework testing a brand-new CVE within a day, but a shared IP says little about who is operating it.
Exploitation
Calif has not released the weaponised chains, and the checks below are exposure checks, not exploitation. Calif reports unauthenticated remote code execution in default configurations of Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate, and authenticated RCE in Kafka, Solr, Elasticsearch, Gerrit and Spinnaker. It has not released the weaponised chains. A proof of concept for the memory corruption is public.
Step 1: Check the CPU for AVX-512 VBMI
grep -o -w avx512vbmi /proc/cpuinfo | sort -u
On the sandbox used, this printed avx512vbmi, so the host is on the exposed path. No output means the CPU does not advertise the feature. Patching is still the safer answer, because workloads move between hosts.
Step 2: Check every Java runtime, not just the one on PATH
Application servers, bundled JREs and container images each carry their own runtime.
ls /usr/lib/jvm//usr/lib/jvm/java-21-openjdk-amd64/bin/java -versionreadlink /proc/<pid>/exejcmd <pid> VM.version
In the test, readlink /proc/<pid>/exe showed the exact java binary of a running process, and jcmd <pid> VM.version printed [redacted]+2-1-24.04.1-Ubuntu. A host can have a patched Java on the PATH while a service runs an older bundled one, which is the usual reason a "patched" server turns out not to be.
On the test machine the default Java was [redacted], which is not a fixed build, while OpenJDK 17 was already 17.0.21.1. A host can be half patched.
Step 3: Ask the JIT whether the Base64 intrinsic is in use
A harmless program that only decodes a valid string, nothing malformed:
import java.util.Base64;public class B64 { public static void main(String[] a) { byte[] src = new byte[4096]; for (int i = 0; i < src.length; i++) src[i] = (byte) i; String s = Base64.getEncoder().encodeToString(src); long sum = 0; for (int i = 0; i < 60000; i++) sum += Base64.getDecoder().decode(s).length; System.out.println(sum); }}
javac B64.javajava -XX:+UnlockDiagnosticVMOptions -XX:+PrintIntrinsics B64 | grep -i base64
On both OpenJDK [redacted] and [redacted] here, this printed java.util.Base64$Decoder::decodeBlock (186 bytes) (intrinsic). Adding -XX:-UseBASE64Intrinsics removed those lines. Read this correctly: it shows that the intrinsic is compiled on this CPU, which is the exposure path. It does not tell you whether the build is vulnerable, because the patched [redacted] uses the intrinsic too, with the fix. Version is what decides that.
Step 4: Patch and restart
Oracle's list of fixed builds, as reproduced on Cloudflare's tracking page: 8u513, [redacted], [redacted], [redacted], [redacted] and 27.0.1.1. Other vendors (Temurin, Corretto, Zulu, Microsoft, Red Hat, distributions) ship their own build numbers, so install their fixed release rather than matching Oracle's. Oracle's advisory lists more affected lines than the "17.0.6 and later" in the research reports, and Sonatype warns not to treat Oracle's affected list as the confirmed range for this CVE. Patch every line you run.
On Ubuntu 24.04 both of the following were verified:
- The package changelog for
openjdk-17[redacted] lists CVE-2026-114938, and the changelog for [redacted] does too. The earlier [redacted] changelog does not. apt-get install --only-upgrade openjdk-21-jre-headless openjdk-21-jdk-headlessmovedjava -versionfrom [redacted] to [redacted] (dated 2026-11-17).
sudo apt-get updatesudo apt-get install zgrep -c CVE-2026-114938 /usr/share/doc/openjdk-21-jre-headless/changelog.Debian.gz
Then restart every Java service. A running JVM keeps using the code it loaded at start, so a package upgrade alone does not protect a process that started before it. Confirm with jcmd <pid> VM.version after the restart. For applications that ship their own Java (Elasticsearch bundles a JDK, and many container images include one), the fix comes from updating or rebuilding that product or image.
Step 5: Temporary mitigations if you cannot patch today
Two JVM options are reported as temporary mitigations (BleepingComputer; SOCRadar names the first):
-XX:-UseBASE64Intrinsics: turns off the vulnerable intrinsic, so the decoder uses ordinary Java code.-XX:UseAVX=2: stops the JVM using AVX-512 instructions.
On OpenJDK [redacted] both flags exist in this JVM. The default on this CPU was UseAVX = 3 and UseBASE64Intrinsics = true. With -XX:-UseBASE64Intrinsics the second flag read false. With -XX:UseAVX=2, UseBASE64Intrinsics also defaulted to false, so both options end up disabling the intrinsic here. Whether either blocks the vulnerability itself was not tested, since no exploit was run, and the performance cost was not measured. Cloudflare's tracking page lists no workaround flags at all and recommends only updating and restarting, so treat these as a stopgap.
To apply a flag to a service, add it to that service's Java options (for example its JAVA_OPTS or unit file), then restart it. The generic JAVA_TOOL_OPTIONS environment variable also works for any JVM; the JVM prints a "Picked up JAVA_TOOL_OPTIONS" line on start, which is how it was confirmed as read in this environment.
Root cause
The flaw is a heap out-of-bounds write in the x86-64 Base64 decoding intrinsic that the C2 JIT compiler uses. Because the write happens inside the runtime's decoder, it is reached before the application can reject the input, according to Datadog. That is why input validation in application code does not stop it, and why dependency scanners do not see it: it is a runtime bug, not a library bug.
The vulnerable path is only compiled on CPUs with AVX-512 VBMI, and ARM64 does not use it. The intrinsic check above shows the intrinsic being compiled on such a CPU; the patched build still uses the intrinsic, with the fix, so the version is what determines whether a build is vulnerable.
Impact
Those chains have not been released.
Exploitation in the wild is reported as scanning and exploit attempts by Cloudflare and watchTowr. A confirmed breach has not been reported in the coverage read, and a CISA alert urges patching. A failed exploit attempt can crash the JVM rather than run code, per the "easy to crash, hard to exploit" analysis. OX Security's estimate is that under 0.12% of JVM instances are exposed to RCE and about 0.8% to crashes.
Exposure requires all three conditions: an unpatched build, an x86-64 CPU with AVX-512 VBMI, and an application that passes attacker-controlled Base64 to the decoder. For RCE, the attacker must also manipulate heap layout and defeat ASLR for each target.
Fix
Oracle and OpenJDK released patched builds on 17 November. Examples are [redacted] and 21.0.13.1. Oracle's full list of fixed builds is 8u513, [redacted], [redacted], [redacted], [redacted] and 27.0.1.1. Other vendors ship their own build numbers, so install their fixed release rather than matching Oracle's, and patch every line you run. Restart every Java service afterwards, and for products that bundle their own Java, update or rebuild that product or image.
If you cannot patch immediately, the two JVM flags above are a stopgap. Cloudflare recommends only updating and restarting.
Detection
Detection was not tested. The advice in the reports is:
- Prioritise internet-facing services.
- Compare web and application logs for repeat requests to the same service, including the same address returning later under another User-Agent.
- Check host logs for unexpected Java crashes. JVMs write
hs_err_pid*.logfiles on a hard crash, so look for new ones. - Treat the
java4shell-reconUser-Agent as one clue, not a filter.
On the User-Agent detail: a User-Agent is whatever the client says it is. A scanner that announces itself in one request and says "Chrome" in the next shows that scanners rotate headers. Do not write a rule that treats a Chrome User-Agent as safe, and do not rely on a rule that blocks java4shell-recon: both are trivial to change. Cybersecurity News makes the same point and, citing the FBI, advises checking IP indicators against current network activity before blocking.
Common mistakes
- Checking the
PATHJava only. Check each service's runtime. - Upgrading but not restarting.
- Assuming input validation protects you. Per Datadog, the bug is reached before the application can reject input.
- Relying on a dependency scan. It is a runtime flaw.
- Blocking by User-Agent. It is attacker-controlled.
- Waiting because "ARM is safe". That helps only if every host is ARM64; x86-64 hosts with AVX-512 VBMI are the exposed ones.
What happened, in plain words
On 17 November 2026 a serious security flaw in Java was made public. Java is a programming language, and a lot of software is written in it. To run that software, a computer needs a piece of software called a Java runtime (also called a JVM, short for Java Virtual Machine). The runtime is the engine that actually executes Java programs. The flaw, tracked under the name CVE-2026-114938 and nicknamed Java4Shell, sits inside that engine rather than in an application library.
What the flaw allows is a memory-corruption attack. Computer programs keep their working data in an area called memory, and they are supposed to stay inside the boundaries of the little blocks they have reserved there. This bug lets a specially crafted piece of data, in a format called Base64, make the Java runtime write past the end of one of those reserved blocks. Writing outside your own block is called a heap out-of-bounds write, and it is dangerous because the bytes that land in the wrong place can change how the program behaves, up to and including letting an attacker run their own commands on the machine.
Within a day of the disclosure, security vendors were reporting exploit attempts. One report described an address that first scanned a target while openly identifying its scanning tool, then came back about 17 hours later with an attack attempt that claimed to be the Chrome web browser. News headlines turned this into "hackers using ARTEX disguise themselves as Chrome". The evidence is narrower than that headline, and the difference matters for what you should actually do, so this article separates what is established from what is not, then walks through how to check, patch and mitigate.

The short version
- The flaw: a heap out-of-bounds write in the x86-64 Base64 decoding routine that HotSpot uses (an "intrinsic"). It is reached only on CPUs with AVX-512 VBMI, and ARM64 does not use the vulnerable path.
- Affected: reported as OpenJDK 17.0.6 and later, across vendors (Oracle, Temurin, Corretto, Microsoft, Azul, Red Hat). Oracle's own advisory lists more release lines.
- Fixed: Oracle and OpenJDK released patched builds on 17 November. Examples: [redacted] and 21.0.13.1.
- Exploitation: scanning and exploit attempts are reported. Confirmed compromises are not.
- The "Chrome disguise": a spoofed
User-Agentheader. Anyone can set it to anything, so it is a detail to note, not a signature to block.
A few of those words need unpacking before they mean anything.
HotSpot is the name of the standard Java runtime engine. x86-64 is the family of processors used in most laptops, desktops and servers (as opposed to ARM, the family used in most phones and in Apple's newer Macs). Base64 is a way of writing raw bytes as plain text using only letters, digits and a couple of symbols. It is everywhere on the web: email attachments, images embedded in web pages, and login tokens are often Base64. A decoder is the piece of software that turns Base64 text back into the original bytes.
An intrinsic is a shortcut inside the runtime: instead of running the ordinary step-by-step instructions for a task, the runtime swaps in a hand-optimised version that uses special processor instructions to go faster. That speed is exactly where the bug lives.
AVX-512 VBMI is a set of extra instructions built into some processors. If your processor does not have them, the vulnerable shortcut is never used, which is why ARM64 machines are not on the affected path.
OpenJDK is the open-source codebase that most Java runtimes are built from. Oracle, Temurin, Corretto, Microsoft, Azul and Red Hat are organisations that take that codebase and ship their own builds, each with its own version numbers. A release line is a major version that keeps receiving updates, such as Java 17 or Java 21.
A User-Agent is a short line of text that a browser or other program sends with every request to a website, saying what it is. It is entirely self-declared, like a name badge you write yourself, so it proves nothing.
What the flaw is
Per the research and vendor write-ups (Calif, Group-IB, Picus, BleepingComputer), Java4Shell is CVE-2026-114938, a heap out-of-bounds write in the Base64 intrinsic that the C2 JIT compiler uses on x86-64. Malformed Base64 input can write past the end of a heap array. Calif says it got unauthenticated remote code execution in default configurations of Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate, and authenticated RCE in Kafka, Solr, Elasticsearch, Gerrit and Spinnaker. It has not released the weaponized chains. A proof of concept for the memory corruption is public.
That paragraph is dense, so here is each piece.
A JIT compiler (just-in-time compiler) is the part of the Java runtime that watches your program run and then rewrites the hot parts into faster machine code on the fly. The one in HotSpot is called C2. A heap array is a block of memory the program has reserved to hold a list of values. "Writing past the end" means putting data into the memory just after that block, which belongs to something else.
Remote code execution, or RCE, is the worst outcome in this field: an attacker somewhere else on the network gets your machine to run commands of their choosing. Unauthenticated means they do not need any account or password on the target. Authenticated means they first need to be logged in as some user. Default configurations means the software as shipped, without any special hardening.
The products named are widely used business applications. Keycloak handles logins. Jira and Confluence are Atlassian's issue tracker and wiki. Artifactory stores software packages. Jenkins runs automated build jobs. PingFederate handles single sign-on. Kafka moves streams of messages. Solr and Elasticsearch are search engines over large data sets. Gerrit reviews code changes. Spinnaker deploys software. A weaponized chain is a complete, ready-to-run attack, as opposed to a demonstration. A proof of concept is a small demonstration showing the bug is real, usually without doing anything useful to an attacker.
Three things to keep straight:
- It is a runtime bug, not a library bug. Dependency scanners that look at your
pom.xmlorpackage-lock.jsonwill not find it. Datadog, as quoted on Cloudflare's tracking page, says the bug is reached before the application can reject the input, so validating input in your code does not help. - It is not one universal exploit. The attacker needs an application-specific way to get Base64 data into the decoder, and for RCE, per OX Security, must manipulate heap layout and defeat ASLR for each target. OX estimates under 0.12% of JVM instances are exposed to RCE and about 0.8% to crashes. Treat those as one vendor's estimate.
- Scores differ. Calif rates it 9.2 (CVSS 4.0). Oracle rates its Java SE fixes up to 8.1 (CVSS 3.1). Different scoring systems, and Cloudflare's page notes the two may describe different things.
A library is a bundle of ready-made code that an application pulls in. A dependency scanner reads the list of libraries a project uses, such as pom.xml (the list for Java projects built with Maven) or package-lock.json (the list for JavaScript projects), and checks those libraries against known-bad versions. Because this bug is in the engine underneath, not in any listed library, such a scanner has nothing to match against.
Input validation means your application inspects data coming in and rejects anything that looks wrong. Here it does not help, because the damage happens inside the runtime's decoder before your code ever sees the data.
Heap layout is the arrangement of reserved memory blocks at a given moment; an attacker often has to shape it so the stray write lands somewhere useful. ASLR (address space layout randomisation) is an operating-system defence that shuffles where things sit in memory each time a program starts, so an attacker cannot hard-code addresses. Defeating it means finding a way around that shuffling, separately for each target.
CVSS is a standard scoring system for severity, from 0 to 10. Version 4.0 and version 3.1 are two editions of that standard, and they do not always produce the same number for the same flaw.
What was observed, and what was not
Cloudflare's Cloudforce One reported that a source IP scanned a target with a User-Agent that revealed the scanning tool, then about 17 hours later sent an exploit attempt to the same target, this time claiming to be Chrome. In a separate 18 November post it said that for the first time it had seen traffic linked to both ARTEX and Java4Shell from one IP address. watchTowr separately reported that its honeypots were being hit with requests carrying a java4shell-recon User-Agent and with blind exploitation attempts.
The Cybersecurity News write-up is explicit about the limits. The reports do not establish that ARTEX sent the Chrome-disguised request, that either attempt led to a breach, or that a shared IP means a common operator. The disguise was in the HTTP User-Agent header, not in Chrome.
Cloudflare is a security company, and watchTowr reported the honeypot hits. Cloudforce One is Cloudflare's threat-intelligence team. An IP address is the numeric address a machine uses on a network, roughly like a postal address for computers. Scanning means probing a target to see what it runs, the reconnaissance stage before an attack. A honeypot is a decoy system set up to look interesting so that attackers probe it and get recorded.
HTTP is the protocol browsers and servers use to talk. A header is a labelled line of extra information attached to a request, and User-Agent is one of those labels. Blind exploitation attempts are attacks fired without knowing whether the target is vulnerable, hoping one lands.
What ARTEX is
Per the FBI FLASH advisory of 13 November 2026 (FLASH-20261113-001), as summarized by SC Media and others, ARTEX is an open-source, LLM-driven penetration-testing framework written in Go. The FBI says threat actors have used it since at least August 2026 to automate parts of intrusions, and that some went from initial targeting to privileged access in under three hours. It is a tool, not a group: many different actors can run it. If the Cloudforce One sighting does reflect ARTEX activity, it would mean an automated framework testing a brand-new CVE within a day, but a shared IP says little about who is operating it.
The FBI is the US federal police agency, and it publishes FLASH advisories to warn organisations about active threats. Open-source means the code is publicly available for anyone to download. LLM-driven means it uses a large language model, the technology behind chat assistants, to help decide what to do. Go is a programming language. A penetration-testing framework is a toolkit for authorised break-in testing; the same toolkit works just as well for unauthorised break-ins. Threat actors is the neutral term for attackers. Privileged access means an account with high-level rights, such as an administrator.
What to take from the User-Agent detail
A User-Agent is whatever the client says it is. A scanner that announces itself in one request and says "Chrome" in the next shows that scanners rotate headers. Do not write a rule that treats a Chrome User-Agent as safe, and do not rely on a rule that blocks java4shell-recon: both are trivial to change. Cybersecurity News makes the same point and, citing the FBI, advises checking IP indicators against current network activity before blocking.
An indicator is a clue, such as an IP address or a header value, that suggests malicious activity. Blocking on a clue that the attacker controls is like locking a door because the burglar wore a particular hat.
Step 1: Are you exposed?
You need an unpatched build, an x86-64 CPU with AVX-512 VBMI, and an application that passes attacker-controlled Base64 to the decoder. Start with the CPU:
grep -o -w avx512vbmi /proc/cpuinfo | sort -u
Line by line:
grepis a standard Linux tool that searches text for a pattern.-otells it to print only the matching part, not the whole line.-wmeans match whole words only, so a longer word containing the same letters does not count.avx512vbmiis the exact feature name we are looking for./proc/cpuinfois a file the Linux kernel provides that lists what the processor can do. It is not a real file on disk; the kernel generates it on demand.|(a pipe) hands the output of the left command to the right one.sort -usorts the lines and removes duplicates, so if several processor cores each report the feature you see it once.
On the sandbox I used, this printed avx512vbmi, so it is on the exposed path. No output means the CPU does not advertise the feature. Patching is still the safer answer, because workloads move between hosts.
Then the Java versions. Check every runtime, not just the one on your PATH: application servers, bundled JREs, and container images each carry their own.
ls /usr/lib/jvm//usr/lib/jvm/java-21-openjdk-amd64/bin/java -versionreadlink /proc/<pid>/exejcmd <pid> VM.version
Line by line:
ls /usr/lib/jvm/lists the directory where Linux distributions usually keep installed Java runtimes. Seeing several entries means several runtimes are installed side by side./usr/lib/jvm/java-21-openjdk-amd64/bin/java -versionruns one specificjavabinary by its full path and asks it to print its version. Using the full path matters: it checks that exact copy, not whichever one happens to be first on thePATH.readlink /proc/<pid>/exeasks the kernel which program file a running process is actually executing.<pid>is the process number, which you find with a tool such asps./proc/<pid>/exeis a kernel-provided link to the real binary.jcmd <pid> VM.versionis a standard Java tool that talks to a running Java process and asks it to report its own version.
PATH is the list of folders your shell searches when you type a command name. A JRE is a Java runtime environment, the part needed to run Java programs (as opposed to the JDK, which also includes the compiler for writing them). A container image is a packaged, self-contained filesystem used to run software in isolation, and it often carries its own Java inside.
In my test, readlink /proc/<pid>/exe showed the exact java binary of a running process, and jcmd <pid> VM.version printed [redacted]+2-1-24.04.1-Ubuntu. A host can have a patched Java on the PATH while a service runs an older bundled one, which is the usual reason a "patched" server turns out not to be.
On my machine the default Java was [redacted], which is not a fixed build, while OpenJDK 17 was already 17.0.21.1. That is a useful reminder that a host can be half patched.
Is the vulnerable intrinsic in use?
You can ask the JIT whether it is using the Base64 intrinsic with a harmless valid-input program (this only decodes a valid string, nothing malformed):
import java.util.Base64;public class B64 { public static void main(String[] a) { byte[] src = new byte[4096]; for (int i = 0; i < src.length; i++) src[i] = (byte) i; String s = Base64.getEncoder().encodeToString(src); long sum = 0; for (int i = 0; i < 60000; i++) sum += Base64.getDecoder().decode(s).length; System.out.println(sum); }}
Line by line:
import java.util.Base64;makes the runtime's built-in Base64 encoder and decoder available to the program.public class B64 {starts a class, which in Java is a named container for code. The file must be calledB64.javato match.public static void main(String[] a) {is the entry point; Java runs this method when the program starts.byte[] src = new byte[4096];reserves an array of 4096 bytes, the raw data we will encode.for (int i = 0; i < src.length; i++) src[i] = (byte) i;fills it with the values 0 to 255, repeating, so the content is predictable.String s = Base64.getEncoder().encodeToString(src);turns those bytes into Base64 text, using the encoder, which is not the vulnerable part.long sum = 0;prepares a counter so the compiler cannot decide the loop is pointless and delete it.for (int i = 0; i < 60000; i++) sum += Base64.getDecoder().decode(s).length;decodes the same valid string 60,000 times. The repetition is the point: the JIT only bothers to optimise code that runs often, so this forces it to consider the decoder.System.out.println(sum);prints the counter, proving the work happened.
javac B64.javajava -XX:+UnlockDiagnosticVMOptions -XX:+PrintIntrinsics B64 | grep -i base64
Line by line:
javac B64.javacompiles the source file into a runnable class file.javastarts the runtime on that class.-XX:+UnlockDiagnosticVMOptionsunlocks extra internal switches that are hidden by default.-XX:+PrintIntrinsicsasks the runtime to print a line whenever it swaps in an optimised shortcut.B64is the class to run.| grep -i base64filters the output down to lines mentioning Base64, ignoring case.
On both OpenJDK [redacted] and [redacted] here, this printed java.util.Base64$Decoder::decodeBlock (186 bytes) (intrinsic). Adding -XX:-UseBASE64Intrinsics removed those lines. Read this correctly: it shows that the intrinsic is compiled on this CPU, which is the exposure path. It does not tell you whether the build is vulnerable, because the patched [redacted] uses the intrinsic too (with the fix). Version is what decides that.
Step 2: Patch and restart
Oracle's list of fixed builds, as reproduced on Cloudflare's tracking page: 8u513, [redacted], [redacted], [redacted], [redacted] and 27.0.1.1. Other vendors (Temurin, Corretto, Zulu, Microsoft, Red Hat, distributions) ship their own build numbers, so install their fixed release rather than matching Oracle's. Oracle's advisory lists more affected lines than the "17.0.6 and later" in the research reports, and Sonatype warns not to treat Oracle's affected list as the confirmed range for this CVE. Patch every line you run.
A distribution here means a Linux distribution such as Ubuntu, which packages Java itself. Sonatype is a company that maintains software supply-chain tooling. An advisory is the official notice a vendor publishes about a flaw and its fixes.
On Ubuntu 24.04 I verified both of the following:
- The package changelog for
openjdk-17[redacted] lists CVE-2026-114938, and the changelog for [redacted] does too. The earlier [redacted] changelog does not. apt-get install --only-upgrade openjdk-21-jre-headless openjdk-21-jdk-headlessmovedjava -versionfrom [redacted] to [redacted] (dated 2026-11-17).
A package is a bundle of software that a distribution installs and updates for you. A changelog is the list of changes in each release. apt-get is Ubuntu's package manager, the tool that installs and upgrades software. --only-upgrade means upgrade what is already installed but do not install anything new. jre-headless is the runtime without graphical components, and jdk-headless adds the compiler, both without a desktop interface.
sudo apt-get updatesudo apt-get install zgrep -c CVE-2026-114938 /usr/share/doc/openjdk-21-jre-headless/changelog.Debian.gz
Line by line:
sudoruns the next command with administrator rights, which package management needs.apt-get updaterefreshes the local list of available packages from the distribution's servers.apt-get installinstalls or upgrades packages.zgrepsearches inside compressed files, which is needed because the changelog is stored gzipped.-ccounts matching lines instead of printing them.CVE-2026-114938is the identifier to look for./usr/share/doc/openjdk-21-jre-headless/changelog.Debian.gzis the changelog file for the installed package.
Then restart every Java service. A running JVM keeps using the code it loaded at start, so a package upgrade alone does not protect a process that started before it. Confirm with jcmd <pid> VM.version after the restart. For applications that ship their own Java (Elasticsearch bundles a JDK, and many container images include one), the fix comes from updating or rebuilding that product or image.
Step 3: If you cannot patch today
Two JVM options are reported as temporary mitigations (BleepingComputer; SOCRadar names the first):
-XX:-UseBASE64Intrinsics: turns off the vulnerable intrinsic, so the decoder uses ordinary Java code.-XX:UseAVX=2: stops the JVM using AVX-512 instructions.
A JVM option is a switch you pass on the command line when starting Java to change how it behaves. The -XX: prefix marks internal tuning options. A mitigation is a temporary measure that reduces risk without removing the underlying flaw.
I confirmed on OpenJDK [redacted] that both flags exist in this JVM. The default on this CPU was UseAVX = 3 and UseBASE64Intrinsics = true. With -XX:-UseBASE64Intrinsics the second flag read false. With -XX:UseAVX=2, UseBASE64Intrinsics also defaulted to false, so both options end up disabling the intrinsic here. I did not test whether either blocks the vulnerability itself, since I did not run any exploit, and I did not measure the performance cost. Cloudflare's tracking page lists no workaround flags at all and recommends only updating and restarting, so treat these as a stopgap.
To apply a flag to a service, add it to that service's Java options (for example its JAVA_OPTS or unit file), then restart it. The generic JAVA_TOOL_OPTIONS environment variable also works for any JVM; the JVM prints a "Picked up JAVA_TOOL_OPTIONS" line on start, which is how I confirmed it was read in my environment.
JAVA_OPTS is a common name for an environment variable that a service's startup script reads and passes to Java. A unit file is the configuration file that tells the system's service manager how to start a program. An environment variable is a named value that a program can read from its surroundings when it starts.
Detection
I did not test detection. The advice in the reports is:
- Prioritise internet-facing services.
- Compare web and application logs for repeat requests to the same service, including the same address returning later under another User-Agent.
- Check host logs for unexpected Java crashes (a failed exploit attempt can crash the JVM rather than run code, per the "easy to crash, hard to exploit" analysis). JVMs write
hs_err_pid*.logfiles on a hard crash, so look for new ones. - Treat the
java4shell-reconUser-Agent as one clue, not a filter.
Internet-facing means reachable from the public internet, as opposed to only from inside an office network. Logs are the records a server keeps of what happened. hs_err_pid*.log is the crash report file a Java runtime writes when it dies unexpectedly; the * stands for the process number.
Common mistakes
- Checking the
PATHJava only. Check each service's runtime. - Upgrading but not restarting.
- Assuming input validation protects you. Per Datadog, the bug is reached before the application can reject input.
- Relying on a dependency scan. It is a runtime flaw.
- Blocking by User-Agent. It is attacker-controlled.
- Waiting because "ARM is safe". That helps only if every host is ARM64; your x86-64 hosts with AVX-512 VBMI are the exposed ones.
Frequently asked questions
Is Java4Shell being exploited?
Exploit attempts and scanning are reported by Cloudflare and watchTowr. A confirmed breach has not been reported in the coverage I read, and a CISA alert urges patching.
CISA is the US Cybersecurity and Infrastructure Security Agency, which publishes alerts urging organisations to act.
Did ARTEX disguise itself as Chrome?
Not established. Cloudforce One saw ARTEX-linked and Java4Shell traffic from one IP, and a Chrome-claiming exploit attempt after an earlier labelled probe, but the reports do not say ARTEX sent the Chrome request.
Does it affect ARM servers?
The vulnerable path is reported to be x86-64 only, on CPUs with AVX-512 VBMI. ARM64 does not use it.
Which Java versions are fixed?
Oracle lists 8u513, [redacted], [redacted], [redacted], [redacted] and 27.0.1.1. Other vendors use their own numbering, so check their advisory.
Is my application safe if it validates Base64 first?
Not on the evidence available. The flaw is in the runtime's decoder, reached before your validation, according to Datadog.
Glossary
- Advisory: the official notice a vendor publishes about a flaw and its fixes.
- ARM64: the processor family used in most phones and newer Macs; not on the vulnerable path here.
- ARTEX: an open-source, LLM-driven penetration-testing framework written in Go, which the FBI says attackers have used.
- ASLR: address space layout randomisation, an operating-system defence that shuffles where things sit in memory each time a program starts.
- Authenticated: requiring a logged-in account first.
- AVX-512 VBMI: a set of extra processor instructions; the vulnerable shortcut is only used on CPUs that have them.
- Base64: a way of writing raw bytes as plain text using letters, digits and a couple of symbols.
- Blind exploitation attempt: an attack fired without knowing whether the target is vulnerable.
- C2: the just-in-time compiler inside HotSpot that rewrites hot code into faster machine code.
- Changelog: the list of changes in each release of a package.
- CISA: the US Cybersecurity and Infrastructure Security Agency.
- Cloudforce One: Cloudflare's threat-intelligence team.
- Container image: a packaged, self-contained filesystem used to run software in isolation.
- CVSS: a standard scoring system for severity, from 0 to 10, in several editions such as 3.1 and 4.0.
- Decoder: software that turns Base64 text back into the original bytes.
- Default configuration: the software as shipped, without special hardening.
- Dependency scanner: a tool that reads a project's list of libraries and checks them against known-bad versions.
- Distribution: a Linux distribution such as Ubuntu, which packages software for you.
- Environment variable: a named value a program can read from its surroundings when it starts.
- FLASH advisory: a warning bulletin published by the FBI.
- Go: a programming language.
- Header: a labelled line of extra information attached to an HTTP request.
- Heap array: a block of memory a program has reserved to hold a list of values.
- Heap layout: the arrangement of reserved memory blocks at a given moment.
- Heap out-of-bounds write: writing data past the end of a reserved memory block, into memory that belongs to something else.
- Honeypot: a decoy system set up to attract and record attackers.
- HotSpot: the name of the standard Java runtime engine.
- HTTP: the protocol browsers and servers use to talk.
- Indicator: a clue, such as an IP address or header value, suggesting malicious activity.
- Input validation: having your application inspect incoming data and reject anything that looks wrong.
- Intrinsic: a hand-optimised shortcut inside the runtime that replaces ordinary step-by-step code.
- IP address: the numeric address a machine uses on a network.
- JAVA_OPTS: a common environment variable name that a service's startup script reads and passes to Java.
- JDK: the Java development kit, which includes the compiler for writing Java programs as well as the runtime.
- JIT compiler: the part of the runtime that rewrites hot code into faster machine code while the program runs.
- jcmd: a standard Java tool that talks to a running Java process.
- JRE: the Java runtime environment, the part needed to run Java programs.
- JVM: Java Virtual Machine, the engine that executes Java programs.
- JVM option: a switch passed on the command line when starting Java to change how it behaves.
- Library: a bundle of ready-made code an application pulls in.
- LLM: a large language model, the technology behind chat assistants.
- Logs: the records a server keeps of what happened.
- Mitigation: a temporary measure that reduces risk without removing the underlying flaw.
- Open-source: code that is publicly available for anyone to download.
- OpenJDK: the open-source codebase most Java runtimes are built from.
- Package: a bundle of software a distribution installs and updates for you.
- PATH: the list of folders your shell searches when you type a command name.
- Penetration-testing framework: a toolkit for authorised break-in testing, which works equally for unauthorised break-ins.
- Privileged access: an account with high-level rights, such as an administrator.
- Proof of concept: a small demonstration showing a bug is real, usually without doing anything useful to an attacker.
- RCE: remote code execution, getting a machine elsewhere on the network to run commands of your choosing.
- Release line: a major version that keeps receiving updates, such as Java 17 or Java 21.
- Scanning: sending harmless-looking requests to learn what software and versions a target runs.
- Threat actor: the neutral term for an attacker.
- Unauthenticated: requiring no account or password on the target.
- Unit file: the configuration file that tells the system's service manager how to start a program.
- User-Agent: a self-declared line of text a browser or program sends with each request saying what it is.
- Weaponized chain: a complete, ready-to-run attack, as opposed to a demonstration.
- x86-64: the processor family used in most laptops, desktops and servers.