// AI threat desk · 22 Oct 2026
Home/CVE · Vulns & Patches
Vulns & PatchesCriticalRCECVSS 10.0 / 9.2

PHP emergency patches fix PHP2Shell flaws that could run code

PHP fixed two critical PHP2Shell flaws that could let unauthenticated attackers run code on web servers. watchTowr published details on Oct 21, 2026.

AI-generated image of security analysts monitoring web servers and vulnerability alerts in a dim operations centre.
AI-generated image, not a photo of the event.
Key takeaways
  • PHP2Shell covers CVE-2026-109618 and CVE-2026-109619, two critical remote-code-execution flaws.
  • PHP rated both vulnerabilities 9.2 under CVSS v4.0, while an online leak claimed a CVSS 10.0 score that PHP did not assign.
  • The affected PHP releases serve web requests, including through PHP-FPM, Apache mod_php, php-cgi, FrankenPHP and LiteSpeed.

PHP released emergency updates on Oct 21, 2026, for two critical remote-code-execution flaws tracked as PHP2Shell: CVE-2026-109618 and CVE-2026-109619. PHP rated each vulnerability 9.2 under CVSS v4.0.

The affected systems include PHP installations that serve web requests, including PHP-FPM, Apache mod_php, php-cgi, FrankenPHP and LiteSpeed. PHP said an attacker without an account could run code on a web server, while SecurityWeek said the flaws could also expose process memory containing credentials, API keys and other secrets.

PHP is a general-purpose scripting language geared toward web development. SecurityWeek said remote code execution was confirmed for both vulnerabilities on Apache with mod_php, and that the flaws affect nearly all PHP releases back to PHP 5.4.

On this page

PHP2Shell includes OOM corruption and stale global state

SecurityWeek identified CVE-2026-109618 as out-of-memory corruption and CVE-2026-109619 as stale global state. PHP described the pair as memory-safety bugs.

watchTowr said successful exploitation requires no account or prior access because “Reaching the server over the network is enough; no account or prior access is needed.”

PHP workers must restart after the update

PHP’s advisory said updating to a release containing the patch is the only complete mitigation for the out-of-memory flaw. For the stale-global-state flaw, PHP said updating is the only reliable mitigation.

watchTowr said administrators should restart every PHP worker after installing the update so the fix takes effect across the environment.

The Hacker News said the flaws were found by Wiz Research, Calif and OpenAI’s Codex Security team.

PHP said the fixes are included in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Its security team had announced the planned release on Oct 20, 2026, without naming the CVE identifiers.

What to do now

  1. Do not use RLIMIT_AS or RLIMIT_DATA, as these will cause mmap() to fail once the memory limit is reached, triggering the vulnerable longjmp() path.

FAQ

What are the PHP2Shell vulnerabilities?

PHP said PHP2Shell covers CVE-2026-109618 and CVE-2026-109619, two critical remote-code-execution flaws in PHP.

Which PHP versions are affected by PHP2Shell?

SecurityWeek said the flaws affect nearly all PHP releases back to PHP 5.4, and PHP said installations that serve web requests are at risk.

Can PHP2Shell attackers run code without an account?

PHP said the flaws let an attacker without an account run code on a web server. watchTowr said reaching the server over the network is enough and no prior access is needed.

Why is PHP2Shell risk highest on Apache mod_php?

PHP said the risk is highest for sites running Apache with mod_php. SecurityWeek said remote code execution was confirmed for both vulnerabilities on Apache with mod_php.

What is CVE-2026-109618?

SecurityWeek identified CVE-2026-109618 as an out-of-memory corruption flaw.

Sources

  1. RCE via OOM corruption, GitHubPrimary
  2. RCE via stale global state, GitHubPrimary
  3. CVE-2026-109619: PHP Remote Code Execution Exploited, watchTowrPrimary
  4. PHP Issues Emergency Patches for Two Critical PHP2Shell RCE Flaws as Exploit Attempts Emerge, The Hacker News
  5. PHP2Shell Patches Land as First Exploitation Attempts Hit Sensors, SecurityWeek
  6. PHP ships emergency patches for critical PHP2Shell flaws, BleepingComputer
  7. PHP2Shell: The Emergency PHP Patch Is Out, and the Real Race Starts Now, Techaeris
  8. PHP rushes out emergency patches for two critical bugs AI found first, The Next Web
  9. Critical security flaw puts most websites at risk as NSA issues warning, Milwaukee Journal Sentinel
  10. PHP, Wikipedia
How we checked this story
ClaimSourceStatus
PHP released emergency updates fixing two critical flaws that allow unauthenticated attackers to run code on web servers.PHP, via The Hacker NewsAttributed
The fixes are included in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35.PHP, via The Hacker NewsAttributed
The vulnerabilities affect PHP installations that serve web requests, including PHP-FPM, Apache mod_php, php-cgi, FrankenPHP and LiteSpeed.PHP, via The Hacker NewsAttributed
SecurityWeek reported that both vulnerabilities have confirmed remote code execution on Apache with mod_php.SecurityWeekAttributed
SecurityWeek said the PHP2Shell flaws affect nearly all PHP releases back to PHP 5.4.SecurityWeekAttributed
SecurityWeek said the vulnerabilities can also read sensitive process memory containing credentials, API keys and other secrets.SecurityWeekAttributed
PHP released emergency patches for two critical remote-code-execution vulnerabilities collectively tracked as PHP2Shell.PHP, via BleepingComputerAttributed
PHP said updating was the only safe choice and that the risk was highest for Apache mod_php.PHP, via The Next WebAttributed
watchTowr said successful exploitation requires no account or prior access because reaching the server over the network is enough.watchTowrAttributed
PHP’s OOM advisory says updating to a release containing the patch is the only complete mitigation.PHP, via GitHubConfirmed
PHP’s stale-global-state advisory says updating is the only reliable mitigation.PHP, via GitHubConfirmed
watchTowr said administrators should restart every PHP worker after installing the update.watchTowrAttributed
PHP is a general-purpose scripting language geared toward web development.WikipediaConfirmed
Milwaukee Journal Sentinel said the vulnerability could let attackers take control of or disrupt websites and access sensitive user information.Milwaukee Journal SentinelAttributed
The leak’s claim that the flaws had a CVSS 10.0 score was not PHP’s; PHP rates both flaws 9.2.PHP, via The Hacker NewsAttributed
SecurityWeek identified CVE-2026-109618 as OOM corruption and CVE-2026-109619 as stale global state; both have a CVSS score of 9.2.SecurityWeekAttributed
PHP’s advisory rates each flaw 9.2 under CVSS v4.0, while watchTowr’s chief executive and some early reports called them CVSS 10.0.PHP, via TechaerisAttributed
Techaeris said pHP2Shell covers CVE-2026-109618 and CVE-2026-109619, both remote code execution flaws rated CVSS v4.0 9.2.TechaerisAttributed
The patched PHP releases fix two memory-safety bugs tracked as CVE-2026-109618 and CVE-2026-109619, each rated 9.2 on the CVSS v4 scale.PHP, via The Next WebAttributed
PHP announced a security release for 21 October 2026 at 14:00 UTC covering two critical vulnerabilities, each rated CVSS v4.0 9.2.PHPAttributed
watchtowr.com published its report on Oct 21, 2026.watchtowr.comConfirmed

Could not verify

  • Whether a specific server was successfully compromised is not established.
  • How many installations were affected is not established.
  • Whether the reported exploitation attempts resulted in code execution is not established.
  • Whether the two vulnerabilities were exploited by the same actors is not established.
Explore with AI