Skip to navigation

Threat reportVulnerabilityTL-2026-6502

php2shell: Two Critical Unauthenticated PHP RCE Flaws Exploited in the Wild (CVE-2026-109618, CVE-2026-109619)

criticalACTIVE

Two critical PHP core vulnerabilities, collectively named php2shell, allow unauthenticated remote code execution: CVE-2026-109618 via out-of-memory corruption and CVE-2026-109619 via stale request-owned global state. Both are CVSS v4.0 9.2, were fixed in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 on 2026-10-21, are exploited in the wild, and were added to CISA KEV on 2026-10-26. First disclosed .

Key facts

IdentifiersTL-2026-6502, CVE-2026-109618, CVE-2026-109619
Also known asphp2shell
SeverityCRITICAL
CVSS9.2 (CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N)
First disclosed
Exploitation statusLinked CVE exploited in the wild; Listed in CISA KEV: CVE-2026-109618 (added ), CVE-2026-109619 (added )
EPSSCVE-2026-109618: 99.9% (99.9th percentile); CVE-2026-109619: 99.9% (99.9th percentile)
Affected productsPHP Group PHP; Ubuntu php packages; Red Hat RHEL 9 php:8.4 module; Palo Alto Networks PAN-OS / Panorama
Weaknesses (CWE)CWE-416, CWE-755, CWE-824, CWE-1325, CWE-1419
MalwarePHP, Potassium
ToolsMirai, php2shell-scan/109618
MITRE ATT&CK techniquesT1033 System Owner/User Discovery, T1036.005 Match Legitimate Resource Name or Location, T1059.004 Unix Shell, T1082 System Information Discovery, T1190 Exploit Public-Facing Application, T1568 Dynamic Resolution, T1595.002 Vulnerability Scanning
MotivationUNKNOWN
Target sectorstechnology, government administration, finance, health, education, telecoms
Target regionsGlobal
Detection rules9 (1 shown free)
Sources18 cited sources

Detection coverage

As of 2026-11-19, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-6502 across Splunk SPL, Microsoft KQL and Sigma, covering 26 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: php2shell Post-Exploitation: Web Worker Spawning Shell, Dropper and Discovery Commands

Detects the php2shell post-exploitation process lineage: a PHP web worker (Apache mod_php/httpd, PHP-FPM, php-cgi, FrankenPHP, LiteSpeed) spawning sh -c or directly executing wget/curl/whoami/id/uname, including the PHP2SHELL_CONFIRMED command-execution test followed by a wget dropper download.

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1059.004, T1105, T1082, T1033, T1190
  • Data sources: sysmon_for_linux, linux:auditd, defender_for_endpoint
  • Severity: critical
  • Confidence: high

Splunk SPL

index=linux sourcetype="sysmon:linux" EventCode=1 earliest=-24h
```Parent is a PHP web worker; php2shell RCE lands as sh -c or direct tool exec```
| where match(ParentImage, "(?i)/(apache2|httpd|php-fpm[0-9.]*|php-cgi[0-9.]*|frankenphp|lsphp[0-9]*|litespeed)$")
| where match(Image, "/(sh|bash|dash|busybox|wget|curl|whoami|id|uname)$")
| eval stage=case(match(CommandLine, "PHP2SHELL_CONFIRMED"), "exec_validation", match(CommandLine, "(wget|curl)"), "ingress_tool_transfer", match(CommandLine, "(^|[ ;|&])(whoami|id|uname)([ ;|&]|$)"), "user_system_discovery", 1==1, "shell_spawn")
| stats count AS events values(stage) AS stages values(CommandLine) AS commands values(Image) AS children BY host, ParentImage, User
| sort - events

Microsoft KQL

let WebWorkers = @'(?i)^(apache2|httpd|php-fpm[0-9.]*|php-cgi[0-9.]*|frankenphp|lsphp[0-9]*|litespeed)$';
DeviceProcessEvents
| where Timestamp > ago(24h)
| where InitiatingProcessFileName matches regex WebWorkers or InitiatingProcessParentFileName matches regex WebWorkers
| where (InitiatingProcessFileName matches regex WebWorkers and FileName in~ ('sh','bash','dash','busybox','wget','curl','whoami','id','uname'))
    or (InitiatingProcessParentFileName matches regex WebWorkers and InitiatingProcessFileName in~ ('sh','bash','dash') and FileName in~ ('wget','curl','whoami','id','uname'))
| extend Stage = case(ProcessCommandLine contains 'PHP2SHELL_CONFIRMED', 'exec_validation', ProcessCommandLine has_any ('wget','curl'), 'ingress_tool_transfer', FileName in~ ('whoami','id','uname'), 'user_system_discovery', 'shell_spawn')
| project Timestamp, DeviceName, AccountName, Stage, FileName, ProcessCommandLine, InitiatingProcessFileName, InitiatingProcessCommandLine, InitiatingProcessParentFileName
| order by Timestamp desc

