知Yizhi Daily
← Back to this edition

Conversations

OpenJDK Base64 Decoding Vulnerability Can Lead to Remote Code Execution

Edition 2026-11-18 · 08:00 Beijing time

Security researchers have disclosed an OpenJDK vulnerability called Java4Shell, tracked as CVE-2026-114938, with a CVSS 4.0 score of 9.2. The flaw is in the x86-64 optimized assembly code for Base64 decoding. An unauthenticated attacker can use malformed input to corrupt heap memory, potentially leaking sensitive memory or achieving remote code execution.

Researchers said that to speed up Base64 decoding, OpenJDK uses AVX-512 VBMI instructions on supported x86-64 processors, and the problem lies in the handwritten assembly code that handles trailing characters. For example, with input consisting of 64 letter A's followed by an equals sign, OpenJDK allocates a 50-byte result array but, due to an incorrect output-length calculation, performs a 64-byte write, causing a 62-byte out-of-bounds write; on the older OpenJDK 17, the triggering input is 128 A's followed by an equals sign.

Base64 is commonly used in authentication protocols, file-upload encoding, and network messages. Researchers have verified under default configurations that multiple applications are affected, among which Keycloak, Jira, Confluence, JFrog Artifactory, Jenkins, and PingFederate can trigger remote code execution before authentication; Kafka Broker, Solr, Elasticsearch, Gerrit, and Spinnaker are post-authentication scenarios. Testing also covered Struts, the Spring Boot sample application, and the case of a Java client connecting to a malicious TLS server. Researchers emphasized that although Java has memory-management capabilities, its underlying implementation includes C, C++, and assembly code.

Original sources

Hacker News ↗
Back to this editionOpen interactive reader