Critical Java4Shell Flaw Patched for Specific Systems
A critical vulnerability in Java's Base64 decoder, named Java4Shell, has been addressed by Oracle and OpenJDK. The flaw impacts certain Java versions and processors, and requires specific conditions to be exploited.
JavaAIVulnerabilitiesKey points
- A critical flaw called Java4Shell was found in Java's Base64 decoder, which could cause memory corruption and allow remote code execution in some applications.
- Oracle and the OpenJDK project released patches on November 17 to address the vulnerability.
- The vulnerability affects OpenJDK versions from 17.0.6 and related distributions.
A critical flaw known as Java4Shell was found in Java's Base64 decoder, which could lead to memory corruption and allow remote code execution in some applications. Security researchers from Calif discovered this issue and assigned it the CVE ID CVE-2026-114938. On November 17, Oracle and the OpenJDK team released fixes for this vulnerability. Calif classified the flaw as critical, giving it a CVSS 4.0 score of 9.2, while Oracle rated it with a CVSS 3.1 score of 8.1. To exploit this flaw, attackers would need specific conditions, such as x86-64 processors with AVX-512 VBMI support. The affected processors include Intel Xeon models starting from Ice Lake and AMD Zen 4 or newer chips, while ARM64 processors are not at risk. The vulnerability impacts OpenJDK versions from 17.0.6 and related distributions. A Java service that processes Base64 data, like a web service, is required for exploitation. A targeted approach is needed, and there is no universal method for exploiting this flaw. Each attack sequence must include a decoding path, a feedback loop, a heap configuration, and application-specific actions. Low and consistent network latency can increase the likelihood of a successful exploit. The flaw was tested on several applications, including Keycloak, Jira, Confluence, Artifactory, Jenkins, Kafka, Solr, Elasticsearch, Gerrit, and Spinnaker. There are currently no confirmed cases of this vulnerability being used in the wild. This flaw poses a greater risk to organizations running specific Java-based tools rather than typical home users. CISA advised organizations to apply the patch immediately to reduce the risk. The issue stems from hand-written assembly code used to optimize the Base64 decoding process in OpenJDK. A malformed input could cause a memory buffer to overflow by 62 bytes, resulting in potential memory corruption. The flaw cannot be exploited through Java Web Start or applets. Companies using vulnerable Java applications on affected processors are encouraged to update promptly. The vulnerability has a limited scope due to the specific conditions required for exploitation. Calif conducted tests using a rented virtual machine in the same region as the target to simulate a successful attack. The vulnerability does not affect ARM64 processors. The OpenJDK team uses optimized x86-64 instructions to speed up the decoding process. The exploit requires precise setup, including a target-specific configuration, making it unlikely to be widely used. This vulnerability is not a general threat to the public but is a concern for specific enterprise environments. The vendor has issued patches and recommends applying them as soon as possible.
What to do
- Install the patch immediately on vulnerable Java applications.
- Remove this action; the only recommended step in the sources is to apply the patch promptly.
- Remove this action; the only recommended step in the sources is to apply the patch promptly.
Original report
“Java4Shell: A critical flaw with a narrow reach”
Researchers used AI to find a Java vulnerability and named it Java4Shell. Here’s why organizations need to patch.