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
CVE-2026-109619 — Mass validator for the php2shell PHP core chain (CVE-2026-109618/109619): fingerprints versions and confirms exposure via chunked-TE and pre-app OOM oracles. | Kitploit
Tools/GitHubGitHub/1nightlovel/cve-2026-109619
Defensive ToolsVulnerability ScannersWeb Vulnerability ScannersNetwork MappingVulnerability AnalysisWeb SecurityPenetration TestingIncident Response
GitHub1nightlovel/cve-2026-109619

CVE-2026-109619

Mass validator for the php2shell PHP core chain (CVE-2026-109618/109619): fingerprints versions and confirms exposure via chunked-TE and pre-app OOM oracles.

1 month agoNot yet reviewed
Share
View Repository

php2shell-scanner — Mass validator for CVE-2026-109618 / CVE-2026-109619

CVE CVSS Python License: MIT

Defensive scanner to mass-validate whether the web servers in a network are affected by php2shell, the chain of two critical use-after-free vulnerabilities (CVSS v4.0 9.2) in the PHP core disclosed on 2026-10-21: unauthenticated remote code execution that triggers before any application code runs.

Validated against real PHP (Docker lab: vulnerable php:8.4.26-apache vs patched php:8.4.27-apache): the behavioral oracle and the OOM evidence behave deterministically on both.

Authorized use only — your own networks or pentest engagements with written permission. The scanner does NOT weaponize the memory-corruption exploit (no RCE code included or executed); it validates exposure using harmless evidence. See Disclaimer.


1. Vulnerability summary

CVE-2026-109618 (GHSA-w8hw-w9fx-j79w)UAF in out-of-memory handling during php_request_startup(): multipart (RFC1867) parsing is interrupted with the heap half-initialized, and cleanup treats invalid data as valid. Includes remote memory disclosure via the PHPSESSID cookie.
CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp)Request-owned internal state survives its freed memory (session.upload_progress, fatal-error backtraces on 8.5): a later request on the same worker consumes the stale state → memory corruption → unauthenticated RCE.

Key facts (Tenable, Wiz, Sansec, watchTowr, CERT-EU, php.net, Calif):

  • Execution happens before application code (during request parsing) — application-level maintenance mode provides no protection.
  • Vector: multipart/form-data. post_max_size is validated against the declared Content-Length, not the bytes actually consumed → a POST with Transfer-Encoding: chunked (no Content-Length) bypasses the limit entirely.
  • Affects PHP ≥ 5.4.0; both mod_php and PHP-FPM; default configurations are vulnerable. Pre-auth RCE demonstrated on WordPress, Drupal, Joomla, Magento, phpMyAdmin, Nextcloud, and more.
  • Fixed upstream (2026-10-21): 8.5.12 / 8.4.27 / 8.3.36 / 8.2.35. Branches 7.4/8.0/8.1 only have source backports; distro builds (8.1.2-1ubuntu2.x) must be verified with the vendor — the scanner resolves this with its behavioral oracle.
  • Active exploitation confirmed by Cloudflare/watchTowr since before the patch.
  • Partial mitigations: session.upload_progress.enabled=0 (+ worker restart), fatal_error_backtraces=0 (8.5), blocking multipart/form-data at the edge, or memory_limit=-1 with a bounded post_max_size.

2. Files

FilePurpose
php2shell_scanner.pyThe scanner (Python 3.8+, stdlib only).
targets_ejemplo.txtExample target list.
mock_server_test.pyMocks (vulnerable/patched/non-PHP) for pipeline self-testing.
lab_probe.pyDocker-lab harness used to derive/validate the probes (research documentation).

3. Usage

# single target (host:port or URL)
python php2shell_scanner.py --target 10.0.1.20:80 --poc --confirm-authorized

# target list from file (host, host:port or URL per line)
python php2shell_scanner.py --list apps.txt --poc --confirm-authorized --json results.json

