Security researchers at Calif have disclosed Java4Shell, a memory-corruption vulnerability in OpenJDK's Base64 decoder tracked as CVE-2026-114938. The flaw carries a CVSS 4.0 score of 9.2 out of 10, which the team labels CRITICAL, and can allow an unauthenticated remote attacker to overwrite heap memory and ultimately reach remote code execution.
The bug lives in hand-rolled assembly code that OpenJDK uses to speed up Base64 decoding with AVX-512 VBMI instructions on supported x86-64 processors. According to the write-up, a 65-character input — 64 "A" characters followed by a single "=" — is enough to trigger corruption, which can leak sensitive memory in the style of Heartbleed or escalate to full RCE. Calif says the disclosure follows its earlier PHP2Shell research.
Java4Shell vulnerability: how the OpenJDK Base64 bug works
Base64 is a standard way of turning binary data into text, used in authentication protocols, file uploads and network messaging. To decode it faster, OpenJDK processes many bytes at once using specialized CPU instructions. Calif found that the assembly routine handling the final characters mishandles a stray "=", calculating a negative output length that becomes a 64-byte write.
In the reported example, OpenJDK allocates a 50-byte result array for the 65-character input. After decoding the first 64 characters, the invalid length sends 62 bytes past the end of that array. Java eventually rejects the input, but by then neighboring objects may already be corrupted, the researchers say. On older OpenJDK 17, the trigger is 128 "A" characters followed by "=", according to the write-up.
- CVE-2026-114938, disclosed by Calif as Java4Shell
- CVSS 4.0 score: 9.2 out of 10 (CRITICAL)
- Trigger: 64 "A" characters plus "=" (128 plus "=" on OpenJDK 17)
- Impact: heap memory overwrite, memory disclosure and remote code execution
- No credentials required for the pre-auth exploitation path


