top of page

PHP2Shell: What Should You Do?

Writer: Ben Card
Ben Card
4 days ago
5 min read

Learn more about the critical PHP flaws affecting most of the web, and what steps you need to take.


computer running code html, php, js, css,

What Happened

On October 21, the PHP project released emergency updates for two critical flaws, CVE-2026-109618 and CVE-2026-109619, now known collectively as PHP2Shell. Both allow an unauthenticated attacker to run code on a web server running PHP, and both carry a severity score of 9.2 out of 10. The same day, the Cybersecurity and Infrastructure Security Agency issued an alert urging every organization to patch immediately, and the National Security Agency went further in its own advisory, recommending that sites unable to update right away consider going offline.

 

The fixes arrived a day earlier than planned. Details of the flaws leaked on October 20 through an online forum post, a security firm's social media post and a proof-of-concept video released by mistake, forcing the PHP team to accelerate the release. As Help Net Security reported, patched versions are available for PHP 8.2, 8.3, 8.4 and 8.5, while older branches received only source code fixes.

 

Governments and companies reacted quickly. Agencies across Europe and Canada temporarily took public websites offline while they patched. The Wikimedia Foundation and the Internet Archive briefly shut down services, according to the running timeline of the incident. In the United States, the response has been a race to patch before attackers can turn the published details into reliable exploits.

 

Why This Vulnerability Is Different

The first reason is reach. PHP runs behind roughly 70 percent of websites whose server-side language is known, according to W3Techs, including sites built on WordPress, Drupal, and Joomla. The flaws reach back to PHP 5.4, released in 2012. That means years of web applications, hosting control panels, and embedded web interfaces are potentially affected. Security researchers have compared the event to Heartbleed and Log4Shell for its breadth.

 

php symbol in a target site

The second reason is how the flaws were found. Researchers at the security firm Calif and at Wiz both reported using advanced AI models to help uncover and exploit a class of memory-safety bugs that had been considered too difficult to weaponize for more than a decade. Business Insider described how that discovery set off a chain reaction across the industry, and it is a concrete example of how quickly defenders now need to move once a serious flaw is public.

 

The third reason is timing. Amazon threat intelligence reported an exploitation attempt dating back to October 17, four days before public disclosure, as described in its security bulletin for affected PHP runtimes. After the patches shipped, Cloudflare reported millions of exploit attempts against its customers. CISA said it had not observed successful exploitation when it published its alert, but the window between disclosure and attack is clearly measured in hours.

 

Is Your Organization Exposed?

Most organizations know whether their public website runs PHP. Far fewer know every place PHP is quietly running. CISA specifically warns that PHP is often a component of other software and may not be directly visible. It ships inside vendor appliances, network management consoles, web hosting control panels such as cPanel and Plesk, intranet tools, and some Windows applications. Firewall maker Palo Alto Networks, for example, published its own advisory on how the flaw affects its products.

 

Manufacturers and other operational technology users should look beyond websites as well. Engineering.com notes that exposure may sit in overlooked web interfaces on industrial equipment and embedded components. Financial institutions are watching closely too, with American Banker reporting that at least one credit union briefly went dark while it responded.

 

Third parties matter as much as your own servers. If a marketing agency hosts your microsite, a software vendor runs a customer portal for you, or a managed service provider maintains your intranet, ask them directly whether they run PHP and when they patched. The Dutch National Cyber Security Centre maintains a repository tracking vendor statements that can help you check the products you rely on.

 

What to Do This Week

Start with an inventory, then patch the systems that face the internet first. The fixed releases are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Linux distributions are publishing their own updates, so check your vendor's guidance, such as the Red Hat entry for the flaw, rather than assuming the operating system package manager has already pulled the fix.


software updater with circle arrows text reading “ old versions might expose your device to hackers. Find and update them with ease"

Systems running PHP 8.1 or earlier are a special problem. Those versions are past end of life, so no official updated builds were released for them. CISA advises taking unsupported or unpatchable PHP systems offline until they can be upgraded. A web application firewall or reverse proxy rule can buy some time, and Datadog explains how controls in front of PHP can block malicious requests, but PHP's own maintainers have stressed that no mitigation is a complete substitute for updating.

 

Finally, assume someone may have tried before you patched. Review logs back to at least October 17 for PHP worker processes launching shells, downloading tools, or making unexpected outbound connections. CISA has published a detection rule for this activity, Google Cloud has shared response recommendations, and Dark Reading has gathered expert advice on assessing whether a server was already compromised. If you find signs of intrusion, treat it as an incident rather than simply applying the patch and moving on.

 

Lessons for Vulnerability Management

PHP2Shell is a stress test for the basics. Organizations with a current software inventory, clear ownership of each internet-facing system and a tested emergency change process could patch within hours. Those without them spent the first day trying to find out where PHP was running. Guidance such as ZDNET's mitigation checklist is useful, but only if you already know what you need to protect.

 

desktop computer with key board and mouse running code

The incident also shows the cost of running unsupported software. Every system still on an end-of-life PHP release became an urgent problem with no simple fix. Reviewing end-of-life components, asking vendors how quickly they ship security updates, and building a playbook for taking a service offline safely are all worth doing before the next critical flaw arrives. With CrowdStrike's chief executive warning that newly discovered flaws in core internet software will drive a wave of attacks, the wait may not be long.

 

How Webcheck Security Can Help

Critical, widely deployed flaws like PHP2Shell reward organizations that can see their full attack surface and act quickly. Webcheck Security helps U.S. businesses and organizations find exposed systems, validate that patches and mitigations actually work through vulnerability scanning and penetration testing, and investigate whether attackers took advantage of a gap before it closed.

 

If you are unsure whether PHP is running somewhere in your environment, or your vendors' environments, or you want help confirming you are protected, contact Webcheck Security today to talk through an assessment for your organization.



 
 
 

Comments


bottom of page