Universal Surface Area
PHP powers over 77% of all websites with a known server-side programming language, including WordPress, WooCommerce, Drupal, Joomla, Magento/Adobe Commerce, Shopware, Nextcloud, and cPanel.
CVE-2026-109618 represents one of the most dangerous vulnerabilities disclosed in the history of the web runtime stack. Affecting all PHP versions from PHP 5.4.0 through PHP 8.4, the vulnerability resides in the core C implementation of the PHP request parsing engineโspecifically within the handler responsible for processing incoming multipart/form-data request bodies (RFC 1867).
Crucially, PHP processes multipart request bodies before any user-space application code, framework logic, or in-application Web Application Firewall (WAF) can execute. An unauthenticated attacker sending a single specially crafted HTTP POST request over standard HTTP/HTTPS ports (80, 443) can trigger a Use-After-Free (UAF) condition in the Zend Engine memory allocator, hijack control flow, and achieve arbitrary remote code execution with the permissions of the web server worker process (www-data, apache, nginx, or SYSTEM).
graph TD Attacker([Adversary / Automated Botnet]) -->|HTTP POST with Malformed multipart/form-data| EdgeServer[Web Server: Nginx / Apache / IIS] EdgeServer -->|Forward to SAPI / FastCGI| PHPRuntime[PHP Core Engine: php-fpm / mod_php]
subgraph "PHP Core Pre-Execution Phase" PHPRuntime -->|Early Request Ingestion| MultipartParser[RFC 1867 Multipart Parser] MultipartParser -->|Boundary Chunk Desync| ZendAllocator[Zend Memory Manager / emalloc] ZendAllocator -->|UAF Dangling Pointer Dereference| HeapCorruption[Control Flow Hijacking] end
HeapCorruption -->|Arbitrary Code Execution| WebShellSpawn[Spawn Reverse Shell / Implant]
subgraph "Application Layer (Never Reached)" AppFramework[WordPress / Drupal / Magento / Laravel] AppWAF[Application WAF / Plugin Filters] end
classDef danger fill:#fee2e2,stroke:#ef4444,stroke-width:2px; classDef bypass fill:#fef3c7,stroke:#f59e0b,stroke-width:2px; class MultipartParser,ZendAllocator,HeapCorruption,WebShellSpawn danger; class AppFramework,AppWAF bypass;Coordinated research by Wiz Research, Calif (Patch the Planet / OpenAI), and The PHP Foundation established that CVE-2026-109618 unifies two devastating exploitation primitives in the low-level SAPI layer:
BG(unserialize))When an incoming multipart/form-data request is received, PHP parses MIME boundaries in main/rfc1867.c.
session.upload_progress.enabled = 1), PHP deserializes session state during early request bootstrapping.BG(unserialize).zend_mm_shutdown().BG(unserialize) remains pointing to freed memory.This primitive enables remote unauthenticated extraction of live process memory without code execution:
PS(id).PS(id) pointing to freed memory.zend_string and URL-encodes reclaimed heap contents into the Set-Cookie: PHPSESSID=... response header.session_start().Ground-truth threat telemetry confirms widespread weaponization:
The upstream patch engineered by the PHP Security Team replaces unsafe graceful cleanup with a robust dual-boundary memory control model:
_exit(137). This deliberately avoids calling zend_mm_shutdown(), preventing attackers from exploiting uninitialized or freed request pointers.AWS WAF released static version 2.3 of the PHP application managed rule group:
{ "Name": "AWSManagedRulesPHPRuleSet", "Version": "2.3", "Rule": "PHP2Shell_BODY", "Action": "Block"}Inspects request bodies for oversized, malformed multipart boundaries designed to induce out-of-memory states.
Signature ID: 10009977 - PHP.Core.Multipart.Parser.Memory.Corruption.RCESignature ID: 10009978 - PHP.Zend.Engine.BG.Unserialize.Use.After.FreeSeverity: Critical | Action: Drop Session & Quarantine Source IP# Monitor PHP-FPM pool logs for hard limit terminations (exit code 137 or SIGSEGV)grep -E "(child exited with code 137|child exited on signal 11 \(SIGSEGV\))" /var/log/php*-fpm.logUniversal Surface Area
PHP powers over 77% of all websites with a known server-side programming language, including WordPress, WooCommerce, Drupal, Joomla, Magento/Adobe Commerce, Shopware, Nextcloud, and cPanel.
Zero-Click Pre-Authentication
No login credentials, session cookies, or valid accounts are required. Any open endpoint that accepts HTTP POST requests is instantly exploitable.
Exploit Weaponization Leak
The leak of the offensive PHP2Shell utility by Calif.IO and verification by labs like watchTowr means threat actors and botnet operators already have functional primitives.
Orphaned EOL Installs
Only actively supported branches (PHP 8.2, 8.3, 8.4) will receive official patches. Millions of legacy systems on PHP 5.x, 7.x, 8.0, and 8.1 will remain vulnerable indefinitely without backports.
Because official patches are scheduled for deployment on Wednesday, October 21, 2026, security administrators must implement immediate infrastructure-level defenses.
Reject all requests containing multipart/form-data before they ever reach the PHP runtime.
# Add inside every server {} block that routes to PHPif ($http_content_type ~* "multipart/form-data") { return 403;}Run nginx -t && systemctl reload nginx immediately.
<IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP:Content-Type} multipart/form-data [NC] RewriteRule ^ - [F]</IfModule>Reload Apache immediately (systemctl reload apache2 or httpd).
If your application can tolerate browsing without state modifications, reject all HTTP methods except GET and HEAD:
if ($request_method !~ ^(GET|HEAD)$) { return 503;}Disable upload progress tracking and enforce strict session modes across all PHP-FPM pools:
; In php.ini or drop-in conf.d/99-emergency.inisession.upload_progress.enabled = 0session.use_strict_mode = 1In PHP-FPM pool configs (/etc/php/*/fpm/pool.d/www.conf):
php_admin_flag[session.upload_progress.enabled] = offphp_admin_flag[session.use_strict_mode] = onMonitor PHP worker processes (php-fpm, php-cgi, apache2, httpd) for suspicious child process generation:
title: Suspicious Child Process Spawned by PHP Runtime (PHP2Shell)id: c5d8e2a1-7b94-4321-9988-112233445566status: criticaldescription: Detects interactive shells, script interpreters, or download utilities spawned by PHP workers following CVE-2026-109618 exploitation.logsource: category: process_creation product: linuxdetection: selection_parent: ParentImage|endswith: - '/php-fpm' - '/php-fpm8.2' - '/php-fpm8.3' - '/php-fpm8.4' - '/php-cgi' - '/apache2' - '/httpd' - '/nginx' selection_child: Image|endswith: - '/sh' - '/bash' - '/dash' - '/zsh' - '/python' - '/python3' - '/perl' - '/curl' - '/wget' - '/nc' - '/ncat' - '/netcat' - '/busybox' condition: selection_parent and selection_childfalsepositives: - Legitimate administrative cron scripts or video encoding tools invoked directly via proc_open() in specific applications.level: criticaltags: - attack.initial_access - attack.t1190 - attack.execution - attack.t1059.004# Monitor abnormal executions spawned by www-data in auditdauditctl -a always,exit -F arch=b64 -S execve -F uid=www-data -k php_child_executionrule PHP2Shell_Dropped_Webshell_Or_Implant { meta: description = "Detects obfuscated PHP webshells and secondary droppers deployed via CVE-2026-109618 exploitation" author = "Hermes Threat Intelligence" date = "2026-10-24" severity = "CRITICAL" reference = "CVE-2026-109618" strings: $php_tag = "<?php" ascii $eval = "eval(" ascii $b64 = "base64_decode(" ascii $sys = "system(" ascii $passthru = "passthru(" ascii $sh = "/bin/sh" ascii $bash = "/bin/bash" ascii $proc = "proc_open" ascii condition: filesize < 2MB and $php_tag and (($eval and $b64) or ($sys and ($sh or $bash)) or ($passthru and $b64) or ($proc and $sh))}| Indicator Type | Observable / Indicator | Role / Attribution | First Observed | Status | Source |
|---|---|---|---|---|---|
| IPv4 Address | 92.118.112[.]100 | Exploit staging & automated probe delivery | 2026-10-17 | ACTIVE | Amazon MadPot |
| IPv4:Port | 45.115.26[.]26:8000 | Secondary payload staging server | 2026-10-21 | ACTIVE | Arctic Wolf CTI |
| IPv4 Address | 45.198.224[.]169 | Reverse shell listener / C2 ingress | 2026-10-22 | ACTIVE | Arctic Wolf CTI |
| Subnet Range | 5.175.189[.]0/24 | Potassium botnet distributed scan node cluster | 2026-10-22 | ACTIVE | watchTowr Labs |
| File SHA-256 | e2529d4afa39ae4db2eb05d5176317c906289abf09660c75bdeec43e54c55aa3 | Secondary stage reverse shell dropper | 2026-10-22 | ACTIVE | watchTowr Labs |
| File SHA-256 | 0c5486f06620e26e316f4b33f318b0d646d5e1133789331aa2fed012360d1486 | Obfuscated PHP webshell implant (.sess_...) | 2026-10-22 | ACTIVE | Cyfirma CTI |
Allowed memory size of ... bytes exhausted (tried to allocate ... bytes) immediately preceding worker segfaults or restarts.www-data, apache, nobody) performing immediate outbound TCP connections to unassigned ports (e.g., 8000, 4444, 1337) or invoking child shell processes.Software platform affected by security vulnerabilities and agentic attack patterns.
“Confirmed security vulnerability in Fortinet FortiOS Gateway documented in Hermes dossier.”