Oriel — AI & technology worth noticing, every day.

Java4Shell: RCE in OpenJDK when processing Base64

Web page · https://calif.io/java4shell

First seen by Oriel on .

AI summary

This write-up details Java4Shell, an x86-64 OpenJDK Base64 intrinsic bug that enables heap corruption, disclosure, and potentially remote code execution through remote heap grooming.

  • Malformed padded Base64 inputs make the intrinsic calculate an underflowed output mask, causing a 64-byte write beyond a decoded buffer.
  • The exploit converts the fixed-value overwrite into bounded chosen-value writes by corrupting array lengths, then builds heap disclosure and arbitrary-write primitives.
  • Remote Heap Feng Shui uses allocation control, heap spraying, TCP delivery timing, retries, and application-specific object layouts; reliability depends on network conditions.
  • Java4Shell affects OpenJDK 17.0.6 or newer and derivatives on x86-64 processors with AVX-512 VBMI; ARM64 CPUs are unaffected.
  • Users should update immediately or disable Base64 intrinsics with -XX:-UseBASE64Intrinsics, or disable AVX-512 using -XX:UseAVX=2 on x86-64 hosts.

#java #openjdk #memory corruption #remote code execution

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Hacker News: 1,180, latest observation ; +1,123 over observed period since
  • Lobsters: 57, latest observation ; +56 over observed period since

Comments

Comment count reported by the source.

  • Hacker News: 330, latest observation ; +325 over observed period since
  • Lobsters: 30, latest observation ; +30 over observed period since

Aliases

SourceExternal IDURL
Hacker News50538240https://calif.io/java4shell/ Read discussion
Lobstersg0bf9ihttps://calif.io/java4shell/ Read discussion