Back to Blog
    Threat Advisory
    PHP2Shell
    CVE-2026-109618
    CVE-2026-109619
    Splunk
    KEV

    PHP2Shell: What Defenders Need to Know About the Leaked PHP Zero-Days

    Akin
    October 22, 2026
    9 min read
    PHP2Shell: What Defenders Need to Know About the Leaked PHP Zero-Days

    Bottom line: Two critical RCE bugs in the PHP engine leaked on October 20 and were patched on October 21. Patch now, hunt for compromise back to early October, and assume anything running PHP is in scope — including appliances you never think of as "PHP servers."

    The flaws, tracked as CVE-2026-109618 and CVE-2026-109619 and nicknamed PHP2Shell, let an unauthenticated attacker run code on a web server. Because the bugs live in PHP core, a perfectly written application on top of it does not protect you.

    At a glance
    SeverityCVSS v4.0 9.2 (both CVEs)
    ImpactUnauthenticated remote code execution
    AffectedPHP-FPM, mod_php, php-cgi, FrankenPHP, LiteSpeed — back to PHP 5.4
    Exposure1.3M+ internet-facing hosts (estimated)
    Fixed in8.5.12 · 8.4.27 · 8.3.36 · 8.2.35
    CISA KEVNot yet listed — don't wait for it

    TL;DR

    • ✅ Upgrade to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35. PHP 8.1 and older get no official fix.
    • ⛔ Can't patch? Take it offline. ini tweaks and WAF rules are stopgaps, not fixes.
    • 🔎 Hunt now for web server processes spawning shells and new PHP files in web roots.
    • 🔔 Build a KEV watch so you know the moment CISA adds these CVEs.

    Timeline: how it unfolded

    Disclosure was coordinated for Thursday, October 22. Details leaked early, PHP pulled the release forward, and exploitation started before most teams finished reading the advisory.

    Date (2026)Event
    Oct 17Earliest reported observation, attributed to Amazon Threat Intelligence
    Oct 20Details of the embargoed bugs leak; watchTowr confirms they are real
    Oct 20CERT-EU advisory 2026-018 advises isolating internet-facing PHP apps
    Oct 21, ~14:00 UTCPHP publishes advisories and fixed releases
    Oct 21watchTowr reports exploitation in its honeypot network
    Oct 21NSA, CISA, FBI and UK NCSC urge immediate patching

    ⚠️ The October 17 date matters. If activity predates the leak, your compromise hunt must look back further than the patch date.

    The two vulnerabilities

    Both are memory safety flaws in how PHP manages request data. Early chatter called them 10.0; that came from the leak, not from PHP.

    CVEWhat goes wrongAdvisory
    CVE-2026-109618When PHP runs out of memory while setting up request data, the data is left half-initialized. Cleanup treats it as valid, opening a path to code execution. Researchers also describe a Heartbleed-style memory leak.GHSA-w8hw-w9fx-j79w
    CVE-2026-109619Internal state tied to one request can outlive its freed memory. A later request on the same worker can reuse it before it is reset.GHSA-6wmf-4rv5-p3rp

    Most exposed: mod_php carries the highest risk — a single unauthenticated request can trigger exploitation before any application code runs. Researchers have confirmed unauthenticated RCE against Magento 2.4.9 and ten other PHP applications.

    Caution on early write-ups: several posts from the leak window got root causes wrong. Use php.net's advisories as the source of truth.

    What the government is saying

    U.S. and UK agencies are aligned: inventory, patch immediately, take systems offline if you can't.

    • NSA expects weaponization, requires immediate patching across federal agencies, and recommends enhanced logging, replacing end-of-life PHP, and taking unpatchable systems offline.
    • CISA published "Critical Vulnerabilities in PHP Require Immediate Patching."
    • UK NCSC advised updating internet-facing PHP immediately or temporarily taking it offline.
    • FBI Cyber Division issued a statement emphasizing investigation and evidence preservation, not just patching.

    KEV status: neither CVE is in CISA's KEV catalog yet — so no binding federal deadline. Earlier PHP bugs (CVE-2024-4577, CVE-2019-11043) ended up in KEV with known ransomware use.

    Patch first, mitigate only as a bridge

    BranchFixed releaseSupport status
    8.58.5.12Active support until Dec 31, 2027
    8.48.4.27Active support until Dec 31, 2026
    8.38.3.36Security fixes until Dec 31, 2027
    8.28.2.35Security fixes until Dec 31, 2026
    8.1 and olderNo official releaseSource-only backports for 7.4–8.1; check your distro or LTS vendor

    🔁 Restart PHP-FPM pools and Apache after upgrading. A patched binary on disk does nothing for workers still running the old one.

    Don't forget embedded PHP. Vendor appliances, control panels and commercial products ship their own PHP. Track vendor bulletins, not just your package manager.

    If you truly cannot patch today:

    • Turn off session.upload_progress.enabled and set memory_limit=-1 where apps can't override it. With no memory cap one request can exhaust the server — watch memory and restore the limit after patching.
    • Lower post_max_size and enforce request size/count limits at the web server or proxy.
    • Treat WAF rules as defense in depth only — WAFs parse multipart requests differently from PHP.

    PHP's own advisory says none of its interim settings make an installation safe.


    Detecting PHP2Shell in Splunk

    There's no clean single signature for an engine-level bug that fires before application code runs, and no official IOCs yet. So we build in layers:

    LayerGoalConfidence
    1 · ExposureWhich hosts run vulnerable PHPInventory
    2 · Exploit side effectsMemory exhaustion and worker crashes after oversized POSTsMedium
    3 · Shell spawnsWeb server launching shells and recon toolsHigh
    4 · Web shellsNew PHP files written by the web service accountHigh

    1. Find vulnerable PHP from network data

    index=zeek sourcetype=zeek:http server_header="*PHP/*"
    | rex field=_raw "PHP/(?<php_ver>\d+\.\d+\.\d+)"
    | eval patch=tonumber(mvindex(split(php_ver,"."),2))
    | eval status=case(
        match(php_ver,"^8\.5\.") AND patch<12, "vulnerable",
        match(php_ver,"^8\.4\.") AND patch<27, "vulnerable",
        match(php_ver,"^8\.3\.") AND patch<36, "vulnerable",
        match(php_ver,"^8\.2\.") AND patch<35, "vulnerable",
        match(php_ver,"^(5|7|8\.[01])\."), "eol_check_backport",
        true(), "ok")
    | where status!="ok"
    | stats latest(php_ver) as php_ver values(status) as status by dest_ip
    

    Banners lie: many hosts hide X-Powered-By, and distro backports keep old version strings. Pair this with scanner data once plugins are available.

    2. Oversized POSTs followed by memory exhaustion or crashes

    | tstats summariesonly=t count sum(Web.bytes_in) as bytes_in
        from datamodel=Web
        where Web.http_method=POST Web.bytes_in>1000000
        by Web.dest Web.src _time span=10m
    | rename Web.* as *
    | join type=inner dest _time
        [ search index=web ("Allowed memory size of" OR "Segmentation fault" OR "exited on signal 11")
          | bin _time span=10m
          | stats count as err_count by host _time
          | rename host as dest ]
    | table _time src dest count bytes_in err_count
    

    Baseline first. If you applied memory_limit=-1, OOM errors go quiet on that host — watch host memory pressure instead.

    3. Web server spawning a shell

    | tstats summariesonly=t count values(Processes.process) as cmd
        from datamodel=Endpoint.Processes
        where Processes.parent_process_name IN ("httpd","apache2","php-fpm*","php-cgi*","php","frankenphp","lsphp*")
          Processes.process_name IN ("sh","bash","dash","curl","wget","whoami","id","uname","nc","ncat","python*","perl","base64")
        by Processes.dest Processes.user Processes.parent_process_name Processes.process_name
    | rename Processes.* as *
    

    Some hits are legitimate (e.g. PHP's mail() calling sh -c sendmail). Tune by command line, not by parent.

    4. New PHP files written by the web service account

    | tstats summariesonly=t count values(Filesystem.file_path) as files
        from datamodel=Endpoint.Filesystem
        where Filesystem.action=created Filesystem.file_name="*.php*"
          Filesystem.user IN ("www-data","apache","nginx","nobody","daemon")
        by Filesystem.dest Filesystem.user
    | rename Filesystem.* as *
    

    🕵️ Run layers 3 and 4 as a retro hunt starting in early October. Map findings to MITRE ATT&CK T1190 (Exploit Public-Facing Application) and T1505.003 (Web Shell).

    ☣️ Some public "PoCs" are unverified and may carry malware. Do not run them to validate your detections.


    Get ahead of KEV with a watchlist alert

    When these CVEs land in CISA's KEV catalog, federal agencies get a hard deadline. A KEV watch tells you the moment it happens — and works for any CVE you care about.

    CISA publishes the catalog as JSON at https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json. Pull it into Splunk with a scripted input every four hours (sourcetype cisa:kev, one event per entry), then keep a watchlist lookup:

    cve,label,owner
    CVE-2026-109618,PHP2Shell OOM corruption,web-tier
    CVE-2026-109619,PHP2Shell stale global state,web-tier
    

    The watch search compares the latest snapshot against the watchlist:

    index=threat_intel sourcetype=cisa:kev earliest=-24h
    | eventstats max(pulled_at) as latest_pull
    | where pulled_at=latest_pull
    | lookup kev_watchlist.csv cve AS cveID OUTPUT label owner
    | where isnotnull(label)
    | eval days_to_due=round((strptime(dueDate,"%Y-%m-%d")-now())/86400,0)
    | eval ransomware=if(knownRansomwareCampaignUse="Known","YES","no")
    | table cveID label owner vulnerabilityName dateAdded dueDate days_to_due ransomware requiredAction
    

    Schedule hourly and throttle on cveID for a year so each CVE fires once. Add a health check that alerts if no cisa:kev events arrive for 12 hours — a silently broken feed means a watch that never fires. Join new KEV entries against scanner data for a running, due-date-sorted list of KEV flaws you actually have.


    Your action checklist

    • Inventory every PHP install, including appliances and vendor products
    • Upgrade to a fixed release and restart PHP workers
    • Take unpatchable and end-of-life systems offline
    • Retro hunt for web shells and shell spawns back to early October
    • Turn on KEV watch so the deadline never surprises you

    Need help?

    SecTower helps security teams turn advisories like this into working detections fast: exposure dashboards, risk-based alerting content, and compromise hunts tuned to your data. If you want help standing up PHP2Shell coverage in your Splunk environment, get in touch.

    Sources

    • NSA: Critical Patches Recommended for PHP Vulnerabilities
    • NCSC-NL: php2shell operational information
    • Tanium: Responding to PHP2Shell
    • Sansec: PHP2Shell
    • SOCRadar: PHP2Shell
    • Brandefense: PHP2Shell
    • watchTowr: PHP2Shell FAQ
    • Expel: Php2Shell
    • Automox: PHP2Shell response
    • Pentestit: What we know about php2shell
    • Bristows: What organisations need to do
    • BankInfoSecurity: Attackers exploit leaked PHP zero-days
    • Cyber Daily: PHP preparing to address critical RCEs
    • OpenVPN: This Week in Cybersecurity
    • ersinkoc/php-fix