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
php-stale-global-uaf — PHP 8.5.11 - Critical - Remote - UAF - CVE-2026-109619 PHP2Shell. Same-worker fatal backtrace then INI diagnostic on Apache mod_php. Lab vs 8.5.12. Advisory RCE inferred. | Kitploit
Tools/GitHubGitHub/abraxas/php-stale-global-uaf
Memory ForensicsVulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityLearning & EducationLabs & Practice
GitHub
Share
abraxas/php-stale-global-uaf

php-stale-global-uaf

PHP 8.5.11 - Critical - Remote - UAF - CVE-2026-109619 PHP2Shell. Same-worker fatal backtrace then INI diagnostic on Apache mod_php. Lab vs 8.5.12. Advisory RCE inferred.

View Repository
2022 days agoNot yet reviewed

Abraxas Labs - php-stale-global-uaf

php2shell/php2dos - php-stale-global-uaf

Someone on the internet can talk to your PHP site the same way a browser does, with no password. On last-affected PHP 8.5 they can force one request to die with a fatal error, then send a second request to the same worker. PHP 8.5 keeps a backtrace from that fatal in worker-global memory after the request heap is gone. The second request reads it while applying a leftover INI flag, before the engine has reset itself. In this lab that second request kills the Apache child. The PHP Group showed the same pattern can become remote code execution as the web worker.

Class: UAF / Crash Reach: Remote

PHP 8.5.11 (php:8.5.11-apache) vs patched 8.5.12 - php.net

CVE-2026-109619 is stale worker-global state. The lab pins Apache prefork to one child, produces a fatal with fatal_error_backtraces=On, then consumes it with per-dir php_flag auto_detect_line_endings on / report_memleaks off applied before php_request_startup(). 8.5.11: producer 200 fatal, consumer connection reset, Apache log zend_mm_heap corrupted. 8.5.12: the same two-phase stays up (consumer-ok). Advisory RCE as the Apache worker is inferred from the GHSA.

IDCVE-2026-109619
AdvisoryGHSA-6wmf-4rv5-p3rp
ClassUAF / Crash (advisory RCE inferred)
ReachRemote (unauthenticated HTTP, same worker)
CWECWE-416 / CWE-825
CVSSCritical: 9.2 CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H (PHP Group)
ProductPHP
AffectedPHP 8.2 before 8.2.35, 8.3 before 8.3.36, 8.4 before 8.4.27, 8.5 before 8.5.12 (lab pin 8.5.11, backtrace arm is 8.5)
Fixed8.2.35 / 8.3.36 / 8.4.27 / 8.5.12 (21 Oct 2026)
Authnone
LicenseGNU Affero GPL v3.0
Lab127.0.0.1 only

Sibling: CVE-2026-109618 OOM longjmp (PHP2Shell pair).

What an attacker can do

MethodSinkPrivilege
Unauthenticated GET /producer.php then GET /consumer.php on the same Apache prefork child8.5 fatal_error_backtraces never reset at shutdown; INI diagnostic before php_request_startup()Availability (lab-proven): kill that child (zend_mm_heap corrupted, connection reset) on 8.5.11. Integrity (inferred): dangling backtrace pointer; vendor showed RCE as www-data. Recon (inferred): leftover request-heap disclosure.
Same two-phase on 8.5.12complete state resetClosed (lab-proven): consumer body consumer-ok, worker stays up.
error_reporting / display_errors / @warning still consumes stale stateClosed as a mitigation. Global state is accessed before PHP decides whether to report the diagnostic.
FPM pool .user.iniapplied after normal initClosed as this early consumer. FPM needs frontend PHP_VALUE / PHP_ADMIN_VALUE. Session upload progress is a second confirmed vendor arm (mod_php and FPM); this lab used the 8.5 backtrace arm.
Login, reverse shell, custom .son/aClosed. No RIP control attempted.

Lab-proven vs inferred: same-worker UAF/crash vs patched control is lab-proven. RCE is inferred from GHSA-6wmf-4rv5-p3rp.

Requires: Apache apache2handler prefork pinned to one worker. PHP 8.5 fatal_error_backtraces=On. Per-dir INI diagnostic. Official php:8.5.11-apache vs php:8.5.12-apache.

Lab

python3 php-stale-global-uaf-Abraxas-Labs.py

or cd lab && ./run.sh. Loopback 127.0.0.1:18222 (8.5.11) vs 127.0.0.1:18223 (8.5.12). Compose project cve-2026-109619. Witness CVE-2026-109619-UAF-WITNESS. Last line:

SUCCESS CVE-2026-109619 vuln-uaf=yes vuln-crash=yes patched-ok=yes sapi=apache2handler pin=same-worker vuln-image=php:8.5.11-apache patched-image=php:8.5.12-apache how=backtrace crash=connection-reset CVE-2026-109619-UAF-WITNESS

Authorized lab only. It talks to loopback.

The fix

Update to PHP 8.5.12 (or 8.2.35 / 8.3.36 / 8.4.27). Until then: fatal_error_backtraces=0 on 8.5 (this producer only); session.upload_progress.enabled=0 (session arm only); drop per-request deprecated INI; pm.max_requests=1 if you can afford it. There is no complete generic configuration mitigation.

References

  • php.net 21 Oct 2026 security release
  • GHSA-6wmf-4rv5-p3rp
  • CVE-2026-109619
  • php/php-src tag php-8.5.11 vs php-8.5.12
  • Patch 31c0ea7 Avoid state corruption via bailout
  • Sibling GHSA-w8hw-w9fx-j79w CVE-2026-109618
  • Credit: Calif, Wiz, OpenAI, PHP security team

Abraxas Labs [email protected]

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.

    916
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    558
  • 3

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    370
  • 4

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    360
  • 5

    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.

    317
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    289

Explore all tools

Browse our collection of tools

View all tools →