# full network sweep
python php2shell_scanner.py --cidr 10.0.2.0/24 --ports 80,443,8080 --poc --confirm-authorized --threads 20

# fingerprint/version only, no active probes
python php2shell_scanner.py --list apps.txt --no-poc

JSON output via --json, per-verdict summary in console. Exit code 1 if affected targets are found (CI-friendly), 0 otherwise.

Relevant options

  • --poc / --no-poc: active probes (default: on; requires --confirm-authorized).
  • --probe-mb N (default 9): size of the P3a oracle — just above the default post_max_size=8M.
  • --no-oom / --oom-mb N (default 132): skip / resize the P3b evidence — crosses the default memory_limit=128M. Raise to 264 for memory_limit=256M.
  • --threads, --timeout, --verify-tls.

4. Methodology (4 layers)

P1 — Passive fingerprint. Initial GET: X-Powered-By → verdict against the patched-version table; PHPSESSID cookie presence; PHP signature in body/Server.

P2 — session.upload_progress oracle (harmless). Minimal multipart POST with a PHP_SESSION_UPLOAD_PROGRESS field: if PHP initializes a session on its own (fresh cookie in the response), the confirmed attack path for CVE-2026-109619 is live.

P3a — Chunked oracle (~9 MiB). Multipart POST with Transfer-Encoding: chunked:

  • Patched build: applies post_max_size against the real bytes and emits Warning: Actual POST length does not match Content-Length, and exceeds N bytes before app code → bypass CLOSED. Also resolves distro builds carrying a backport (old version, corrected behavior).
  • Vulnerable build: parses the 9 MiB with no limit and no warning → bypass OPEN (the CVE-2026-109618 precondition is reachable unauthenticated).

P3b — Pre-app OOM evidence (132 MiB, only if P3a is open). The pad crosses memory_limit during startup: the vulnerable build responds Fatal error: Allowed memory size of 134217728 bytes exhausted ... in Unknown on line 0 — a fatal inside php_request_startup(), before the application runs and without authentication: the exact precondition of the php2shell chain, captured as evidence. The worker survives (validated: 10/10 grooms, no crash).

About executing commands (whoami): the full RCE requires weaponized heap grooming with per-build offsets (reclaiming the freed slot with forged zend_fcall_info structures → zend_call_function → system()). The original php2shell exploit was never published, and the public skeleton (eness) admits it doesn't even fire against its own target without an external address leak. Firing that corruption blindly at production would be intrusive (crash risk). That's why the scanner's PoC stops at the reproducible precondition + patch oracle: irrefutable, harmless evidence of the same defect. For a command-execution demo, use a lab once a turnkey public exploit exists.

Verdicts

VerdictMeaning
VULNERABLE_CONFIRMEDPre-app OOM reproduced via the chunked bypass (evidence in console/JSON).
VULNERABLE_VERSIONPHP version below the patched release (upstream).
VULNERABLE_LIKELYVersion hidden but post_max_size bypass open.
VULNERABLE_VERSION (distro…)Vulnerable upstream version with a distro suffix.
PATCHED / PATCHED (backport…)Version fixed or behavioral oracle confirms the fix.
PROBE_BLOCKEDWAF/edge blocked the chunked probe; inconclusive.
UNKNOWNPHP present, version hidden, probe inconclusive.
NO_PHPNo PHP indicators on the endpoint.

Limitations

  • If the target raised post_max_size above the probe, P3a cannot tell (use a larger --probe-mb); if memory_limit is above 132M, P3b won't fatal (use a larger --oom-mb).
  • A WAF in front may block chunked TE (PROBE_BLOCKED) — version check still applies.
  • P3b transfers 132 MiB per target (~1–2 s on 1 Gbps LAN); tune --threads to avoid saturating links.
  • Hidden X-Powered-By + WAF + raised post_max_size = UNKNOWN (fall back to host-based validation).

5. Remediation

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)

    810
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    638
  • 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.

    453
  • 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.

    436
  • 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.

    386

Explore all tools

Browse our collection of tools

View all tools →