Two critical security vulnerabilities affecting PHP have prompted urgent warnings from cybersecurity agencies, with website operators being urged to update their servers immediately. The flaws, tracked as CVE-2026-109618 and CVE-2026-109619, could allow unauthenticated attackers to execute malicious code remotely on vulnerable systems, potentially exposing sensitive data, application files and connected databases.
Disclosed on 21 October 2026, the vulnerabilities have been assigned a Common Vulnerability Scoring System (CVSS) score of 9.2 out of 10, placing them in the critical severity category. Security researchers and cybersecurity agencies have warned that the flaws affect the PHP runtime itself, meaning the risk extends beyond individual websites or applications.
Collectively referred to as PHP2Shell in security reporting, the vulnerabilities have triggered an urgent response from the PHP development team, government cybersecurity agencies and technology companies. Security updates have been released for supported PHP branches, while reports of attempted exploitation before the patches became available have raised further concerns about the urgency of remediation.

What is PHP2Shell and why is it dangerous?
PHP, short for PHP: Hypertext Preprocessor, is one of the most widely used server-side programming languages on the internet. It powers dynamic websites, content management systems, online stores, forums and various web applications.
Popular platforms such as WordPress rely on PHP to process requests, interact with databases and generate dynamic content. Many other applications and services also use PHP behind the scenes, including software that website owners may not immediately recognise as having a PHP dependency.
The danger posed by PHP2Shell is that the vulnerabilities exist within PHP’s underlying runtime rather than in a specific application or plugin.
According to the UK National Cyber Security Centre, successful exploitation could allow an attacker to execute commands on an affected web server without first authenticating to the application. Depending on the server’s permissions and configuration, this could provide a route to reading or modifying files, accessing sensitive information or compromising the application environment.
The vulnerabilities affect PHP installations serving web requests, including PHP-FPM, Apache’s mod_php, php-cgi, FrankenPHP and LiteSpeed deployments.
This is particularly concerning because PHP is frequently deployed as part of a larger web hosting stack. A server might host a WordPress website, an e-commerce platform or a custom-built application, but the underlying PHP runtime is a shared component that can affect all of them.
Consequently, updating a website’s plugins or themes alone will not resolve the problem. The PHP runtime itself must be patched.
Two vulnerabilities with different attack paths

Although the two vulnerabilities can lead to remote code execution, they involve different memory-management problems within PHP.
CVE-2026-109618: Memory corruption during out-of-memory handling
The first vulnerability involves how PHP handles out-of-memory conditions.
PHP uses a configurable memory limit to prevent individual requests from consuming excessive resources. When a request exceeds that limit, PHP can interrupt execution and begin error handling and cleanup.
The problem arises when this interruption occurs while PHP is still processing a request and some of its internal data structures have not been fully initialised.
During cleanup, PHP may incorrectly treat these incomplete structures as valid and attempt to release memory that was never properly initialised. Under certain conditions, that memory may contain data left over from earlier allocations, including information influenced by an attacker.
This creates an opportunity for memory corruption, which could potentially be leveraged to execute arbitrary code.
The vulnerability is particularly concerning because the failure occurs within PHP’s internal request-processing and cleanup mechanisms. It is not necessarily dependent on a mistake in the website’s own PHP code.
CVE-2026-109619: Stale internal state and use-after-free
The second vulnerability concerns a different class of memory-management error known as a use-after-free.
This happens when software continues to reference memory after that memory has already been released. If the memory is subsequently reused for another purpose, accessing the stale reference can result in unpredictable behaviour or memory corruption.
In this case, internal state associated with a PHP request can remain referenced after its underlying memory has been freed. A later request handled by the same worker may encounter that stale state before normal initialisation resets it.
Under suitable conditions, an attacker could exploit this behaviour to corrupt memory and potentially achieve remote code execution.
The important distinction is that the second flaw involves stale request-related state persisting beyond its intended lifetime, while the first concerns memory corruption triggered during out-of-memory handling.
Both vulnerabilities demonstrate how errors in low-level memory management can have consequences far beyond application crashes.
The technical details of both vulnerabilities are documented in the official PHP security announcements and the Google Cloud security analysis.
Which PHP versions are affected?
According to the security information published by Google Cloud and the PHP security team, the vulnerabilities affect PHP versions from 5.4 through 8.5.11.
Security updates have been released for the following branches:
| PHP branch | Fixed version |
|---|---|
| PHP 8.5 | 8.5.12 |
| PHP 8.4 | 8.4.27 |
| PHP 8.3 | 8.3.36 |
| PHP 8.2 | 8.2.35 |
Administrators should update to the appropriate fixed release for their PHP branch or a newer security release when available.
Older branches, including PHP 8.1 and earlier, have reached end of life and do not receive fixes through the normal PHP release process. Some operating system vendors and long-term support providers may supply backported security patches, so administrators should verify the status of their specific packages rather than assume that every installation can be fixed by installing a newer upstream version.
For systems running unsupported PHP versions without a security patch, upgrading to a supported branch should be a priority.
The latest information and official release packages are available through the PHP website.
Were attackers already exploiting the vulnerabilities?

