All posts

Blog

PHP patches two critical flaws as AI speeds up security research

FindAmNow
PHPcybersecurityAI securityvulnerabilitiesOpenAIweb development

PHP has released emergency updates for two critical flaws that can let attackers run code on web servers without logging in. Researchers at Calif, OpenAI and Wiz reported the issues, and the PHP Foundation says AI-assisted research is changing how bugs are found. Site owners should update to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35.

The PHP project has released emergency updates for two critical security flaws that, under the right conditions, let an attacker run their own code on a web server without logging in. The fixes came out on 21 October 2026, and the PHP Foundation's account of how the bugs were found shows how much AI tools now shape security research.

PHP is one of the most widely used programming languages on the web. It powers WordPress, online shops, banking pages and government sites, so a flaw in PHP itself reaches far beyond any single website.

What the flaws are

The two bugs are tracked as CVE-2026-109618 and CVE-2026-109619. Both are rated 9.2 out of 10 on the CVSS v4.0 severity scale.

  • CVE-2026-109618 involves running out of memory. If a request hits PHP's memory limit at exactly the wrong moment, PHP can leave half-built internal data behind and later treat it as valid, which corrupts memory.
  • CVE-2026-109619 involves leftover data. After certain fatal errors, a worker process can keep pointing to memory that belonged to an earlier request, and the next request may use that freed memory.

According to php.net, every PHP installation that serves web requests is at risk. The PHP team considers Apache with mod_php the most exposed, because an attack there can start before any website code runs.

How to fix it

The fixed versions are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Linux distributions and support vendors received the patches in advance. PHP 8.1 and older no longer get official updates, though the team published minimal source patches for PHP 7.4, 8.0 and 8.1.

The PHP team lists temporary settings changes that reduce risk, but says only updating is a complete fix. Cyber agencies in the UK and Canada told organisations to update urgently and consider taking systems offline if they cannot patch quickly.

Finland did exactly that. Its Government ICT Centre, Valtori, took public government websites offline as a precaution on 21 October, Yle News reported. At the time there was no sign of active attacks.

The role of AI

The PHP Foundation says the out-of-memory problem was first noticed in 2024 during an external audit, but no clear attack path was found and work on a fix stalled. The Foundation calls that delay "a structural failure."

The picture changed in August 2026. On 11 August, researcher Ryan A at security firm Calif reported a working remote attack with the same root cause, and OpenAI independently reported the same problem that day. Wiz and OpenAI later reported more attack routes. The Foundation says it had earlier scanned PHP with Anthropic's Claude Mythos and now uses OpenAI tools to check reports and exploits.

AI-assisted research has also flooded the small team with reports: 15 CVEs published since 1 July and more than 100 reports that were invalid, duplicates or could not be reproduced, the Foundation says. It stresses that a person makes every decision on every patch.

A messy disclosure

The Foundation says the CVE numbers leaked online on 20 October with a wrong severity score, so it moved the release forward a day. It also says Calif mistakenly posted a video of its proof of concept, and that Chainguard published fixed images more than six hours before the agreed release. These are the Foundation's own accounts.

Why it matters

AI tools are helping find serious bugs faster, but the people who must design, review and ship fixes are still few. The PHP Foundation is asking companies, hosts and governments that depend on PHP to fund that work.

For Nigerian businesses, many websites, including WordPress sites on shared hosting, run on PHP. Site owners should ask their hosting provider whether PHP has been updated to a fixed version, and anyone still on PHP 8.1 or older should plan an upgrade.

Sources

Source