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
B63-POC-CVE-2026-109619 — PoC and verification material for CVE-2026-109619 (PHP stale worker-global state) | Kitploit
Tools/GitHubGitHub/basesixtythree/b63-poc-cve-2026-109619
Memory ForensicsVulnerability AnalysisExploitationWeb Application ExploitationSecurity VirtualizationPenetration TestingLabs & Practice
GitHubbasesixtythree/b63-poc-cve-2026-109619

B63-POC-CVE-2026-109619

PoC and verification material for CVE-2026-109619 (PHP stale worker-global state)

View Repository
1 month agoNot yet reviewed
Share

CVE-2026-109619 — PHP stale worker-global state ("php2shell", pair B)

PoC and verification material for CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp, "RCE via stale global state", CVSS v4.0 9.2 Critical, CWE-416) — the sibling advisory of CVE-2026-109618, fixed by the same PHP core commit on 2026-10-21 (8.2.35 / 8.3.36 / 8.4.27 / 8.5.12).

Overview — PHP keeps worker-global state (EG(last_fatal_error_backtrace), session PS(id)/PS(save_path), the var-layer BG(serialize)/ BG(unserialize) contexts, OPcache per-worker map frontier) that can point into request-owned memory. A fatal error (or OOM bailout) that abandons an operation before its matching reset leaves the global dangling after the request heap is freed. A later operation running before normal request initialization consumes the stale value: a cross-request use-after-free the vendor developed into unauthenticated RCE.

Producer / consumer model (from the advisory, verified against php-src)

  • Producers: fatal errors that skip the matching global reset — OOM, uncaught errors, require failure, Maximum execution time exceeded; or nonfatal diagnostics that repopulate error state after shutdown cleared it.
  • Consumers (both run pre-RINIT, before the executor reinitializes state): per-request INI diagnostics (mod_php php_value/.htaccess, FPM PHP_VALUE/PHP_ADMIN_VALUE), and the session upload-progress early machinery (application-agnostic, no session_start() needed).

Verification status (tier-separated)

TierStatusEvidence
Producer: application-phase fatal publishes a request-owned backtrace (fatal_error_backtraces=On, compiled default on 8.5)captured (3/3) on vulnerable php-8.5.11, patched php-8.5.12 and the ASAN twinevidence/01-fatal-backtrace-producer.txt
Consumer: pre-RINIT diagnostic fires on an over-limit multipart POST (main/rfc1867.c:697 gate, no body read needed)captured on mod_phpevidence/02-consume-diagnostic-pre-rinit.txt — Warning: PHP Request Startup: POST Content-Length of 10485760 bytes exceeds the limit of 8388608 bytes in Unknown on line 0
Cross-request UAF sanitizer receipt / RCEdocumented, not reproduced herevendor-confirmed RCE (fatal-backtrace path on mod_php; session-lifecycle path on mod_php AND php-fpm; OPcache type confusion on WordPress — Wiz). Public audits report the exploit tiers need per-build offsets + heap grooming

Two independent peer-review passes were performed on this material (reject-and-fix iteration, then a zero-blocking confirmation pass).

Files

poc/exploit_opt.py        producer + consumer driver (compact)
poc/exploit_readable.py   same, tutorial-grade
evidence/                 captured lab transcripts (paths scrubbed)
lab/                      self-contained docker compose lab (identical to
                          the companion advisory's lab; either copy runs
                          standalone)

Usage (lab targets only)

python3 poc/exploit_opt.py --url http://127.0.0.1:8082/ --rounds 3
python3 poc/exploit_readable.py --url http://127.0.0.1:8082/ --rounds 3

Lab assumptions: the ASAN twin runs php -S 0.0.0.0:8080 -t /www inside the container, and the PoCs read the server log via docker logs cve-2026-109618-asan — both are wired for the shipped lab/ compose; if your container/app names differ, adjust LAB_CONTAINER and the --url port.

Each round: produce (fires the lab fixture fatal that publishes the backtrace state) then consume (over-limit declared Content-Length — the diagnostic fires before any body byte is read, so the transport is fire-and-half-close; waiting on a full response would hang by design).

Output tiers are printed separately: published=True marks the producer receipt; an AddressSanitizer report after rounds would be the UAF-tier receipt (not yet captured in any tested configuration — the tool says exactly that rather than claiming it).

Notes that matter if you study this bug

  • The consume gate compares the declared length only, pre-body-read — the same property that enables the chunked bypass documented in the companion advisory (CVE-2026-109618).
  • The INI-diagnostic consumer path is real on mod_php (the tested report_memleaks=0 per-dir deprecation fired per-request; earlier "does not fire" reports were probe artifacts — the diagnostic goes to the display layer, not the buffered log a naive grep watches).
  • The shared fix (31c0ea7d7f) removes the OOM bailout class entirely (delayed soft OOM at VM safe points + hard _exit()), resets the "may be accessed before php_request_startup()" globals early, and locks the pre-RINIT session decode to __PHP_Incomplete_Class.

Mitigation

  1. The complete fix is the updated release: update to 8.2.35 / 8.3.36 / 8.4.27 / 8.5.12+.
  2. On 8.5: fatal_error_backtraces=0 (removes the confirmed producer) and/or session.upload_progress.enabled=0, then restart every worker.
  3. Eliminate attacker-reachable fatals (including upload/import/plugin paths); apply INI via startup config instead of per-request overrides; pm.max_requests=1 limits each worker to a single request as a stopgap.
  4. Audit with log_errors=On + error_reporting=E_ALL for repeated pre-script diagnostics, fatals and max-execution-time events on attacker-influenceable routes (absence of log entries is not proof of safety).

Reproduce the lab

A self-contained docker compose lab ships in lab/ (identical to the companion advisory's lab; either copy runs standalone): cd lab && docker compose build && docker compose up -d — ports 8080=vuln(8.5.11), 8081=fixed (8.5.12), 8082=asan. The producer fixture (lab/www/fatal.php) ships in the image on all three twins.

Detection

  • Fatals/uncaught errors followed by worker churn on the same pool.
  • Repeated diagnostics appearing with Unknown on line 0 (startup stage) on attacker-influenced routes.
  • FPM pool logs: same-child producer+consumer pairing anomalies.

Responsible use

For authorized security research and defense on systems you own or are explicitly permitted to test, in isolated lab environments. Test the vulnerable behavior from a source build of the last vulnerable tag (php-8.5.11). No warranty, see LICENSE.

References

  • GHSA-6wmf-4rv5-p3rp — RCE via stale global state
  • GHSA-w8hw-w9fx-j79w — companion advisory (OOM corruption)
  • php.net security release 2026-10-21
  • Wiz Research "PHP2Shell" blog; OpenAI + Calif disclosure blogs
  • xuehuolll independent audit repo; JackalSyn "php-up-2026" writeup

About

Prepared with the b63 exploit-foundry tooling: advisory verification against primary sources, a reproducible pinned-build lab, two PoC variants, captured transcripts, and two adversarial review passes. Feedback and corrections welcome via issues.

License

MIT

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 →