Aikido Says Deep Review Found Java4Shell in Original OpenJDK Pull Request

· Original article ↗

Summary

Aikido says its Deep Review tool identified Java4Shell in a reconstructed 2021 OpenJDK pull request, explaining an AVX-512 Base64 decoder underflow that can corrupt heap memory and suggesting the upstream mitigation.

Key points

  • Aikido reports that Deep Review identified Java4Shell (CVE-2026-114938) in a reconstruction of the 2021 OpenJDK pull request that introduced the vulnerable code.
  • The article says the memory-corruption flaw affects the hardware-accelerated Base64 decoder on x86-64 CPUs with AVX-512 VBMI; ARM systems are not affected.
  • A non-MIME input ending in invalid padding can trigger an integer underflow, produce an incorrect output mask, and cause a write beyond the allocated destination buffer.
  • Aikido says Deep Review recommended checking for fewer than four remaining input bytes and falling back to the safer decoder, matching the upstream fix in effect.
  • The tool also reportedly identified an oversized vectorized write and incomplete invalid-character validation; the article says both defects were later corrected upstream.
  • The article lists Oracle fixed releases as 17.0.21.1, 21.0.13.1, 25.0.5.1, and 27.0.1.1, and says Aikido offers patched Temurin 17 and 21 images.

Article Details

Attack Vectors
  • A non-MIME Base64 input ending in invalid padding can trigger integer underflow in OpenJDK's AVX-512 decoding path, causing an out-of-bounds write and Java heap memory corruption. The vulnerable path requires an x86-64 CPU supporting AVX-512 VBMI; the article says ARM systems are unaffected.
  • The original implementation also had an oversized vectorized write that could exceed a destination region intended for 48 decoded bytes, and an incomplete invalid-character check that could allow certain invalid characters to pass validation.
Defensive Notes
  • Upgrade to a fixed Java release: Oracle lists 17.0.21.1, 21.0.13.1, 25.0.5.1, and 27.0.1.1.
  • If an upgrade is not yet possible, the article says Aikido offers patched Java images for Temurin 17 and 21 in JDK and JRE variants.
  • Check for potentially affected runtimes through the Aikido dashboard's “Am I affected?” check or Attack Surface.
  • For the decoder edge case, the suggested mitigation is to check whether the remaining input is shorter than four bytes and fall back to the safer decoding implementation.

CVE

Vendors

Products

Tools

Related Articles