Java4Shell (CVE-2026-114938): Risks, Checks, and Fixes
Java4Shell is a serious security vulnerability in certain Java runtimes that can let an attacker corrupt memory by sending specially crafted Base64 data to an application. Tracked as CVE-2026-114938, the flaw can potentially expose information, crash a Java process, or allow remote code execution. Security fixes became available on November 17, 2026, and administrators should assess their Java installations promptly.
The vulnerability is not a problem in every Java application or every computer. Its known exploitation path depends on the Java build, the processor’s instruction support, and whether untrusted input reaches the affected Base64 decoder. Those details make the difference between an urgent, exposed service and an installation that does not use the vulnerable code path.
This guide explains what happened, which systems need attention, how to check a deployment safely, and how to protect applications while arranging an appropriate update.
Java4Shell at a Glance
| Question | Verified information |
|---|---|
| What is the vulnerability? | A memory-corruption flaw in the accelerated Base64 decoder used by certain Java runtimes. |
| What is its identifier? | CVE-2026-114938. |
| When was it disclosed? | November 17, 2026. |
| What may happen? | A process crash, disclosure of information, or remote code execution in exploitable application environments. |
| What hardware matters? | x86-64 processors exposing AVX-512 VBMI support; ARM64 systems are not known to be affected by this code path. |
| Which common OpenJDK lines need checking? | OpenJDK 17 beginning with 17.0.6, plus affected 21, 25, and 27 builds. Specific vendor builds and fixes must be checked individually. |
| How severe is it? | Oracle assigns CVSS v3.1 8.1 (High); the discovering researchers assign CVSS v4.0 9.2 (Critical). These use different scoring versions. |
| What should administrators do? | Inventory runtimes, determine whether affected hardware and input paths exist, install vendor fixes, and use documented temporary mitigations if patching must wait. |
The key references are the Oracle November 2026 security update, Red Hat’s technical bulletin, and the original Calif research.
What Is Java4Shell?
Java is a programming language and software platform used in business applications, identity systems, developer tools, and online services. The Java Virtual Machine (JVM) runs Java programs and provides a shared set of functions that applications can use.
One of those functions decodes Base64, a method of representing binary data using printable characters. Base64 appears in HTTP authentication headers, tokens, messages, and file-transfer workflows. Decoding normally turns that encoded text back into the bytes an application needs.
Java4Shell affects a fast, hardware-assisted decoding path in the JVM. On certain processors, the runtime uses specialized instructions to process Base64 data more quickly. Researchers found that malformed input can cause this optimized code to write beyond the memory region intended for the decoded result.
That type of defect is called a heap-based buffer overflow. Although Java is designed to protect application developers from many memory errors, the JVM itself contains native, low-level code. A defect in that implementation can undermine protections that ordinary Java programs usually depend on.
The name “Java4Shell” is informal; the precise identifier to use in inventory systems, tickets, vendor advisories, and patch reports is CVE-2026-114938.