Sigma

title: Web Worker Spawning Shell or Download Tool - php2shell Post-Exploitation
id: b3e40d97-6a21-4c5f-8e7d-91f2a4c0d5b8
status: experimental
description: Detects a PHP web worker (Apache, PHP-FPM, php-cgi, FrankenPHP, LiteSpeed) spawning a shell, wget/curl or user/system discovery commands, the post-exploitation lineage of php2shell (CVE-2026-109618 / CVE-2026-109619) including the PHP2SHELL_CONFIRMED test and wget dropper stage.
references:
    - https://arcticwolf.com/resources/blog/php2shell-critical-php-vulnerabilities-enable-unauthenticated-remote-code-execution/
    - https://php2shell.delftintellab.com/
author: Threadlinqs Team
date: 2026/11/19
tags:
    - attack.execution
    - attack.t1059.004
    - attack.discovery
    - attack.t1082
    - attack.t1033
    - attack.command-and-control
    - attack.t1105
    - cve.2026-109618
    - cve.2026-109619
logsource:
    category: process_creation
    product: linux
detection:
    selection_parent:
        ParentImage|endswith:
            - '/apache2'
            - '/httpd'
            - '/php-fpm'
            - '/php-cgi'
            - '/frankenphp'
            - '/litespeed'
            - '/lsphp'
    selection_shell:
        Image|endswith:
            - '/sh'
            - '/bash'
            - '/dash'
    selection_tools:
        Image|endswith:
            - '/wget'
            - '/curl'
            - '/whoami'
            - '/id'
            - '/uname'
    condition: selection_parent and (selection_shell or selection_tools)
falsepositives:
    - Legacy PHP applications that legitimately call shell_exec/system for admin tasks (backup, image conversion)
    - Control panels (cPanel, Plesk) invoking helper scripts from the web worker
level: high

Known false positives:

  • Legacy PHP apps that call shell_exec/system for backups, image conversion or health checks
  • Hosting control panels invoking helper scripts from PHP workers

Tuning notes: Baseline legitimate shell spawns per web host for 7-14 days and allowlist by exact CommandLine. Adjust sourcetype (sysmon:linux, auditd EXECVE) to your Linux telemetry. Raise priority when stage is exec_validation or ingress_tool_transfer, or when the shell command references /tmp, /dev/shm or /var/tmp.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account)
  • php2shell Exploitation Probes and PHP OOM Trigger Errors (Sentinel) · unlock with TL Creds
  • php2shell Post-Exploitation: PHP Worker Process Lineage (Defender for Endpoint) · unlock with TL Creds
  • php2shell Dropper/C2 Contact and Masqueraded Implants (Defender for Endpoint) · unlock with TL Creds
  • php2shell Exploitation: Scanner UA, Session Poisoning and Dropper URLs (Sigma) · unlock with TL Creds
  • php2shell Post-Exploitation: PHP Worker Spawning Shell, Dropper and Discovery Tools (Sigma) · unlock with TL Creds
  • php2shell Payload C2: Dropper/Botnet Infrastructure and Sysmon-Masquerading Implant (Sigma) · unlock with TL Creds
  • php2shell (CVE-2026-109618/109619) Exploitation Probes in Web Access Logs · unlock with TL Creds
  • php2shell Dropper and Potassium/Mirai C2 Contact (Network and DNS) · unlock with TL Creds

Indicators of compromise

As of 2026-11-19, Threadlinqs Intelligence tracks 26 indicators of compromise for TL-2026-6502.

Sample indicators (3 of 26)

  • IP address: 92.118.112[.]100
  • Domain: thunder[.]godofthunder[.]st
  • URL: hxxps://pastebin[.]com/raw/wCYGVCBG

Defanged, TLP:CLEAR. Full set of 26 indicators: unlock with TL Creds.

26 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

php2shell is the name given to two memory-safety flaws in PHP core, discovered in August 2026 by Calif (Ryan Austin) and independently by Wiz as part of the OpenAI 'Patch the Planet' initiative, and fixed by the PHP project on 2026-10-21 (the release was pulled forward one day from 2026-10-22 after the CVE details leaked). Both are rated CVSS v4.0 9.2 (AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H); NVD's primary CVSS 3.1 scores are 9.8 for CVE-2026-109618 and 8.1 for CVE-2026-109619. The PHP GHSAs list CWE-416, CWE-755, CWE-824, CWE-1325 and CWE-1419.

