← All insights

October 24, 2026

PHP2Shell

Clients using our Sanctum™ scanning and continuous penetration testing services asked about the two critical PHP flaws fixed on October 21. Here is our plain-language response.

As a direct result of being contacted by clients using our Sanctum™ scanning and continuous penetration testing services, we have decided to comment on the two critical flaws in PHP that were fixed on October 21.

Here is our plain-language response, so people can understand the issue with clarity.

  • PHP runs about 70% of websites
  • Both flaws are rated 9.2 out of 10 for severity
  • The flaws affect every PHP version back to 5.4, released in 2012

What is reported to have happened?

→ 2024: PHP’s security team spotted a possible weakness but couldn’t show how it could be exploited, so it wasn’t fixed.
→ August 2026: Researchers at Calif, OpenAI, and Wiz, working separately and using AI models, found two flaws that showed how attackers could use them to take over web servers. Calif reported the first on August 11 and the second on August 21.
→ October 17: Amazon’s decoy servers caught someone trying the attack, while the flaws remained undisclosed.
→ October 20: News of the flaws leaked.
→ October 21: PHP released the fix a day earlier than planned.

The real news, and the lesson to be learned: you can’t count on getting a fix before attackers know about a flaw. AI helps people find and exploit bugs faster, and leaks will happen.

If you check for vulnerabilities once a quarter, this whole thing may have started and ended between your checks. You need to monitor all the time, so you can answer three questions quickly:

  1. What are we running? Find every copy of PHP, including old websites, containers, hosted sites, and products that include PHP without saying so.
  2. Is it vulnerable? Check the PHP version itself. Updating WordPress or plugins does not fix this.
  3. Has anyone gotten in? Look for strange processes started by PHP, unfamiliar files on web servers, and unexpected outbound traffic.

What to do today

→ Update PHP to 8.5.12, 8.4.27, 8.3.36, 8.2.35, or later. Then restart PHP and your web server, because running processes keep using the old code until you do. Rebuild any containers.
→ If you use Linux distribution packages, check your vendor’s advisory, because the version number may not show whether you’re patched.
→ If a hosting company runs your site, confirm they’ve updated.
→ Firewall rules will help, but attackers are already working around them. Only the update fixes the problem.
→ Anything on PHP 8.1 or older has no official update. Upgrade it, or get the fix from your vendor.
→ Ask your vendors: “Are you patched for PHP2Shell?”
→ If you were unpatched and your servers face the internet, check for signs of a break-in and change your passwords, keys, and tokens. These flaws can expose them.

One more thing: two days after the fix, on October 23, PHP disclosed a separate, lower-risk flaw (CVE-2026-115560) that the October 21 updates don’t fix. PHP says it only affects unusual setups and recommends turning off a feature called session upload progress until its next regular release.

Checking for vulnerabilities is now a daily job. Patching once isn’t the end of it.

The ConvergentDS assurance platform Sanctum™ can demonstrate whether vendors are exposed, continuously, not periodically. If you want to learn more about reducing risk with a more continuous security approach, please contact us. 📩

#CyberSecurity #VulnerabilityManagement #PHP #ThirdPartyRisk #AppSec

Consent Preferences