Start with:
make preflightDo not remove a failed preflight gate merely to make the demo print
reproduced. The gate identifies whether the host can execute the affected
native path.
Most common causes:
- the host is ARM64;
- one or more of
avx512f,avx512bw,avx512vbmi, orbmi2is missing; - a VM or WSL layer does not expose the host feature;
- the runtime was patched or the intrinsic was disabled.
Check:
uname -m
grep -m1 '^flags' /proc/cpuinfo | tr ' ' '\n' \
| grep -E '^(avx512f|avx512bw|avx512vbmi|bmi2)$'Docker cannot emulate a missing CPU feature. Use another compatible amd64 host.
Confirm the exact image and runtime:
docker compose images
docker compose exec vulnerable java -version
docker compose logs vulnerableThen rebuild without relying on an old local tag:
docker compose down --remove-orphans
docker compose build --no-cache
make verifyThe Dockerfile pins the vulnerable image by digest. If the digest cannot be
pulled, do not substitute an arbitrary image and keep the same expected output.
The mitigated JVM probably did not receive the flag. Inspect it:
docker compose exec mitigated java -XX:+PrintFlagsFinal -version 2>&1 \
| grep UseBASE64IntrinsicsExpected effective value:
UseBASE64Intrinsics = false
Also confirm that JAVA_TOOL_OPTIONS=-XX:-UseBASE64Intrinsics remains present
under the mitigated service in compose.yaml.
This is the intended positive result:
result=VULNERABLE_BEHAVIOR_REPRODUCED
Exit 2 means the checker observed bytes changing after the expected output.
It does not mean the checker crashed, and it does not mean a shell was opened.
Install the Docker Compose plugin and verify:
docker compose versionThe repository uses the modern docker compose command, not the legacy
standalone docker-compose binary.
Typical error:
Cannot connect to the Docker daemon
Start Docker Engine or Docker Desktop. On WSL2, enable integration for the
Linux distribution and verify docker info inside that distribution.
Identify the listener before stopping anything:
ss -ltnp | grep -E ':8080|:8081'
docker ps --format 'table {{.Names}}\t{{.Ports}}'Do not change the Compose binding to a public interface. Stop the conflicting local service or use an isolated test host.
Collect logs:
docker compose ps
docker compose logs vulnerable
docker compose logs mitigatedConfirm the containers did not fail because of architecture mismatch, an unsupported JVM option, or memory pressure.
None of these status codes proves or disproves CVE-2026-114938. The Java layer
can catch IllegalArgumentException after the native write and return an
ordinary authentication error. Conversely, a 500 can come from unrelated
input validation.
Use local runtime inventory and the bounded A/B probe. Do not label a remote status code as overflow or shell evidence.
Inspect how that field is set. Current public examples may mark shell=1 when
they find a separate command-injection endpoint or receive a callback from a
listener. That proves the independent endpoint, not the Java4Shell memory
corruption chain.
A valid Java4Shell shell result must show that:
- the vulnerable decoder path caused a benign command marker;
- no preinstalled command endpoint or synthetic role-bit gate performed it;
- the same attempt failed against a patched or mitigated control;
- runtime, CPU, image digest, commands, and target-side output were recorded.
See RCE-STATUS.md and PUBLIC-EXPLOIT-TRACKER.md.
docker compose down --remove-orphansThe supplied services use named Compose resources only and do not require a recursive filesystem cleanup.
Include:
- repository commit;
- runtime and vendor;
- host architecture and CPU flags;
- Docker and Compose versions;
- full preflight output;
- vulnerable and mitigated JSON;
- whether the result came from a clean clone.
Remove tokens, private hostnames, credentials, and third-party data before posting.