Java4Shell (CVE-2026-114938): Critical OpenJDK Flaw Lets Attackers Take Over Java Apps, Patch Now

A critical memory corruption bug in OpenJDK's Base64 decoder allows unauthenticated remote code execution in Jenkins, Jira, Confluence, Keycloak and more. Here is what SMBs running Java need to do now.

Volturion Security Team9 min read
vulnerabilityrcejavaweb-security

If your company runs any Java application, and there is a very good chance it does, you need to deal with this one today. Researchers at Calif have disclosed Java4Shell, tracked as CVE-2026-114938, a memory corruption vulnerability in OpenJDK's Base64 decoder that lets unauthenticated attackers run their own code on affected servers. The CVSS 4.0 score is 9.2, which puts it in the critical band. Oracle shipped a patch on November 17, 2026, and OpenJDK published a security advisory the same day.

Java4Shell is being compared to Log4Shell and PHP2Shell for the same reason: a flaw buried in infrastructure software so widely used that almost nobody knows they are running it. Java is the third most popular programming language in the world and powers roughly 90% of Fortune 500 companies. It runs banking systems, aviation, telecommunications, and a very large share of the internal tools that small businesses depend on every day.

What was discovered

The bug sits in the Java runtime, not in your application's code.

Base64 is a common way of representing binary data as text. It shows up in authentication protocols, file uploads, tokens, and network messages. To decode Base64 quickly, OpenJDK uses specialized AVX-512 VBMI instructions available on supported x86-64 processors, processing many bytes at once instead of one at a time. The researchers found a bug in that hand-rolled assembly code, specifically in the part that handles the final few characters of an input.

For a 65-character input, OpenJDK allocates a 50-byte result array. After decoding the first 64 characters, the routine mishandles the stray = padding character and calculates a negative output length. That invalid length becomes a full 64-byte write, sending 62 bytes past the end of the array and corrupting whatever sits next to it in memory. Java eventually rejects the malformed input, but by then the damage is done.

The corruption can be triggered by an input as simple as 64 A characters followed by a single =. On older OpenJDK 17 builds, the trigger is 128 A characters followed by =.

Depending on how the surrounding application works, that memory corruption can be used to leak sensitive data out of memory, much like Heartbleed did in 2014, or to achieve full remote code execution.

Am I affected?

The answer has three parts. All three have to be true for you to be exposed.

1. Are you running a vulnerable Java version? Java4Shell affects OpenJDK 17.0.6 and newer. Specifically:

  • Java 17: versions 17.0.6 through 17.0.21
  • Java 21: up to and including 21.0.13
  • Java 25: up to and including 25.0.5
  • Java 27: up to and including 27.0.1
  • Java 8: the 8u511b33-perf Performance Pack build
  • Java 11, and Java 17.0.0 through 17.0.5, are not affected

Because almost every commercial Java distribution is built from OpenJDK, this list extends to Amazon Corretto, Eclipse Temurin, Microsoft Build of OpenJDK, Azul Zulu, BellSoft Liberica, SAP SapMachine, Red Hat OpenJDK, Oracle OpenJDK, Oracle Java SE, and Oracle GraalVM for JDK.

2. Is your processor x86-64 with AVX-512? The vulnerable code is hardware-specific. ARM64 CPUs are not affected at all, which matters if you run Java workloads on Apple Silicon or ARM-based cloud instances. The mainstream CPU families that meet the requirement are Intel Xeon Ice Lake, Sapphire Rapids, Emerald Rapids, and Granite Rapids, plus AMD EPYC and Ryzen Zen 4 or newer. On Linux you can check directly:

grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' | grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$

All four flags must appear in the output.

3. Does anything in your application actually decode Base64? In practice, almost everything does. The vulnerable decoder sits underneath ordinary features like authentication and file uploads.

If all three conditions are true, you are exposed. Start patching.

Which applications are exploitable

Calif demonstrated working remote code execution against a list of widely deployed applications in their default configurations. Pre-authentication RCE was achieved in:

  • Keycloak, the open source identity and access management server many companies use for single sign-on
  • Atlassian Jira, for issue tracking and project management
  • Atlassian Confluence, for internal wikis and documentation
  • JFrog Artifactory, the artifact and dependency repository
  • Jenkins, the most widely used CI/CD automation server
  • PingFederate, for enterprise federation and single sign-on

Post-authentication RCE was demonstrated in Apache Kafka Broker, Apache Solr, Elasticsearch, Gerrit, and Netflix Spinnaker.

The researchers are explicit that these lists are non-exhaustive. They also demonstrated exploitation in sample applications built on Apache Struts and Spring Boot, two of the most common Java frameworks in existence. The blast radius is not limited to the named products. Any Java service that handles Base64 input through a reachable code path is a candidate.

There is one more scenario worth calling out. An independent researcher shared a client-side exploit with Calif: a Java program that opens an outbound TLS connection to a malicious server can be compromised, even if it exposes no service of its own. A desktop Java application, a scheduled job, or a backend worker that talks to an outside endpoint can be attacked that way.

