4 mincritical
Critical RCE vulnerabilities in PHP (CVE-2026-109618, CVE-2026-109619)
Two critical unauthenticated RCE vulnerabilities in PHP's session.upload_progress handling (CVE-2026-109618, CVE-2026-109619) have public exploits targeting major CMS platforms. Two critical use-after-free and memory corruption vulnerabilities in PHP's session.upload_progress multipart handling allow unauthenticated remote code execution. CVE-2026-109618 and CVE-2026-109619 affect PHP 5.4.0 through 8.5 with CVSS 9.2. A public PoC exploit named PHP2Shell is circulating, targeting major CMS platforms.
Sens:■ ImmediateConf:mediumAnalyzed:2026-11-05Z.ai
Authors: Kaspersky
ActorsPHP2Shell
Source:Kaspersky
Detection / HunterZ.ai
Immediate Actions
- Update PHP to patched versions released October 21, 2026
- Set session.upload_progress.enabled = Off in PHP-FPM pools
- Block multipart/form-data requests on nginx and Apache temporarily
- Isolate internet-facing PHP applications until patches are applied
Key Takeaways
- Both CVEs rated CVSS 9.2, affect PHP 5.4.0 through all 8.x branches
- Exploit requires no authentication, only network access to PHP application
- Flaws in PHP core session.upload_progress cannot be patched at application level
- Backported patches available for EOL versions 7.4, 8.0, and 8.1
- PoC demonstrated on WordPress, Magento, Joomla, Drupal, Laravel, Symfony, MediaWiki, phpBB, WHMCS
Attack Chain
- Initial Access: Unauthenticated attacker sends crafted multipart/form-data POST request to PHP web application
- Exploitation: Use-after-free or memory corruption in session.upload_progress triggers arbitrary code execution in PHP process
- Execution: PHP process spawns shell interpreter (cmd.exe on Windows, /bin/sh on Linux)
- Post-exploitation: Attacker runs recon commands (whoami) and writes proof file to tmp directory
- Persistence: Web shell may be deployed to htdocs folder for continued access
Affected Systems
- PHP 5.4.0 through 8.5 (all versions)
- WordPress deployments on affected PHP
- Magento and Joomla on affected PHP
- Drupal and Laravel on affected PHP
- Symfony, MediaWiki, phpBB, WHMCS on affected PHP
- XAMPP PHP installations (Windows and Linux)
Vulnerabilities (CVEs)
| CVE | Product | Severity | Description |
|---|---|---|---|
| CVE-2026-109618 | PHP core (session.upload_progress, multipart/form-data handling) | Critical | Use-after-free allowing unauthenticated remote code execution via crafted multipart requests. |
| CVE-2026-109619 | PHP core (session.upload_progress, multipart/form-data handling) | Critical | Memory corruption allowing unauthenticated remote code execution via crafted multipart requests. |
Detection Availability
- Published: Other detection logic
- Platforms: Kaspersky EDR (KEDR), Kaspersky Anti Targeted Attack (KATA), Kaspersky Endpoint Security / Kaspersky Next
Kaspersky proprietary detection rules available: KEDR behavioral rules, KATA network signatures, and KES behavior detection verdicts.
Detection Engineering Assessment
Hunting Hypotheses
| Hypothesis | Telemetry | Stage | FP Risk |
|---|---|---|---|
| Web server processes (php, httpd, nginx) spawning shell interpreters indicate exploitation of public-facing applications (T1190, T1059) | EDR process creation events with parent-child analysis | Execution | Low — web servers rarely spawn shells legitimately |
| HTTP POST requests with multipart boundary strings containing php2shell indicate exploit attempts against PHP applications (T1190) | Web proxy logs, NDR/IDS HTTP inspection | Initial Access | Low — boundary string is exploit-specific |
| PHP session cookies with ph2sh prefix in HTTP requests indicate PHP2Shell exploit traffic (T1190) | Web server access logs, NDR HTTP headers | Initial Access | Low — cookie prefix is exploit-specific |
| Files written by web server process to tmp or htdocs directories indicate post-exploitation web shell deployment (T1505.003) | File integrity monitoring, EDR file write events | Persistence | Medium — CMS platforms write temp files during normal operation |
Required Log Sources
- Web server access logs (POST requests)
- EDR process telemetry (parent-child)
- Network IDS/IPS alerts
- PHP-FPM error logs
- File integrity monitoring on web roots
Control Gaps
- WAF rules may not inspect multipart boundary strings for exploit signatures
- PHP applications with session.upload_progress enabled remain vulnerable until patched
- Unsupported PHP versions without backported patches have no vendor fix
- Network IDS without HTTP payload inspection misses exploit attempts
- Application-level firewalls cannot patch PHP core memory corruption flaws
Recommendations
Infrastructure Hardening
- Inventory all PHP-based systems including control panels and third-party software
- Migrate servers running PHP 8.1 and earlier to latest supported branch
- Deploy network IDS signatures for CVE-2026-109618 and CVE-2026-109619
- Monitor web server process trees for shell spawning activity
User Protection
- Deploy EDR with web server process monitoring on all PHP hosts
- Enable behavior-based detection for post-exploitation web shell activity
MITRE ATT&CK Mapping
MITRE ATT&CK Mapping4 techniques
Tactic
Initial Access
Tactic
Execution
Tactic
Persistence
Showing defanged values
- cveCVE-2026-109618Use-after-free allowing unauthenticated remote code execution via crafted multipart requests.
- cveCVE-2026-109619Memory corruption allowing unauthenticated remote code execution via crafted multipart requests.
- filenameedr_proof_win.txtProof file dropped by PHP2Shell exploit to verify RCE
- file_pathC:\php\xampp-windows-x64-8.2.12-0-VS16\xampp\tmp\edr_proof_win.txtExploit proof file written by PHP2Shell to tmp directory