
Unauthenticated RCE toolkit for PHP 5.4–8.4.26 (CVE-2026-109619/109618) — pure-HTTP chain, JA3 impersonation, prpenetration-testingoof-of-access design
Pure HTTP · zero target-side requirements · JA3 fingerprint impersonation · proof-of-access design
Landing Page · Install · Quick start · Lab vs Live · Modes · Repo sources · Research credits · How it works · Stealth · FAQ · Disclaimer
🌐 Landing Page & Web UI: an interactive documentation page and simulation are available at
docs/index.html. This static page can be served locally withpython3 -m http.serverinside thedocs/folder.
php2shell is a reproduction and research toolkit for two critical PHP
vulnerabilities, CVE-2026-109619 and CVE-2026-109618 (CVSS 4.0 9.2
Critical, unauthenticated, fixed in 8.2.35 / 8.3.36 / 8.4.27 / 8.5.12).
It turns the bug into a fully remote, HTTP-only exploit chain against
mod_php + Apache prefork with zero target-side requirements:
session_start() needed on the target page<?php echo "OK\n"; ?>The toolkit is proof-of-access by design: commands are capped at 14 bytes,
limited to identity commands (id, whoami, …), bash/nc/curl are permanently
blocked, and evidence is retrieved automatically — it demonstrates impact
without being a drop-in backdoor.
| CVE-2026-109619 | CVE-2026-109618 | |
|---|---|---|
| Class | stale global state → UAF | OOM bailout corruption → longjmp |
| Trigger | session.upload_progress multipart callbacks run before RINIT; OOM leaves PS(http_session_vars) / PS(id) dangling → the next request on the same worker calls zval_ptr_dtor on freed memory | zend_bailout() mid-allocation leaves half-built structures in global state |
| Requests | 2 (producer + consumer) | 1 |
| Fix | 8.2.35 / 8.3.36 / 8.4.27 / 8.5.12 | same |
| Status in this toolkit | ✅ implemented: full 0→RCE chain | ⛔ intentionally not implemented (detect/preflight only) |
Version semantics — if your PHP is below the fix-floor, it is vulnerable and exploitable. Every release from the fix-floor up patches all of these issues. PHP ≤ 8.1 is EOL: no backports, vulnerable forever.
| Branch | last vulnerable | fixed |
|---|---|---|
| 8.2 | 8.2.34 | 8.2.35 |
| 8.3 | 8.3.35 | 8.3.36 |
| 8.4 | 8.4.26 | 8.4.27 |
| 8.5 | 8.5.11 | 8.5.12 |
| ≤ 8.1 | all (EOL) | never |
Highest impact: mod_php + prefork (cross-request worker reuse). php-fpm is a strong mitigation (the worker dies per request). CDN-hidden versions? Detection is information, not a gate: preflight reports what it can see, and the chain proceeds anyway.
8.5.12 and 8.4.27 carry
ChangeLog entries dated 22 Oct (Avoid state corruption via bailout), but the
version numbers did not change. The same 8.4.27 can mean the 21 Oct build
(not final) or the 22 Oct build (final). Check the package build date, not
just the version string.CVE-2026-115560 (Session upload progress).
Reserved, full advisory to follow in a regular release. It needs
session.serialize_handler set to php_binary/php_serialize and switched
to php at runtime via ini_set() before session_start(), plus
session.upload_progress.enabled=On. Mitigate with
session.upload_progress.enabled=0. NOT closed by the fix-floor below.
See the callout right after this list.CVE-2026-115560 (2026-10-23, not yet patched): the fix-floor above does not close the session serialize_handler mismatch bug (object injection via app-side
ini_set).patched+upload_progress=On≠ safe — detect prints this caveat automatically. Details:docs/CVE-2026-115560.md.
memory_limit=-1 is NOT a complete mitigation (GHSA-w8hw-w9fx-j79w).
If a base allocation fails, longjmp() can still happen while request memory
is reachable. Only upgrading is complete.session.upload_progress.enabled=0 only closes 109618 (+115560). It does
not close 109619.Run php2shell version --advisories for this list from the CLI.
git clone https://github.com/aarsaputra/php2shell.git
cd php2shell
bash install.sh # venv + deps + smoke-tests + global `php2shell` command
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt # curl_cffi (JA3) + bcrypt (webshell mode)
python php2shell.py --help
Every dependency and why it exists: REQUIREMENTS.md.
The repo ships the author's exact vulnerable lab configuration, so reproducing the research environment takes one command, not an afternoon:
bash lab/lab_docker.sh start
# → pulls official php:8.4.26-apache
# → mounts docker/php.ini + docker/apache.conf + docker/www (author's config)
# → single prefork worker, KeepAlive Off, upload_progress tuned
# → http://127.0.0.1:8095/index.php
# 0) fresh binary offsets (required after every image change)
python3 docker/offsets.py # → out/offsets.env
# 1) run the chain with automatic proof retrieval
php2shell exploit \
-u http://127.0.0.1:8095/index.php --force --yes \
--allow-private-target --exploit-profile bookworm -c 'id>/out/p1'