How Does the Java4Shell Vulnerability Work?
Understanding the security issue does not require using an exploit. The essential sequence is straightforward:
- A Java service accepts Base64-encoded information from an external source, such as an authentication request or another supported input field.
- The service passes that information to the Java Base64 decoder.
- On a relevant JVM and supported x86-64 processor, the runtime may select an AVX-512-accelerated decoding routine.
- Certain malformed input makes that routine handle the end of the encoded data incorrectly, resulting in an out-of-bounds memory write.
- Depending on the surrounding application and process layout, the resulting corruption may crash the service or become part of an attack that reads memory or executes code.
The important detail is when the invalid input is rejected. A Java method may ultimately throw an exception, but that does not undo memory damage that happened before the exception. Input validation after the unsafe operation is therefore not a reliable fix.
Why AVX-512 VBMI matters
AVX-512 is a family of processor instructions designed to accelerate certain operations. VBMI stands for Vector Byte Manipulation Instructions. The affected Base64 routine relies on this capability, so the existence of the vulnerability in a software build is not enough by itself to establish that a particular machine can enter the buggy path.
This distinction is especially relevant for organizations with mixed servers, virtual machines, and cloud instance types. Two machines running the same Java version may have different exposure because the CPUs or the instruction sets presented to their virtual machines differ.
According to Red Hat’s analysis, the known path is associated with x86-64 hosts supporting AVX-512 VBMI. ARM64 machines and x86-64 machines without that instruction support are not known to be affected by this specific accelerated path.
Does every Base64 operation lead to remote code execution?
No. A vulnerable decoder creates a dangerous underlying condition, but successful code execution depends on an application-specific sequence and the attacker’s control over input. A malformed request might be rejected or crash a process without giving an attacker code execution. In other environments, researchers demonstrated more serious consequences.
It is also possible for a Java application to encounter attacker-controlled data without listening on a public web port. The researchers described an additional client-side scenario involving a Java program communicating with a malicious TLS endpoint. Organizations should therefore consider outbound data flows as well as inbound requests when reviewing exposure.
Which Java Versions Are Affected by CVE-2026-114938?
Version guidance needs care because OpenJDK distributions are not identical to Oracle Java SE, vendors may backport fixes, and a version number alone does not describe the host CPU or application input path.
The researchers and Red Hat identify affected OpenJDK 17 releases beginning with 17.0.6, as well as affected builds in the Java 21, 25, and 27 lines. They describe mainstream OpenJDK 8 and 11 as not containing this particular vulnerable path. However, Oracle explicitly lists an affected Java SE 8 performance build, so “all Java 8 is safe” would be incorrect.
Oracle’s specifically listed affected builds
The Oracle risk matrix identifies the following versions for this CVE:
| Oracle product | Versions explicitly listed for CVE-2026-114938 |
|---|---|
| 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 |
| Oracle GraalVM for JDK | 17.0.21.0.3; 21.0.13.0.3 |
| Oracle GraalVM Enterprise Edition | 21.3.20.0.3 |
These are the exact builds shown in the vendor’s November advisory, not a complete historical inventory of every vulnerable release from every distributor. Other older builds may also require fixes. Oracle Java SE 11 is not listed for this specific CVE in that risk-matrix row, although it is affected by other vulnerabilities addressed in the same November security update.
Which updated releases should you look for?
Oracle published replacement Java SE releases on November 17, including the following current baselines:
| Java branch | November 2026 updated Oracle release |
|---|---|
| Java 17 | 17.0.21.1 |
| Java 21 | 21.0.13.1 |
| Java 25 | 25.0.5.1 |
| Java 27 | 27.0.1.1 |
| Java 11 | 11.0.33.1 — a broader security update, although Java SE 11 is not listed for this specific CVE |
| Java 8 | 8u513 — check the vendor’s standard and performance-build guidance |
These releases are documented by Oracle’s JDK 17 release notes and its Java administrators’ release listing. For non-Oracle distributions—including Eclipse Temurin, Amazon Corretto, Azul Zulu, Microsoft Build of OpenJDK, and Red Hat OpenJDK—follow the distributor’s own fixed package or build announcement. Do not assume the same package name or build suffix is available everywhere.
Practical rule: Determine the actual vendor, full build identifier, installation source, and patch status. A container image with a vulnerable bundled runtime does not become safe simply because the host machine’s system Java package was updated.

