Skip to content
php2shell

php2shell

Sploitus • October 22, 2026

CVE-2026-109618-109619-poc.py scan / calibrate / exploit (pure stdlib, Python 3.6+)

offsets.json per-branch zif_system / zval_ptr_dtor offsets

lab/ docker lab: php:8.4.26-apache (vulnerable), single-worker

- Python 3.6+ (stdlib only — no pip packages)

- Docker (to run the lab; not needed for the script itself)

cd lab && docker compose up -d # vulnerable target on 127.0.0.1:8088

python3 CVE-2026-109618-109619-poc.py --scan

# passive fingerprint + verdict (no exploit traffic; exit 1 = vulnerable)

python3 CVE-2026-109618-109619-poc.py --calibrate \

# auto-measure heap-shape parameters (loops until found; resumable)

python3 CVE-2026-109618-109619-poc.py

# bare run: RCE, proof saved to the script

python3 CVE-2026-109618-109619-poc.py --cmd whoami

python3 CVE-2026-109618-109619-poc.py --cmd-file cmds.txt

The startup banner is on by default — silence it with --no-banner.

## Black-box mode (no target volume mounts / binary needed)

python3 CVE-2026-109618-109619-poc.py --cmd whoami \

Pure commands are auto-redirected into the PHP cwd (the webroot) and the

result is fetched over HTTP. offsets.json must contain the target branch

(populate it by running --calibrate against the build in your lab).

| --scan | passive fingerprint + vulnerable/not verdict (safe) |

| --calibrate | auto-measure stage1_n / stage2_t / stage2_v / htdata (loops until found, resumable) |

| exploit (default) | leak + fire, per-URL state memory, self-healing |

- Validated: PHP 8.4.26 + 8.3.35 (Debian, mod_php prefork, display_errors=On,

single worker). RCE on static/low-noise target pages.

- Not supported: php-fpm/CGI, display_errors=Off (leak chain requirement),

multi-worker MPMs. Real-application targets: leaks work, fire calibration

is an open problem (see the parent research workspace report).

- Offsets do NOT transfer across PHP branches — offsets.json is populated

per build (via --calibrate + --libphp in the lab).

- The lab binds 127.0.0.1 only; never expose it.

- All modes send traffic ONLY to the URL passed on the command line.

- Destroy the lab when done: cd lab && docker compose down -v

- Authorized use only — see DISCLAIMER.md.

Extracted Entities

Attack Types (1)

Companies (1)

Tools (2)