CVE-2026-109618 (GHSA-w8hw-w9fx-j79w) is out-of-memory corruption. PHP aborts a request with longjmp() on OOM; in some contexts request memory (for example a HashTable bucket whose element counters were incremented before the key allocation) is reachable before it is fully initialized, so request shutdown consumes an invalid structure. Attackers force the OOM with multipart requests that bypass post_max_size (chunked or length-less bodies), floods of multipart part headers, hundreds of empty-filename file parts that each create file metadata arrays, deeply nested field names, or oversized field names, while spraying the heap with forged structures (for example t[] form fields). The vector is highest-risk on Apache mod_php and FrankenPHP, where request shutdown runs even when startup fails; PHP-FPM workers exit on startup failure, which blocks the early path.

CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp) is stale global state. Error, session, object or extension state pointing into request-owned memory survives a fatal error (OOM or max execution time) and is consumed by a later request on the same worker before normal request initialization. Confirmed consumers are INI diagnostics raised during pre-initialization configuration (for example .htaccess or php_value settings on mod_php, PHP_VALUE FastCGI params on FPM) and session upload progress (enabled by default), which Akamai analyzes as a use-after-free in the progress handler's cached zval pointers reclaimed with 149 t[] fields of 288 bytes carrying a forged function structure that ends in system(). The PHP 8.5 fatal_error_backtraces path is the strongest demonstrated case for mod_php. Session-lifecycle RCE was validated against mod_php and PHP-FPM.

PHP states that no configuration change fully mitigates the flaws; the only complete fix is to update and restart all workers. Branches 8.1 and older are unsupported; PHP published minimal source backports for 7.4, 8.0 and 8.1, and distributions (Ubuntu, Red Hat, cPanel, CloudLinux) ship their own backports. A related informational advisory on 2026-10-23 (to be published as CVE-2026-115560) recommends keeping session.upload_progress.enabled=0 until the next bugfix release.

Exploitation: Amazon Threat Intelligence MadPot recorded an attempt on 2026-10-17 from a commercial anonymization service IP; Cloudflare reported early attacks on 2026-10-21; TU Delft's honeypots recorded the first PHP2Shell-like request at 2026-10-21 08:37 UTC and, through 2026-11-19, 89,575 exploitation requests from 802 source IPs in 337 ASNs, with 182 IPs sending code or a dropper. Observed payloads include OS commands, wget/curl droppers, session deserialization gadgets (Monolog), and scanner traffic self-identifying as php2shell-scan/109618. Arctic Wolf attributes some dropper infrastructure (92.118.112.100) to the Potassium botnet, a Mirai-derived family, though it did not observe the samples being fetched by PHP2Shell requests; TU Delft also captured a Mirai-derived DDoS bot, a Mirai 2.0.4_socks5 variant and a Nim implant (crong3-agent posing as sysmon). No named threat actor is attributed. Abstract Security claims a lab reproduction of RCE on a fully patched PHP 8.2.35 via session.upload_progress; this contradicts PHP's advisory and is unverified. Calif lists WordPress, Drupal, Joomla, MediaWiki, Roundcube, Magento, phpMyAdmin, Nextcloud, Laravel, Symfony and WHMCS as pre-auth exploitable applications. Vendors including Palo Alto Networks (PAN-OS/Panorama), Fortinet and Cisco reported products under assessment.

MITRE ATT&CK techniques by tactic:

Discovery

T1033 System Owner/User Discovery; T1082 System Information Discovery

Defense Evasion

T1036.005 Match Legitimate Resource Name or Location

Execution

T1059.004 Unix Shell

Initial Access

T1190 Exploit Public-Facing Application

Command and Control

T1568 Dynamic Resolution

Reconnaissance

T1595.002 Vulnerability Scanning

Remediation

Patches

  • PHP 8.5.12, 8.4.27, 8.3.36, 8.2.35 (released 2026-10-21)
  • PHP source backports on php-src branches PHP-7.4/8.0/8.1-CVE-2026-109618-109619
  • Ubuntu USN-8948-1/USN-8948-2; Red Hat RHSA-2026:97880 (php 8.4.27 module on RHEL 9)

Immediate actions

  • Update PHP to 8.5.12, 8.4.27, 8.3.36 or 8.2.35 (or a vendor-backported package) and restart every PHP worker (mod_php/Apache, PHP-FPM, php-cgi, FrankenPHP, LiteSpeed)
  • Verify the PHP version that actually serves web requests (phpinfo() or package manager), not only the CLI binary
  • Prioritise internet-facing servers, starting with Apache mod_php; restrict internet access to or take offline systems that cannot be updated
  • Hunt from 2026-10-17 onward for unexpected PHP-spawned sh -c children, wget/curl droppers, new files in /tmp, /dev/shm, /var/tmp and web roots, new authorized_keys, cron entries and accounts; preserve logs before remediation
  • Block IOC IPs/URLs listed for this threat at the perimeter