Who Could Be at Risk?
The highest-priority systems are generally those where all of the following are true:
- A vulnerable Java runtime is actually in use.
- The CPU is x86-64 and exposes AVX-512 VBMI to that runtime.
- The unsafe accelerated Base64 routine has not been disabled or fixed.
- An untrusted actor can influence data that reaches the decoder.
Exposure may be especially important for services that process authentication data before the user is signed in. HTTP Basic authentication, SAML messages, certain tokens, and encoded input fields are useful starting points for an application review. Their presence does not automatically prove a viable exploit path.
Applications mentioned in the research
Calif reported demonstrated pre-authentication remote code execution in tested default configurations of Keycloak, Atlassian Jira, Atlassian Confluence, JFrog Artifactory, Jenkins, and PingFederate. The team separately reported post-authentication demonstrations involving Apache Kafka Broker, Apache Solr, Elasticsearch, Gerrit, and Spinnaker.
These examples establish that realistic application attack paths can exist. They do not mean that every version, installation, or configuration of each named product is exploitable. Check the relevant product vendor’s advisory, supported update path, and bundled JVM version before making a determination.
Why cloud and container environments need special attention
Organizations can miss vulnerable runtimes because Java is packaged in many ways. A service might use the Java installed on its host, a JVM included with a commercial product, a separate runtime inside a Docker image, or a runtime downloaded by a build or deployment tool.
Cloud instances also vary in processor capabilities, and a virtual machine may expose a different CPU feature set from the physical host. Asset inventories should capture the runtime used by the running application, not just the Java executable returned by a shell opened on the administrator’s laptop.
How to Check Whether a Java Server Is Exposed
Start with non-destructive inventory checks. These commands help identify potential exposure; they are not proof that exploitation is possible and they do not replace checking vendor security advisories.
Step 1: Identify the Java runtime actually in use
On a server or in the relevant container, run:
java -version
Record the output, including the vendor and full version or build. If the application uses a bundled Java executable, run that executable directly rather than assuming the system default is relevant. Different services on one machine may use different runtimes.
For an enterprise inventory, also review service definitions, application server settings, container image contents, and packaged product documentation. If a runtime was patched but a long-running JVM has not restarted, the running process may still be using the old code.
Step 2: Check the relevant CPU capability on Linux
On Linux, the following read-only command checks whether the feature name appears among CPU flags:
grep -m1 -o 'avx512vbmi' /proc/cpuinfo
If avx512vbmi appears, the relevant processor instruction is exposed to the operating system. No output generally means the feature is not presented in that environment. The check should be performed on the actual host or VM running the JVM, because virtualization can change the visible features.
The result is one piece of the assessment. A positive CPU check with an updated runtime does not establish vulnerability, while a vulnerable runtime with this feature disabled may avoid the specific accelerated code path. Windows administrators should use trusted processor-capability or endpoint-inventory tooling and compare the results with the Java vendor’s guidance.
Step 3: Find the application input paths
Ask which application components decode Base64 from data an external party can influence. Prioritize authentication endpoints, API gateways, upload processing, messaging services, and integrations that parse encoded information. Pay attention to whether the application uses the affected Java standard-library decoder and whether it runs on an affected JVM.
This assessment may require application documentation or code review. A web application firewall cannot definitively answer whether a buried Java decoder is reachable. Equally, finding Base64-encoded data in a request is not enough to label a system exploited.
Step 4: Match the full build to the distributor’s advisory
Compare the exact Java build with the current security bulletin from Oracle or your OpenJDK distributor. Check whether a patched package or backport is available for your operating system. If the JVM is embedded in a third-party product, check whether the software vendor requires a supported product update instead of replacing Java files manually.
A structured software inventory makes these checks easier during future emergencies. TechVeyro’s article on Corporate Software Inspector and vulnerability management provides additional context on identifying software that needs updates.

