ikow/java4shell-poc
Security & PrivacyPoC, scanners and detection rules for an OpenJDK AVX-512 Base64 heap overflow affecting JDK 17–27.
What this is
This repository packages a proof of concept, exploit-chain stages, host and network scanners, and detection rules for CVE-2026-114938, a memory-corruption bug in HotSpot's AVX-512 VBMI Base64 decoding intrinsic. A 65-byte input consisting of 64 A characters plus = triggers an integer underflow in the output-mask calculation, so VMOVDQU8 writes 62 bytes past the end of a heap buffer CVE details.
The vulnerability is hardware-gated: the machine must be x86-64 with AVX-512 VBMI (Intel Ice Lake or newer, AMD Zen 4 or newer). ARM64 is not affected. All OpenJDK-based distributions are listed as vulnerable across JDK 17 through 27, with fixes in 17.0.21.1, 21.0.13.1, 25.0.5.1 and 27.0.1.1 affected versions. It suits security researchers, incident responders and Java platform operators who need to reproduce the corruption, test mitigations, or add detection coverage; it is not an end-user tool.
Quick start
The project's lab requires an x86-64 Docker host with AVX-512 VBMI. Clone the repository, launch the lab, and run the bounded trigger inside the container:
git clone https://github.com/ikow/java4shell-poc.git && cd java4shell-poc
cd lab && chmod +x setup.sh && ./setup.sh
docker compose exec poc bash
java Base64Trigger
If Java is installed locally instead, compile and run the trigger from poc/ with a matching javac. A vulnerable runtime prints a REPRODUCED line with the changed byte count; JDK 17 uses a 128-character input variant, while 21, 25 and 27 use the 65-byte form trigger. For a scripted check, poc/verify_corruption.sh runs the bounded trigger and a -XX:-UseBASE64Intrinsics control, returning exit code 1 only when corruption reproduces and the control passes verification.
To check local installations, run scanner/java4shell_scan.sh; the network scanner accepts a host, CIDR range or target file and can emit JSON network scanner. Pre-built Suricata/Snort, Sigma and ModSecurity rules live in the detection directory detection rules.
Constraints
- The 4096-byte destination in the PoC only contains the overflow; test on authorized hosts in a separate unprivileged process. The
exploit/directory is a staged research chain, not a production verifier. - Scanner results are triage hints. Network results never confirm vulnerability or safety, and host checks cannot establish CPU eligibility, vendor backports or live JVM settings.
- Host scanning needs Bash,
timeout, andjcmdattach permissions; missing tools or unrecognized versions reportUNKNOWN, not safe. - The full exploit chain requires per-target heap grooming profiles; the repository states there is no universal exploit exploit chain.
- Mitigation options are upgrading to the fixed releases,
-XX:-UseBASE64Intrinsics, or-XX:UseAVX=2on x86-64 only. - Licensed MIT.
HotRepo's take
The repository appeared on the HotRepo new-project list on 2026-11-18, recording 102 stars and 42 forks within roughly 12 hours of its 2026-11-17 creation, but it has no recorded all-language daily rank. The combination of a reproducible PoC, detection rules for three formats, and both staged exploit code and scanners is what distinguishes this from a bare vulnerability announcement. The hardware gate matters for prioritization: AVX-512 VBMI is concentrated on newer server CPUs, so the practical exposure is narrower than the Java-version range alone suggests.
Written by AI from the project's README, updated . The project's own docs are the source of truth.
You might also like
- ikow/php2shell-pocExploit and detection toolkit for two critical PHP pre-auth RCE bugs affecting nearly every default PHP install.
- eness/php2shell-CVE-2026-109618-CVE-2026-109619-PoCA weaponized PoC for pre-auth PHP core RCE bugs, aimed at defenders verifying exposure and patch urgency.
- KillaBoi/StealMyBitcoin-PoCA reproducible PHP memory-limit exploit against one CTF challenge, for people learning memory-corruption techniques.
- openjdk/jdkThe upstream source of the Java Development Kit, for people who need to build the JDK itself or track language changes.
- aancw/php2shell-scannerChecks PHP web hosts for exposure to the PHP2Shell RCE pair, across HTTP, local and SSH modes.