A newly disclosed Java flaw nicknamed Java4Shell has put some of the most popular enterprise applications on alert. Tracked as CVE-2026-114938, it could let an attacker with no account run their own code on servers running Jira, Jenkins, Keycloak, and several other widely used tools.
The vulnerability was disclosed this week by the security research firm Calif, with fixes released the same day by Oracle and the OpenJDK project. If your business runs modern Java applications, here’s what Java4Shell is, who is at risk, and what to do about it, explained in plain language.
What Is Java4Shell?
Java4Shell is a vulnerability in the Java platform itself, not in any one application. Because so many business tools are built on Java, a single flaw in the runtime can affect many products at once.
The bug lives in a high-speed version of Java’s Base64 decoder, a routine that converts encoded text back into raw data. Servers decode Base64 constantly, often before a user has even logged in. That timing is exactly what makes this flaw dangerous: an attacker can reach the vulnerable code without an account.
Calif rates Java4Shell at 9.2 out of 10 on the CVSS 4.0 severity scale, placing it firmly in the critical category.
How the Java4Shell Vulnerability Works
A bug in the fast Base64 decoder
To speed things up, Java compiles frequently used code and switches to an optimised version. For Base64 decoding, that faster version runs only on certain modern Intel and AMD chips.
The problem appears with a malformed string that ends in an extra “=”. When the fast decoder processes it, it writes 62 or 63 bytes past the end of its output buffer, a classic memory overflow. Java does reject the bad string, but only after the damage is done.
Why no login is needed
The bytes written past the buffer are fixed, so an attacker controls only where they land, not what they are. Early reviews of the code suggested this would only cause a crash. However, the researchers describe a technique they call JavaBleed that arranges memory so the overflow corrupts neighbouring data, then reads and writes memory to reach the parts of Java that execute code.
Crucially, servers decode Base64 in places like HTTP Basic login headers, SAML artifacts, and CSRF tokens, all before checking if a user is authenticated. That is how an unauthenticated attacker can trigger the flaw.
Which Systems Are Affected?
Two conditions must both be true for a server to be vulnerable: a specific Java version and a specific type of processor.
Affected Java versions:
- Java 17.0.6 and later on the Java 17 line, plus Java 21, 25, and 27.
- The Java SE 8 Performance Pack build 8u511b33-perf, and several GraalVM builds.
- Standard Java 8 and Java 11 are not affected.
Affected processors: The vulnerable code runs only on x86-64 chips that support the AVX-512 VBMI feature. These include Intel Xeon Ice Lake, Sapphire Rapids, Emerald Rapids, and Granite Rapids, as well as AMD Zen 4 or newer. ARM64 chips are not affected, so the same container image can be vulnerable on one server and safe on another.
Applications tested by the researchers: Attacks worked without a login under default settings on Keycloak, Atlassian Jira, Atlassian Confluence, JFrog Artifactory, Jenkins, and PingFederate, and with a login on Apache Kafka Broker, Apache Solr, Elasticsearch, Gerrit, and Spinnaker. Calif notes these lists are incomplete.
On Linux, this command checks whether a server’s chip has the four required features (all four must appear):
grep -m1 ‘^flags’ /proc/cpuinfo | tr ‘ ‘ ‘\n’ | grep -E ‘^(avx512f|avx512bw|avx512vbmi|bmi2)$’
How Serious Is It Right Now?
Severity scores vary by vendor, which tells you something about how tricky this flaw is to exploit reliably:
- Calif: 9.2 / 10 (CVSS 4.0)
- Red Hat: 9.8 / 10 (preliminary)
- Amazon: 8.8 / 10
- Oracle: 8.1 / 10 (CVSS 3.1), calling it hard to exploit but requiring no login
Importantly, there is no confirmed real-world exploitation yet. The researchers are holding back their working attack code, and other labs have so far reproduced crashes and a memory leak but not full code execution. Canada’s Cyber Centre said it was not aware of any attacks, and the flaw was not in CISA’s Known Exploited Vulnerabilities (KEV) catalog when The Hacker News checked.
That said, there is no single universal exploit. Each target needs its own memory layout and timing, and some attacks are sensitive to network delays. A failed attempt can crash Java, but an attacker can often simply try again.
How to Protect Your Systems
Patch first
The real fix is to update Java. Oracle and OpenJDK released patched builds this week, and several vendors have followed:
- Fixed: Amazon Corretto, Azul Zulu, SapMachine, and GraalVM’s November releases, among others.
- Still pending at the time of reporting: Red Hat (RHEL 8, 9, 10 and its OpenJDK builds). Eclipse Temurin, the Microsoft Build of OpenJDK, and BellSoft Liberica had not listed fixed builds yet.
After updating, restart your Java services, and rebuild and redeploy any container images so the running process actually uses the new build. Products that bundle their own Java runtime need an update from the product’s maker.
Temporary workarounds
If you can’t patch immediately, you can start the JVM with one of these flags, then remove it once patched:
- -XX:-UseBASE64Intrinsics disables only the faster Base64 code, removing the vulnerable path while keeping other speedups.
- -XX:UseAVX=2 turns off AVX-512 entirely (x86-64 only; it will stop Java starting on ARM64).
Watch for warning signs
Detection isn’t proof of compromise, but these can signal attempts:
- Base64 tokens of 32+ characters ending in “=” whose length isn’t a multiple of 4, especially in Authorization headers.
- Bursts of IllegalArgumentException errors from the Base64 decoder.
- Unexplained JVM crash logs or repeated restarts.
Conclusion
Java4Shell (CVE-2026-114938) is a serious reminder that a single flaw deep inside a platform like Java can ripple across dozens of business-critical applications. The good news is that patches are already available, no real-world attacks have been confirmed, and the exploit is difficult to pull off reliably.
The smart response is simple: find out whether your servers run an affected Java version on an AVX-512 chip, patch as soon as your vendor’s fix is available, and apply a temporary JVM workaround in the meantime. Acting now, before a working exploit spreads, is the surest way to keep your systems safe.
Frequently Asked Questions
What is Java4Shell (CVE-2026-114938)?
Java4Shell is a critical vulnerability in Java’s fast Base64 decoder. On affected servers, it can let an unauthenticated attacker trigger a memory overflow and potentially run their own code on applications like Jira, Jenkins, and Keycloak.
Is my server affected by Java4Shell?
Two things must both be true: you run Java 17.0.6+ (or Java 21, 25, or 27, plus some GraalVM builds) and your server uses an x86-64 chip with AVX-512 VBMI support. Standard Java 8 and 11, and all ARM64 chips, are not affected.
Has Java4Shell been exploited in the wild?
Not as of the disclosure. Researchers are withholding working exploit code, other labs reproduced only crashes and a memory leak, and it was not listed in CISA’s KEV catalog. Still, patching promptly is strongly advised.
How do I fix Java4Shell?
Update to a patched Java build from your vendor, then restart services and rebuild container images. If you can’t patch yet, start the JVM with -XX:-UseBASE64Intrinsics or -XX:UseAVX=2 as a temporary workaround, and remove it after patching.
Which applications are at risk?
Researchers confirmed unauthenticated attacks under default settings on Keycloak, Jira, Confluence, JFrog Artifactory, Jenkins, and PingFederate, and authenticated attacks on Kafka, Solr, Elasticsearch, Gerrit, and Spinnaker. The list is incomplete, so treat any affected Java app as at risk.