How to Fix Java4Shell Safely
Installing a vendor-provided patched runtime is the preferred long-term remediation. As a priority, update internet-facing Java services and identity systems, then address internal services and products with embedded runtimes. Work through vendor-supported deployment procedures to avoid damaging dependencies or invalidating a supported application configuration.
1. Update and restart affected JVMs
Obtain a fixed build from the software distributor you actually use. Test it in a staging environment where practical, deploy it according to the organization’s change procedures, and restart the affected application or container so it loads the new runtime.
Afterward, verify the runtime again in the environment in which the application executes. For containers, this commonly means rebuilding from a fixed base image and redeploying rather than patching a stopped container that will later be recreated from an old image.
2. Apply an interim mitigation if updating is delayed
Red Hat and the discovering researchers document two JVM startup options that can prevent use of the vulnerable accelerated path on applicable OpenJDK deployments:
-XX:-UseBASE64Intrinsics
This option disables the Base64 hardware intrinsic while leaving other AVX-512 optimizations available. Red Hat describes it as the preferred temporary mitigation when the option is supported by the JVM.
An alternative on x86-64 is:
-XX:UseAVX=2
This limits the JVM to a lower AVX level and prevents it from using AVX-512. It may affect performance in workloads that otherwise benefit from those instructions. Do not apply this x86-64-specific flag to an ARM64 JVM: Red Hat warns that the JVM may fail to start because the flag is not recognized there.
Both options must be configured as JVM startup arguments, not typed into an application’s request form. Validate support for the selected option, deploy it through your service or container configuration, restart the JVM, and confirm the application still functions. These workarounds are temporary, not a substitute for installing the security update.
3. Reduce exposure while the permanent fix is prepared
If a vulnerable service cannot be patched immediately, restrict who can reach it, remove unnecessary public exposure, or temporarily isolate it where operationally possible. Limit service permissions, safeguard secrets, and ensure backups and recovery procedures are ready.
Authentication requirements, network filters, and request inspection may reduce some opportunities, but they are not universal protections. The reported pre-authentication paths show why restricting access only after login is not a complete defense. A firewall rule also cannot correct a memory-corruption flaw inside a JVM.
4. Verify the remediation in production
After updating or applying a mitigation, confirm the running Java process uses the intended build and startup arguments. Check the application’s health, authentication behavior, logs, and key business workflows. Record the affected asset, previous build, new build or mitigation, deployment time, and verification result in the incident or change record.
If an organization runs many Java services, prioritize verification of the most exposed ones rather than treating successful deployment to a central package repository as proof that every JVM restarted.
What If You Suspect Someone Exploited Java4Shell?
The Canadian Centre for Cyber Security’s November 17 alert said it was not aware of active exploitation at that time. That is a dated observation, not a promise that attacks cannot occur later. A research demonstration or published proof of concept also does not, by itself, establish widespread exploitation in the wild.
If there are signs of compromise, investigate them under an established incident-response process:
- Review application, authentication, web server, and endpoint telemetry for unexpected failures and suspicious activity around relevant endpoints.
- Look for unexplained child processes, unusual outbound connections, unexpected file changes, or access to secrets by the Java service account.
- Preserve relevant logs and evidence before making changes that might erase them.
- If compromise is credible, isolate the system using your response procedures and involve the security team.
- Rotate exposed credentials and tokens when evidence indicates that they may have been accessed; patching alone cannot undo theft that already occurred.
A single JVM crash is not proof of a successful Java4Shell attack. Crashes happen for many reasons. Conversely, an application that appears healthy is not guaranteed to be uncompromised. Evidence from several sources is needed to determine what happened.
Java4Shell vs. Log4Shell, Spring4Shell, and PHP2Shell
Similar names can create unnecessary confusion, especially when administrators are searching for the right fix.
| Name | Main affected technology | Distinguishing issue |
|---|---|---|
| Java4Shell | Certain OpenJDK/Java runtime implementations | Memory corruption in an accelerated Base64 decoder; CVE-2026-114938. |
| Log4Shell | Apache Log4j 2 logging library | A 2021 vulnerability involving unsafe lookup behavior; CVE-2021-44228. |
| Spring4Shell | Spring Framework | A 2022 remote-code-execution issue in certain application conditions; CVE-2022-22965. |
| PHP2Shell | PHP runtime | Separately disclosed PHP security flaws; not a Java vulnerability. |
Fixing one does not automatically fix another. Updating Log4j dependencies, for example, does not replace a vulnerable Java runtime. Similarly, a Spring application may need a Java runtime update even if the Spring libraries themselves are fully patched.
For a related runtime-security case, see TechVeyro’s PHP2Shell guide to affected versions and fixes. For original Java ecosystem disclosures, refer to Apache’s Log4j security information and the Spring4Shell CVE record.

