OpenJDK's AVX-512 Base64 decoder can corrupt the heap on malformed input
Someone reported java4shell bug in September 2026

A pull request against OpenJDK's JDK repository describes a bug in the x86_64 AVX-512 VBMI Base64 decode stub: when a short padded tail leaves fewer than 4 bytes, the padding path drives output_size below zero, producing a wrong mask and storing past the logical output length into the Java heap. Valid inputs always have lengths that are multiples of four, so only invalid input triggers it. The proposed fix returns early to Java when the remaining length is under 4. The PR was later closed without merging.
The stub stores past the logical output length before returning to Java, corrupting the heap.
- black3r
The very first referenced issue in that PR discussion sheds a bit more light on this: https://github.com/adoptium/adoptium-support/issues/1480
This PR's author says there on October 1st: "Got an email from Oracle asking me to NOT proceed with a PR until receiving approval." and then on October 28th: "It's taken over by Oracle. Nothing required from us."
- wood_spirit
So the implication is that the LLM that assisted the Calif researchers might have read this previous bug report and not independently discovered it?
- dlor
I also found this independently ahead of disclosure and reported it to Oracle last Friday. My harness found it after a fuzzing run and then turned it into a full RCE chain in the target app I was actually scanning.
The harness itself doesn't run with Internet access and I confirmed it didn't access this PR directly, but who knows if this was in the training set itself.
Either way, these simultaneous disclosures are incredibly common now. The Ruby issue affecting Gitlab was not only known about for 6 months, it was publicly fixed for 6 months before someone turned it into an RCE. The fix sat on the Ruby dev branch, and it was never pulled into an actual Ruby release until after Gitlab disclosed their own 10.0 vulnerability through it.
It's very common for reporters to not realize the impact of a bug, models are very good at turning bugs into RCE chains, and the volume everywhere now means security teams are basically only focused on RCEs.
- Botifier
Oracles comment for the merged commit is the exact same as in that PR word for word:
https://github.com/openjdk/jdk/commit/5177a70b385c16f26ede19...
https://github.com/openjdk/jdk/pull/32781/changes/d2f942c478...
- darkamaul
We will never know, but there is a chance that the Calif's researcher model decided to look at the open and closed issues / PRs of the repo.
Nonetheless, being able to understand the criticality of a finding, and how to exploit it are other skills, that still require supervision.
- kccqzy
Even earlier. The bug, SIGSEGV, was reported back in June. The original reporter isolated it to base64 in September.
- elashri
This person is a member of OpenJDK organization and a contributer but not sure if he is oracle employee.
- rzmmm
From califio: "I focused the audit on the JIT compiler, intrinsics, widely accessible APIs, and cryptography. Well, more precisely, I told Codex to look at those areas like any serious security researcher in 2026."
Maybe simply a coincidence, but I would put my bets that the first person with the PR was also using Codex, and the model was exposed to the details of the bug.