Java4Shell: Malformed Base64 in OpenJDK Triggers Remote Code Execution

Java4Shell: RCE in OpenJDK when processing Base64

Java4Shell: Malformed Base64 in OpenJDK Triggers Remote Code Execution

A researcher auditing OpenJDK HotSpot found that the x86-64 Base64 intrinsic miscalculates its store mask on padded input, causing an out-of-bounds heap write. By grooming the heap remotely and corrupting array lengths, the fixed-byte overwrite becomes a heap leak (dubbed JavaBleed) and then arbitrary writes reaching the Code Cache for code execution. Exploitation requires per-target profiles and stable network conditions, so it is not a universal point-and-shoot.

I came looking for copper and found gold, through sheer persistence. But wait, is it really gold, or just fool's gold?

More from this day

2026-11-17