What Java4Shell Teaches Us About Software Security
This case illustrates why an application can become exposed even when developers have not written an obvious memory-unsafe operation. Java’s normal safety checks operate above the lower-level implementation that makes the JVM work. Performance optimizations can create security issues if the native code handling unusual inputs is incorrect.
It also highlights the limits of simplistic vulnerability scanning. A useful assessment asks which build is running, which machine instructions are available, and whether untrusted data can reach the relevant code. A scanner can identify software versions, but engineering teams may still need context to determine real exposure and remediation priority.
For long-term resilience, organizations should maintain an inventory of packaged and embedded runtimes, subscribe to vendor advisories, automate supported rebuilds, and regularly test deployment and rollback procedures. Restricting service privileges and separating sensitive workloads can also limit damage if another runtime bug is discovered later.
Frequently Asked Questions
Is Java4Shell a virus or malware?
No. Java4Shell is a name for a software vulnerability, not a virus. Attackers may attempt to exploit it to run malicious code on vulnerable systems, but the flaw and any malware used afterward are different things.
Can Java4Shell be exploited without a password?
In some application environments, yes. Researchers demonstrated pre-authentication paths in several tested products. Whether a particular service is exploitable without credentials depends on its Java runtime, hardware, input handling, and configuration.
Does Java4Shell affect Java 8 or Java 11?
Mainstream OpenJDK 8 and 11 do not contain the vulnerable accelerated path described by Red Hat. However, Oracle lists a particular Java SE 8 performance build as affected. Both older Java branches still need routine updates for other security issues, so check the specific vendor advisory instead of assuming every old installation is safe.
Are Windows computers affected?
The issue is about the Java runtime and CPU features, not Linux alone. A Windows system running an affected JVM on x86-64 hardware that exposes AVX-512 VBMI may be relevant. Confirm the processor features and Java build through trustworthy local or enterprise inventory tools.
Are ARM64 servers and Apple Silicon Macs affected?
They are not known to be affected by the specific AVX-512 VBMI code path behind this vulnerability, because that x86-64 instruction path is not used on ARM64. Continue applying ordinary Java security updates; hardware-specific non-exposure to this CVE does not mean a device is free of other vulnerabilities.
Does installing a newer Java version automatically fix every application?
Not necessarily. An application may run a different JVM bundled with the product or inside a container. A successful fix requires installing the appropriate vendor update and verifying that the running process actually loads the corrected build.
Can a web application firewall block Java4Shell completely?
No universal WAF rule should be treated as a complete fix. Risk depends on the data path, and encoded information may reach a decoder through several services or protocols. Updating the JVM or applying the documented interim mitigation is more dependable.
Is Java4Shell the same as Log4Shell?
No. Java4Shell concerns the Java runtime’s Base64 decoding implementation and is tracked as CVE-2026-114938. Log4Shell concerns the Apache Log4j 2 logging library and is tracked as CVE-2021-44228. They need separate assessments and fixes.
Final Takeaway
Java4Shell is a high-impact runtime security issue, but assessing it accurately requires more than spotting the word “Java” on a server. The relevant factors are the precise runtime build, x86-64 AVX-512 VBMI support, whether untrusted Base64 reaches the decoder, and whether a vendor fix or temporary mitigation is active.
For administrators, the next action is clear: identify Java runtimes in running services, update affected builds through supported channels, and verify the result. Until a permanent fix is deployed, Red Hat’s documented JVM mitigations may help on applicable systems. Keep monitoring vendor advisories because the technical and exploitation picture of a newly disclosed vulnerability can change quickly.