Why this matters for a small business

Small and medium businesses run Java far more often than they realize. Your accounting software, your ERP, your HR platform, and the internal tools your IT provider set up years ago may all be Java applications. Jenkins in particular shows up constantly in SMB development environments because it is free and it works. Many companies have a Jenkins instance they stood up for a single project and never retired, often reachable from the internet, often years behind on updates, and often not in anyone's asset inventory.

The second reason is timing. Java4Shell was found using AI. The researchers report that discovering the vulnerability took about an hour, and developing the first working exploit took two more, for under $200 in token costs. Defenders got advance warning because AI found this bug before attackers did. But the same capability means attackers have far less time between a patch being published and a working exploit circulating. The gap that used to be measured in months is now measured in hours.

Calif is deliberately withholding weaponized chains for individual products to give organizations time to upgrade. Another practical warning from the same research: there is no universal exploit for this vulnerability, because exploitation depends on how each application uses Base64. The fixes will be published product by product.

IBM's Cost of a Data Breach Report places the average cost of a breach well into six figures for small businesses, and the costs rise sharply the longer an incident goes undetected. A Jenkins server that silently runs an attacker's code is exactly the kind of intrusion that goes unnoticed for weeks while the attacker maps your internal network.

What to do right now

  1. Patch immediately. Oracle released the fix on November 17, 2026, and OpenJDK published its advisory the same day. Update every affected JDK and JRE to a patched build. If you use a managed distribution (Corretto, Temurin, Zulu, Liberica), apply the latest release from that vendor.

  2. If you cannot patch today, apply the runtime mitigation. Starting OpenJDK with -XX:-UseBASE64Intrinsics disables the hardware-accelerated Base64 implementation entirely, which removes the vulnerable code path. The alternative flag is -XX:UseAVX=2, which disables AVX-512. Apply -XX:UseAVX=2 only on x86-64 hosts. OpenJDK on ARM does not recognize it and will fail to start your application. Treat these as temporary bridges, not permanent fixes. They cost you Base64 performance and they are not a substitute for the patch.

  3. Do an inventory before you do anything else. This is the step most organizations skip, and it determines whether the rest works. Exposure depends on the Java build, the processor, and how each application handles input, and most teams cannot answer those three questions quickly. Pay special attention to JDKs bundled inside applications and containers, which is where vulnerable runtimes hide. Your package manager telling you the system JRE is patched says nothing about the JRE baked into a Docker image six months ago. A vulnerability scan of your internet-facing systems is one way to start that list.

  4. Prioritize what is reachable from the internet. Patch the internet-facing identity and build systems first: Keycloak, Jenkins, Jira, Confluence, Artifactory. Those are the ones an unauthenticated attacker can reach, and they are where pre-auth RCE was demonstrated.

  5. Check for signs of prior exploitation. If you were running a vulnerable version before patching, review logs for unusual requests containing long runs of A characters, unexpected child processes spawned by Java, or new accounts created outside change control. Exploitation is application-specific, so absence of obvious indicators is not proof of safety.

  6. Retire the Java applications nobody owns. This flaw is a good forcing function for a broader cleanup. A Jenkins instance spun up for one project in 2023 and forgotten since is not an asset. It is an unmanaged internet-facing RCE surface. If you cannot name the owner of a Java service, that is the signal to turn it off.

  7. Be careful with what you find online. Both the researchers and outside security leaders warned about unverified fixes and fake proof-of-concept exploits circulating around high-profile vulnerabilities. Get patches from the vendor, not from a GitHub repository a stranger linked in a forum.

How Volturion helps

The hardest part of Java4Shell is not the patch. It is knowing where you are exposed. Vulnerable Java runtimes hide inside containers, bundled application servers, and build pipelines that nobody has inventoried in years, and CVE-2026-114938 is only exploitable on specific Java builds running on specific processors. It is a discovery problem before it is a remediation problem.

Volturion's vulnerability scanning continuously checks your public-facing infrastructure and code repositories against CVE-specific detection signatures, including critical flaws like CVE-2026-114938, so you find out that an exposed Jenkins or Keycloak instance is running a vulnerable Java version before an attacker does. Every finding is scored by severity and mapped to its CVE, CWE, and OWASP classification, so your team sees a prioritized list of what needs attention instead of a wall of alerts.

Because dependency risk is where this vulnerability lives, Volturion also scans your code repositories for vulnerable dependencies and hard-coded secrets, catching the Java libraries sitting inside your codebase that a website-only scanner would never see. For every finding, Volturion's remediation engine generates step-by-step guidance tailored to the specific vulnerability and your actual environment, including which hosts to patch first, what a mitigation flag means in your deployment, and how to confirm the fix landed.

If your business runs Java but does not have a dedicated security team, this is the kind of flaw that continuous monitoring exists for: a critical bug in infrastructure software you did not choose carefully because it came bundled with everything else.