Skip to content
NewA calmer, faster ZeroHour

OpenJDK x86-64 Base64 intrinsic can overwrite heap memory

Original title: Java4Shell: Write once, RCE everywhere

Lobsters · securityby calif.io via unlobito ()10 min read1
AI summary · x-ai/grok-4.7Summaries by Vani AI

A bad padding mask makes a 64-byte write; one trigger allocates a 50-byte buffer and writes from offset 48.

A writeup says OpenJDK HotSpot's x86-64 Base64 intrinsic miscalculates the padded-tail store mask, so a masked vector store can write 64 bytes after the output length underflows. The author says remote heap shaping can turn that fixed overwrite into a heap leak and remote code execution. On OpenJDK 17 the trigger string is longer. The excerpt states no patch and no confirmed attacks outside the research.

Unconfirmed: The excerpt states no CVE, fix, or attacks outside the author's research.

Key facts
  • A 65-byte input of 64 A's plus '=' is said to allocate a 50-byte buffer.
  • On OpenJDK 17 the stated trigger is 128 A's plus '='.
  • Bytes 48 through 63 of the uncontrolled write are always 0x9a.
  • Only the landing position of the out-of-bounds write is controllable, the author says.
Security assessment · AI, from the articlePublic proof of concept

Impact: Out-of-bounds heap write the author says can become RCE

ProductAffected
OpenJDK HotSpotaffected OpenJDK builds; OpenJDK 17 trigger differs
Analyze this story with Vani AIImpact, who is affected and what defenders should do, in a new chat

From the original article

10 min read at calif.io

On affected OpenJDK builds, malformed Base64 data can cause a constant-value overwrite of allocated heap memory. Through remote Heap Feng Shui, we turn that overwrite into a heap leak and remote code execution. A few months back, I was developing a 0-click exploit on a certain phone vendor.

Lobsters · security

By calif.io via unlobito · calif.io

Read the full article at Lobsters · security

A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.