Workarounds

  • Set session.upload_progress.enabled=0 in php.ini/FPM pool/server config (not ini_set or .user.ini) and restart workers; keep it after patching until the next PHP bugfix release (CVE-2026-115560)
  • Set memory_limit=-1 as php_admin_value (CVE-2026-109618, partial); set a low post_max_size and reduce max_input_nesting_level
  • On PHP 8.5 set fatal_error_backtraces=0 and restart workers
  • Block multipart/form-data at the frontend if unused; deploy WAF rules (Cloudflare, ModSecurity, Suricata)
  • These are not complete fixes; PHP states no configuration change fully mitigates the flaws

Longer-term hardening

  • Enforce decoded body size, field count, multipart part count, header count and nesting depth limits at the web server/proxy, including requests without a usable Content-Length
  • Alert on PHP workers that crash or hit memory_limit and on outbound connections from PHP processes
  • Replace unsupported PHP branches (8.1 and older; 8.2 reaches EOL 2026-12-31)
  • Use container/cgroup limits (not RLIMIT_AS/RLIMIT_DATA) as a worker availability boundary

Affected and fixed versions

  • PHP Group — PHP
    Vulnerable versions: 5.4 through 8.5 (< 8.2.35, < 8.3.36, < 8.4.27, < 8.5.12); 7.4, 8.0, 8.1 (all versions, unsupported)
    Fixed in: 8.2.35; 8.3.36; 8.4.27; 8.5.12; source backports for 7.4, 8.0, 8.1
  • Ubuntu — php packages
    Vulnerable versions: php5, php7.0, php7.2, php7.4, php8.1, php8.3, php8.5 prior to fixed builds
    Fixed in: php8.1 8.1.2-1ubuntu2.28; php8.3 8.3.6-0ubuntu0.24.04.13; php8.5 8.5.4-0ubuntu1.5 (26.04); php7.4 7.4.3-4ubuntu2.29+esm5
  • Red Hat — RHEL 9 php:8.4 module
    Vulnerable versions: prior to php-8.4.27-1.module+el9.9.0+25112+f4f032cf
    Fixed in: php-8.4.27-1.module+el9.9.0+25112+f4f032cf (RHSA-2026:97880)
  • Palo Alto Networks — PAN-OS / Panorama
    Vulnerable versions: all versions (per vendor, as of 2026-10-22)

Timeline

  • Calif (Ryan Austin) discovers the php2shell bugs; Wiz independently finds one of them (per Wikipedia and Calif).
  • First bug reported to the PHP project and coordinated disclosure begins; RCE PoC shared 2026-08-14 and confirmed by PHP 2026-08-15; second bug reported 2026-08-21.
  • Amazon Threat Intelligence MadPot records an exploitation attempt from an IP tied to a commercial anonymization service, before public disclosure.
  • Details leak (Hacker News thread); PHP issues advance notice of a 2026-10-21 14:00 UTC security release rated CVSS v4.0 9.2; watchTowr confirms the flaws are real and publishes an FAQ.
  • TU Delft telescope records first PHP2Shell-like request at 08:37 UTC; watchTowr Attacker Eye and honeypots observe exploitation including OS commands, UAF forged-zval payloads and wget/curl droppers.
  • PHP releases 8.5.12, 8.4.27, 8.3.36 and 8.2.35 with advisories and GHSAs; NVD publishes both CVEs; Ubuntu and UK NCSC publish guidance; Cloudflare deploys WAF rules after reporting early attacks.
  • Akamai, Arctic Wolf and Abstract Security publish analyses; Palo Alto Networks reports all PAN-OS and Panorama versions affected with no fixed release; Searchlight Cyber releases an open-source scanner.
  • PHP publishes an informational advisory recommending session.upload_progress.enabled=0 (related issue to be published as CVE-2026-115560).
  • CISA adds CVE-2026-109618 and CVE-2026-109619 to the KEV catalog with a 2026-10-29 due date; TU Delft sees the busiest hour (8,179 requests, 14:00 UTC).
  • TU Delft reports 89,575 exploitation requests from 802 source IPs since 2026-10-21; 182 IPs sent code or droppers; NCSC-NL tracks 211 vulnerable and 218 fixed products as of 2026-11-18.

Sources cited

Showing 15 of 18 sources, primary sources first.

Other reports on CVE-2026-109618

Other reports on CVE-2026-109619

Previous and next in vulnerability

Drafted by the Threadlinqs research pipeline from 18 sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats