Skip to main content

Critical PHP Vulnerabilities Patched on October 21 as Attacks Begin

Emergency updates fix two PHP vulnerabilities that let attackers run code on web servers, and AI tools helped find them.

By Mittapalli Sriram
| Oct 22, 2026 | 4 min read | 👁️ 201 Views
Classic Outline Feed
Critical PHP Vulnerabilities Patched on October 21 as Attacks Begin
Premium Insight

Why It Matters

Cloudflare says almost 70% of websites use PHP, so Indian shops and agencies running WordPress or Magento are likely exposed. Many small sites sit on shared hosting, so the fix depends on the host updating PHP. Owners should ask now. My searches found no advisory from India’s CERT-In (Indian Computer Emergency Response Team) on these flaws as of October 21. Check its site for updates. Cloudflare’s default firewall rules add a layer for its customers, but they do not replace the PHP update.

PHP, short for Hypertext Preprocessor, released emergency updates on October 21, 2026 for two critical flaws that let an unauthenticated attacker run code on a server. The fixed versions are 8.5.12, 8.4.27, 8.3.36 and 8.2.35. The bugs, CVE-2026-109618 and CVE-2026-109619, are known as PHP2Shell; CVE stands for Common Vulnerabilities and Exposures. A leak the day before, of the CVE numbers only, forced the release forward, and Cloudflare reports attack traffic against its customers.

How the flaws work

Both flaws sit in PHP’s memory management and error handling, which nearly every request touches. If a request hits its memory limit at the wrong moment, PHP can destroy that request’s memory while leaving pointers to it behind. A later request on the same worker may then follow those stale pointers, a bug class called use-after-free. Wiz Research traced four such bugs. One lets attackers read worker memory through a PHPSESSID cookie even if the application never starts a session. Another corrupts OPcache, PHP’s shared code cache, causing type confusion between workers.

Why the fix took months

The PHP Foundation says it first noticed the memory problem during a 2024 audit. Developers drafted several fixes, but each carried a cost: broken backward compatibility, new denial-of-service paths, or changes to many third-party extensions. Deciding by consensus, the security team stalled for months, and the Foundation calls that a structural failure. After security firm Calif reported a working exploit on August 11, the fix became its top priority. Wiz says the patch removes the root problem, including variants beyond the four it reported.

What developers should check

The flaws live in the PHP runtime itself, so updating a plugin will not fix them. Cloudflare advises asking a hosting provider to update PHP. Wiz says exploitation leaves little in application logs, so teams should watch for unusual multipart file uploads followed by memory-limit errors or repeated server errors, oversized PHPSESSID cookies and unexplained worker restarts. PHP’s security team found no functional exploits at release, the Foundation says, yet Cloudflare observed attack traffic and says attackers altered payloads to evade its firewall rules.

AI’s role and the cost

Calif’s audit, which began July 30, ran under OpenAI’s Patch the Planet programme. Wiz says it used Gemini 4 Argon, GPT-5.6 Sol and its own Wiz Atlas tool, and that one researcher finished in a week what once took a top team months. The Foundation reports a heavier workload too: 15 CVEs published since July 1 and more than 100 invalid, duplicate or unreproducible reports. None of the sources reviewed disclose model sizes or compute costs.

Our reading: funding is the bottleneck

This section is our own analysis, not reported fact. The sources suggest an uneven race: AI let researchers build and test exploits within hours, yet fixing a decade-old design choice still took people and months. The Foundation says a small paid team guards code behind much of the web, so the next such bug could outpace the staff available to fix it.

Found this analysis insightful?

Share with colleagues, engineers, and your research network.

Tags & Topics

Related Analysis & Next Reads

Curated

Discussion

No comments posted yet. Be the first to start the discussion!