One of the most concerning developments is the reporting that exploitation attempts may have started before the official patches were released.
According to reporting by The Verge, Amazon Threat Intelligence detected a PHP2Shell exploit attempt on 17 October 2026 through a honeypot designed to attract malicious activity. Additional attempts were reportedly observed on 21 October, shortly before the security updates became available.
The timing raises questions about whether information concerning the vulnerabilities had reached potential attackers before the coordinated disclosure.
However, the distinction between attempted exploitation and a successful compromise is important. The PHP Foundation’s executive director told The Verge that, to its knowledge at the time, there had been no successful attempt at remote code execution.
The available reports therefore establish that exploit attempts were detected, but they do not establish that these particular attempts successfully compromised vulnerable servers.
Nevertheless, the existence of public technical information and proof-of-concept exploits increases the urgency for administrators to patch their systems. Once a vulnerability becomes publicly documented, attackers can study the affected code and develop ways to exploit installations that remain unpatched.
For more details, see The Verge’s reporting on the pre-patch exploitation attempts.
Why did it take so long to fix the problem?
The incident has also raised questions about the process used to handle complex security vulnerabilities in open-source software.
According to Reuters, the PHP Foundation acknowledged that a researcher had identified early signs of one of the underlying issues in 2024. At the time, the problem was considered theoretical because researchers had not identified a concrete attack path, while other vulnerabilities with clearer impacts were prioritised.
The Foundation subsequently described the delay as a structural failure and said it intended to improve the way serious vulnerabilities are escalated and resolved.
Part of the difficulty reportedly involved the potential consequences of the fix itself. Changes to PHP’s internal memory handling could introduce backward-compatibility problems, create new denial-of-service risks or require coordinated changes to third-party extensions.
These are legitimate engineering concerns. PHP supports a large ecosystem of applications and extensions, and a security fix that breaks widely used software can create operational problems for developers and administrators.
However, the incident illustrates the difficult balance between maintaining compatibility and addressing vulnerabilities that may affect millions of deployments.
Security flaws in foundational software components are especially challenging because the impact can extend across multiple applications, hosting providers and operating systems. The longer a serious flaw remains unresolved, the greater the potential consequences if a practical exploitation method emerges.
More information is available in Reuters’ report on the PHP security updates.
What should website owners and server administrators do?
The most important action is to identify affected PHP installations and apply the appropriate security updates as soon as possible.
Administrators should not assume that a website is safe simply because its content management system, plugins and themes are up to date. The PHP runtime may be managed separately by a hosting provider, operating system package manager, container image or server administrator.
The UK National Cyber Security Centre recommends identifying PHP installations across an organisation’s infrastructure, prioritising internet-facing systems and updating to fixed versions. If immediate patching is not possible, organisations should consider temporary mitigations or isolating affected systems from public networks until they can be secured.
For website owners using managed hosting, the practical steps are relatively straightforward:
- Contact the hosting provider to confirm whether the server’s PHP runtime has been patched.
- Check the PHP version used by the website, including separate environments used for staging or background processing.
- Update self-managed PHP installations to an appropriate fixed release.
- Review server and application logs for suspicious activity, particularly if the system was exposed before patching.
- Investigate potential compromise rather than assuming that applying a patch automatically removes any malicious changes made earlier.
- Check third-party software and appliances that bundle PHP, as their updates may be distributed separately.
For organisations operating large server fleets, remediation should include container images, deployment pipelines, internal applications and other services that may not be immediately visible in a conventional website inventory.
The PHP security team has also described temporary mitigations for specific attack paths. However, these should not be treated as substitutes for a proper security update. Configuration changes may reduce exposure without addressing every possible exploitation route.
For detailed guidance, consult the official PHP security announcements and the UK NCSC advisory.
What does this mean for WordPress users?
WordPress users may be particularly interested in this incident because WordPress depends on PHP and is widely deployed across shared hosting environments.
However, PHP2Shell is not a WordPress-specific vulnerability. A website running WordPress, another content management system or a custom PHP application may be exposed if its underlying runtime remains vulnerable.
Updating WordPress itself does not necessarily update the server’s PHP version. On managed hosting, PHP upgrades are generally handled through the provider’s control panel or infrastructure management process. Self-hosted installations may require administrators to update PHP through their operating system or deployment tooling.
Website owners should therefore confirm the actual runtime version instead of relying solely on the version information displayed by their CMS.
It is also worth remembering that a successful server compromise can have consequences beyond the website’s visible content. Depending on the permissions available to the attacker, sensitive configuration files, application credentials and database access may also be at risk.
For businesses that process customer information or operate online stores, the potential impact makes timely remediation particularly important.
The wider implications for internet security
PHP2Shell highlights the risks associated with vulnerabilities in widely deployed software components.
Modern websites are built on layers of infrastructure, including operating systems, web servers, scripting runtimes, databases, frameworks and application code. A vulnerability in one of these shared components can affect a large number of services, even when individual applications have been developed and maintained correctly.
This is also why security updates need to be treated as an ongoing operational responsibility rather than an occasional maintenance task. Software inventories, timely patching, access controls, monitoring and incident response procedures all help reduce the potential impact of vulnerabilities.
The incident also demonstrates why unsupported software presents a continuing challenge. Older PHP installations may remain operational for years because applications depend on legacy extensions or behaviours. When a critical flaw affects these versions, administrators may have fewer straightforward remediation options.
Organisations running legacy PHP applications should therefore treat this incident as a reason to review their longer-term upgrade plans, rather than relying indefinitely on an unsupported runtime.
Verdict
PHP2Shell is a serious security incident because it affects PHP’s core runtime and could allow unauthenticated remote code execution under vulnerable configurations. The availability of security updates, reports of attempted exploitation before the patches were released and the broad deployment of PHP make this an issue that website owners and administrators should address promptly.
The immediate priority is to identify affected installations and install the appropriate security updates. Where a system cannot be patched immediately, administrators should follow vendor guidance on temporary mitigation and isolation, while investigating whether any compromise may already have occurred.
For ordinary website visitors, there is no reason to assume that every PHP-powered website has been compromised. The risk depends on the underlying deployment and whether the vulnerable runtime remains exposed.
For website operators, however, this is not a vulnerability that should be left until the next routine maintenance window. PHP2Shell is a reminder that even widely used and mature software can contain low-level flaws with potentially serious consequences, and that responding quickly to security updates remains essential to keeping internet-facing services safe.
Sources: (1, 2, 3, 4, 5, 6, 7)








