AI helped find two critical PHP flaws. If you run a PHP site, update today
PHP shipped security releases on October 21 for two critical remote-code-execution bugs, nicknamed PHP2Shell, that researchers found with help from AI models. PHP says updating is the only complete fix.
- Event or announcement
- Sources checked
What happened
On Wednesday, October 21, PHP published a security advisory and four patched releases for two critical bugs that can let an attacker run their own code on a web server without logging in. PHP urges all users to update right away. Researchers found the flaws with help from frontier AI models.
Key facts
The fix: PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, released October 21 (PHP advisory).
The bugs: CVE-2026-109618, memory corruption when PHP runs out of memory mid-request, and CVE-2026-109619, leftover request state that a later request on the same worker can reuse. PHP's GitHub advisories rate each one Critical, 9.2 on CVSS v4.
Who's affected: PHP's advisory covers PHP installations that serve web requests, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. It considers mod_php the highest risk, and that is where it describes a demonstrated exploit.
How AI was involved: Wiz Research says it found the first of these flaws on August 19 using its Wiz Atlas tool with Google's Gemini 4 Argon and OpenAI's GPT-5.6 Sol, and reported its findings to PHP on August 24. OpenAI says security firm Calif identified a critical flaw with GPT-5.6 Sol through OpenAI's Patch the Planet initiative, that Wiz discovered and reported both bugs independently, and that PHP's maintainers led the fixes.
Official guidance: the UK's NCSC is encouraging UK organisations to act now. It advises finding every PHP system, internet-facing ones first, and updating; if neither updates nor PHP's temporary mitigations can be applied, it says to consider taking systems offline and checking for compromise.
Why it matters
PHP is everywhere. W3Techs counts it on 69.3% of the websites whose server-side language it can identify. That is not all websites, nor a count of vulnerable ones. WordPress runs on PHP.
Risk isn't identical for every PHP site. PHP's CVE-2026-109619 advisory says affected versions, configuration and reachability vary with the application and extensions in use, and Wiz notes such differences can affect whether an attack works. Patching is still the fix.
The Next Web reports that Pinboard, the GrapheneOS forum and OBS took parts of their sites down before the patch arrived. That is TNW's outage reporting, not evidence of attacks.
OpenAI ranks this among the most significant security issues in recent memory, and warns that the same AI abilities can also help attackers build exploits.
How to use it
1. Find out whether your site runs PHP. If it's WordPress, it does. For anything else, including managed hosting, ask your host or developer. Being on managed hosting doesn't tell you whether PHP is in use.
2. Get onto a patched build of the PHP that actually serves your site. On a supported branch, update to its fixed release (PHP downloads) or install a distribution or vendor package that the vendor confirms fixes both CVEs. On managed hosting, ask your provider to confirm that the PHP version serving your site includes both fixes.
3. On PHP 8.1 or older, ask about backports. The PHP project no longer ships updates for these branches, but PHP says some distributions and LTS vendors provide backported fixes, and it published minimal source backports for 7.4, 8.0 and 8.1. Ask your vendor, or upgrade to a supported version. PHP lists temporary mitigations, but it says they reduce exposure without making a server safe.
4. Hand it off clearly. If someone else maintains your site, use our delegation brief playbook to send a short request naming both CVEs and fixed versions. Our plain-language explainer playbook can turn the advisory into plain steps.
Read the sources
- PHP — 2026 news archive: security advisory and releases (Oct 21) (opens in a new tab)
- PHP GitHub advisory — CVE-2026-109618 (GHSA-w8hw-w9fx-j79w) (opens in a new tab)
- PHP GitHub advisory — CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp) (opens in a new tab)
- Wiz Research — PHP2Shell (opens in a new tab)
- OpenAI — Patch the Planet: global response coordination (opens in a new tab)
- UK NCSC — Critical security issue affecting PHP (opens in a new tab)
- W3Techs — Usage statistics of PHP for websites (opens in a new tab)
- The Next Web — PHP2Shell emergency patches (opens in a new tab)
- LWN.net — PHP patches released for two critical RCEs (opens in a new tab)
- PHP downloads (opens in a new tab)
This is a source-based summary. Product performance and account access have not been independently tested here. Practical suggestions are editorial.