PHP has patched two critical vulnerabilities, CVE-2026-109618 and CVE-2026-109619, that can allow unauthenticated remote code execution. Here are the affected versions, fixed releases and immediate remediation steps.

Two critical PHP vulnerabilities, CVE-2026-109618 and CVE-2026-109619, can allow unauthenticated remote code execution under certain conditions. The PHP project shipped emergency security releases on October 21, 2026 and is urging users to update immediately.
Search interest around terms such as “PHP vulnerability”, “critical PHP flaw” and “PHP2Shell” has surged as details of the bugs and exploitation attempts spread. But the operational takeaway is straightforward: if your infrastructure serves web requests with PHP, verify the runtime version and patch now.
The PHP project says both flaws are rated CVSS v4.0 9.2 and can enable unauthenticated remote code execution. The fixed releases are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35.
What happened with PHP2Shell?
On October 20, the PHP security team took the unusual step of warning users in advance that two critical security issues would be fixed the following day, without immediately disclosing the full technical details. Administrators were told to prepare for urgent upgrades.
On October 21, PHP published the patched releases and identified the two vulnerabilities:
CVE-2026-109618: an out-of-memory handling flaw can leave internal request data partially initialized. During cleanup, PHP may then treat invalid state as legitimate.
CVE-2026-109619: request-owned internal state can outlive the memory backing it, creating a stale-state / use-after-free condition that may be triggered by a later request handled by the same worker.
In both cases, the impact can be severe: a remote, unauthenticated attacker may be able to execute code with the privileges of the web process.
Which PHP versions are affected?
For PHP branches still maintained by the project, the fixed versions are:
PHP branch | Vulnerable versions | Fixed version |
|---|---|---|
PHP 8.5 | 8.5.11 and earlier | 8.5.12 |
PHP 8.4 | 8.4.26 and earlier | 8.4.27 |
PHP 8.3 | 8.3.35 and earlier | 8.3.36 |
PHP 8.2 | 8.2.34 and earlier | 8.2.35 |
Google Cloud states that the broader vulnerable range extends from PHP 5.4 through 8.5.11. PHP 8.1 and older branches are end-of-life upstream, so the PHP project is not publishing equivalent fixes for those releases. Some Linux distributions and commercial long-term-support providers may still backport patches.
If your environment is still on an end-of-life PHP branch, the right response is not only to hunt for a one-off patch. You should also plan a move to a supported branch.
Who is exposed: PHP-FPM, mod_php, php-cgi, FrankenPHP and LiteSpeed?
PHP’s advisory says all PHP installations serving web requests should be considered at risk, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed.
PHP considers the risk especially high for Apache mod_php, where an unauthenticated exploit path has been demonstrated before application code runs. That means an application can be vulnerable even if its framework, CMS or plugin layer is fully patched.
Are the PHP2Shell vulnerabilities being exploited?
This is the part that requires the most careful wording.
Multiple security organizations have reported real-world exploitation attempts and scanning activity. Amazon Threat Intelligence said it detected attempts as early as October 17, 2026, several days before the public fixes. Other security researchers have also reported scanning and attempted exploitation after disclosure.
That does not mean every observed request resulted in a successful compromise. What matters for defenders is that these are no longer purely theoretical bugs: exploit research is public, proof-of-concept material exists, and internet-facing PHP systems are being probed.
Why these PHP vulnerabilities are especially serious
The severity comes from both the impact and the layer being affected.
These bugs sit deep in the PHP runtime itself: memory management, request processing and worker state. An application can therefore be exposed without a vulnerable business route, WordPress plugin or application dependency being involved.
That is also why application-level controls are not enough. PHP explicitly says there are no complete mitigations that can replace installing the patched releases.
What should teams do now?
The remediation priorities are short and concrete:
Inventory the PHP versions actually running across servers, containers and build images.
Update immediately to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, depending on your branch.
Rebuild and redeploy containers that embed a vulnerable PHP runtime instead of only restarting workloads.
Check forgotten environments: staging, old subdomains, admin tools, internal panels and secondary services.
Review logs and compromise indicators if the service was internet-facing before patching.
Move off end-of-life PHP branches when no reliable vendor backport exists.
The UK National Cyber Security Centre is also urging organizations to act immediately and says systems that cannot be remediated quickly should be evaluated for temporary removal from public exposure.
Are WordPress, Drupal or Laravel directly vulnerable?
The vulnerabilities are not in WordPress, Drupal, Laravel or any particular plugin. They are in PHP itself.
A site built with one of those platforms can still be exposed if it runs on a vulnerable PHP version and configuration. Updating the CMS or framework alone does not replace updating the PHP runtime.
What this means for modern infrastructure teams
The PHP2Shell disclosure is a useful reminder that modern stacks remain only as secure as the infrastructure layers beneath the application. Containers, runtimes, reverse proxies, operating-system packages, hosting panels and embedded services can all introduce material risk even when application code itself is clean.
The same principle applies to AI and agentic systems. Strong model permissions, observability or agent isolation do not cancel out a critical flaw in a network-exposed dependency. Security still starts with accurate asset inventory, dependency visibility and the ability to patch quickly.
PHP2Shell: what to remember
Two critical vulnerabilities: CVE-2026-109618 and CVE-2026-109619.
Severity: CVSS v4.0 9.2.
Impact: possible unauthenticated remote code execution.
Patched releases: PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35.
Internet-facing PHP installations are at risk, with particularly high exposure for mod_php.
Real-world exploitation attempts have been reported.
PHP says no complete mitigation replaces patching.
If your infrastructure runs PHP, the priority is not to debate whether your application “looks exploitable.” First identify the runtime version and move to the patched release for your branch.
Frequently asked questions
What is PHP2Shell?
PHP2Shell is the name used for two critical PHP runtime vulnerabilities, CVE-2026-109618 and CVE-2026-109619, that can allow unauthenticated remote code execution under certain conditions.
Which PHP versions fix the October 2026 vulnerabilities?
The PHP project fixed the vulnerabilities in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35.
Is WordPress affected by PHP2Shell?
The flaw is in PHP rather than WordPress itself. A WordPress site can still be exposed if it runs on a vulnerable PHP version.
Are PHP2Shell attacks happening in the wild?
Security organizations have reported scanning and exploitation attempts targeting the vulnerabilities, but not every observed attempt should be treated as a successful compromise.
Can PHP2Shell be mitigated without updating PHP?
PHP says there are no complete mitigations that replace patching. Upgrading to a fixed version remains the primary remediation step.





















