Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
php2shell — Unauthenticated RCE toolkit for PHP 5.4–8.4.26 (CVE-2026-109619/109618) — pure-HTTP chain, JA3 impersonation, prpenetration-testingoof-of-access design | Kitploit
Tools/GitHubGitHub/aarsaputra/php2shell
ReconnaissanceVulnerability ScannersWeb Vulnerability ScannersExploitationWeb Application ExploitationInformation GatheringPenetration TestingAnti-BotLabs & Practice
GitHubaarsaputra/php2shell

php2shell

1537111 days agoReviewed by Kitploit
Share

Unauthenticated RCE toolkit for PHP 5.4–8.4.26 (CVE-2026-109619/109618) — pure-HTTP chain, JA3 impersonation, prpenetration-testingoof-of-access design

View Repository
php2shell in action

💀 P H P 2 S H E L L

Unauthenticated RCE chain for PHP 5.4 → 8.4.26

Pure HTTP · zero target-side requirements · JA3 fingerprint impersonation · proof-of-access design

PHP CVSS Tests Platform License: GPL‑3.0 Docker Landing Page

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 with python3 -m http.server inside the docs/ folder.


❖ What is this?

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:

  • ❌ no session_start() needed on the target page
  • ❌ no file upload feature needed
  • ❌ no credentials, no cookie, no header trick
  • ✅ the target page can be literally <?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.


❖ The bugs

CVE-2026-109619CVE-2026-109618
Classstale global state → UAFOOM bailout corruption → longjmp
Triggersession.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 memoryzend_bailout() mid-allocation leaves half-built structures in global state
Requests2 (producer + consumer)1
Fix8.2.35 / 8.3.36 / 8.4.27 / 8.5.12same
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.

Branchlast vulnerablefixed
8.28.2.348.2.35
8.38.3.358.3.36
8.48.4.268.4.27
8.58.5.118.5.12
≤ 8.1all (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.

Post-release advisory (verified 2026-10-24, primary sources)

  • The patches were rebuilt on 22 Oct 2026: 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.
  • A third CVE exists: 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.
  • In-the-wild exploitation predates the patch: first attempts 17 Oct 2026, four days before release, from anonymized/VPN IPs against honeypots (Amazon Threat Intelligence). No confirmed successful compromise is public as of 2026-10-23.

Run php2shell version --advisories for this list from the CLI.


❖ Install

git clone https://github.com/aarsaputra/php2shell.git
cd php2shell
bash install.sh        # venv + deps + smoke-tests + global `php2shell` command
Manual install (no installer)
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.


❖ One-command lab

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

❖ Quick start

# 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'
Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    891
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    806
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    635
  • 4

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    454
  • 5

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    434
  • 6

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    384

Explore all tools

Browse our collection of tools

View all tools →