Two critical PHP vulnerabilities could expose web servers to cyberattacks. Known collectively as PHP2Shell, the flaws may allow unauthenticated attackers to execute code on affected systems, potentially exposing sensitive data and disrupting business services.
A Censys snapshot dated October 22, 2026, identified around 36.7 million internet-facing services reporting potentially affected PHP versions. The figure counts services, not unique servers or organisations, and may include systems already patched through vendor updates.
PHP powers widely used platforms such as WordPress, Drupal, Joomla and Magento. Businesses may also use it through hosting providers and third-party applications, making it difficult to identify every vulnerable deployment.
PHP2Shell Security Risk And Patch Guidance
Aamir Lakhani, Global Director of Threat Intelligence and Adversarial Artificial Intelligence Research at Fortinet, highlighted the need for organisations to reduce exposure while testing and deploying PHP security updates.
FortiGuard Labs recommends using virtual patching and other interim security measures to help block exploitation attempts while organisations prepare permanent fixes. Virtual patching can identify and block known attack techniques at the network level without requiring immediate changes to application code.
Organisations should identify affected PHP versions, check their patch status and prioritise services exposed to the internet. Security teams should test updates against application dependencies before deployment and restart or replace affected PHP workers and containers. They must also verify that the patched runtime is active.
Other recommended measures include enabling intrusion prevention systems (IPS), deploying web application firewall protections and restricting public access to vulnerable services. Businesses can also place affected systems behind a VPN or secure access service edge (SASE) where appropriate.
Security teams should review suspicious web requests, unexpected process execution, modified application files and unusual outbound connections for signs of compromise. Organisations should install the relevant security updates as soon as possible and maintain interim protections until they confirm that all affected services are patched.










































