Uptycs Threat Bulletins | Cloud Security Insights for Linux and Containers

CVE-2026-109618: PHP2Shell unauthenticated RCE in the PHP runtime (with CVE-2026-109619)

Written by Uptycs Threat Research | Oct 21, 2026, 4:00:00 PM

Severity: Critical (CVSS 9.2) · Exploitation: Actively exploited · Fix available: Yes

Summary

PHP2Shell is a pair of critical, unauthenticated remote code execution vulnerabilities in the core PHP runtime, CVE-2026-109618 and CVE-2026-109619, both rated CVSS 9.2. They come from memory-management and error-handling bugs that trigger use-after-free conditions when a script forces an out-of-memory error. A remote attacker can bypass application code entirely, leak live server memory and execute shell commands as the web server worker. PHP shipped emergency releases on 21 October 2026, and in-the-wild attacks targeting PHP2Shell were reported after that date.

Technical details

When a script is pushed into an out-of-memory error, PHP's error handling frees memory that is still referenced, creating a use-after-free in the runtime itself. Because the bug is in the engine rather than in application code, any PHP application on an affected build can be reachable. PHP's advisory for CVE-2026-109619 lists disabling session upload progress (session.upload_progress.enabled=0) as a mitigation.

Affected products

  • PHP before the 21 October 2026 emergency releases — fixed in 8.5.12, 8.4.27, 8.3.36 and 8.2.35
  • Distribution packages: Ubuntu 22.04 php8.1 before 8.1.2-1ubuntu2.28, Ubuntu 24.04 php8.3 before 8.3.6-0ubuntu0.24.04.13, Ubuntu 26.04 php8.5 before 8.5.4-0ubuntu1.5, Ubuntu 26.10 php8.5 before 8.5.9-0ubuntu2.1, Debian 13 php8.4 before 8.4.27-1~deb13u1

Impact

  • Remote code execution. Shell commands run as the web server worker without authentication.
  • Memory disclosure. Live server memory, including secrets, can be leaked.
  • Application controls bypassed. The attack does not depend on application logic.
  • Very wide reach. PHP powers a large share of web applications.

Exploitation status

In-the-wild attacks targeting the two PHP2Shell flaws were reported after the 21 October emergency releases. Patch internet-facing PHP servers immediately.

Recommended actions

  1. Upgrade PHP to 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or install your distribution's fixed packages listed above.
  2. Restart PHP-FPM, Apache or other PHP hosts so the patched runtime is loaded.
  3. Until patched, set session.upload_progress.enabled=0 across all ini layers for the web SAPI.
  4. Review web server logs and hosts for unexpected processes spawned by PHP workers.

How Uptycs helps

Uptycs vulnerability management identifies hosts, containers and cloud workloads running affected PHP versions so teams can prioritize patching. Uptycs Threat Research continues to monitor these vulnerabilities and will update this bulletin if exploitation activity changes.

References