Java4Shell: RCE in OpenJDK when processing Base64
A critical vulnerability has been disclosed in OpenJDK's Base64 decoder, allowing remote attackers to corrupt memory and potentially execute arbitrary code. This Java4Shell (CVE-2026-114938) issue scores 9.2 out of 10 on the CVSS scale, making it critical. OpenJDK is the most widely used Java runtime environment, powering 90% of Fortune 500 companies. Base64 is a common method of encoding binary data as text, used in various applications such as authentication and file uploads.
The vulnerability arises from an optimization in OpenJDK that uses specialized x86-64 CPU instructions for faster Base64 decoding. A bug in the optimized machine-level code allows malicious input to overwrite neighboring memory, potentially exposing sensitive information or leading to remote code execution (RCE). The exploit can be triggered by a short string of characters (64 "A"s followed by "=") in older OpenJDK 17 versions, and even older versions up to Java 11.
Applications using popular frameworks like Apache Struts and Spring Boot are also at risk, as the vulnerability can be triggered through ordinary features like authentication and file uploads. Even client-side Java programs interacting with malicious servers can be compromised, illustrating the far-reaching impact of this vulnerability.
OpenJDK's memory safety features, which are generally a strength, are undermined by this vulnerability, highlighting the complexity of maintaining memory safety across different programming languages and environments. The vulnerability was discovered using AI-assisted techniques, demonstrating how technology can aid in both discovering and mitigating such security risks.
However, the presence of unnecessary features in widely used software stacks, like the optimized Base64 decoder in OpenJDK, presents ongoing challenges in managing system attack surfaces and ensuring security.
Written by urgent.news from Lobsters's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.
This story
This is one outlet's version. Read the fullest account.