Skip to content
.ca
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

Indicators of Compromise4
2cve1filename1file path
Improve this report

Send corrections, useful missing information, or quality feedback. It is private and will not appear as a comment.

Feedback type

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

  1. Initial Access: Unauthenticated attacker sends crafted multipart/form-data POST request to PHP web application
  2. Exploitation: Use-after-free or memory corruption in session.upload_progress triggers arbitrary code execution in PHP process
  3. Execution: PHP process spawns shell interpreter (cmd.exe on Windows, /bin/sh on Linux)
  4. Post-exploitation: Attacker runs recon commands (whoami) and writes proof file to tmp directory
  5. 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)

copy:
CVEProductSeverityDescription
CVE-2026-109618PHP core (session.upload_progress, multipart/form-data handling)CriticalUse-after-free allowing unauthenticated remote code execution via crafted multipart requests.
CVE-2026-109619PHP core (session.upload_progress, multipart/form-data handling)CriticalMemory 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

copy:
HypothesisTelemetryStageFP 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 analysisExecutionLow — 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 inspectionInitial AccessLow — 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 headersInitial AccessLow — 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 eventsPersistenceMedium — 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
IOCs · 4
.txt.json
Showing defanged values