php2shell: two 20-year-old PHP flaws found with AI knock government sites offline, and Berlin's police stations are still dark
The patches came out on Wednesday afternoon. By Thursday morning the online police stations of Berlin and Brandenburg, brandenburg.de, the Abgeordnetenhaus and the BKA were still unreachable, after the BSI told anyone who could not update at once to pull their site off the net. Cloudflare says the attacks have started.
The PHP project shipped versions 8.5.12, 8.4.27, 8.3.36 and 8.2.35 on Wednesday to close two holes that, under the right conditions, let an attacker run code on a server without logging in. Both sit in parts of the language that almost every request touches: CVE-2026-109618 in memory management, where an out-of-memory error leaves half-initialised data that the clean-up then trusts, and CVE-2026-109619 in error handling, where state from one request survives into the next. Together they are called php2shell. Every release of the past two decades is affected; PHP 8.1 and older, already out of support, get no fix at all.
Exploitation is not instant. heise says it can take thousands to tens of thousands of HTTP requests, which is exactly what makes it suited to automated mass attacks; the discoverers at Calif show system commands running on a Laravel server after 38 seconds. The German BSI issued a level-3 warning, "extraordinarily high"; the NSA and the UK's NCSC told organisations to go offline if they could not update immediately. Dutch and Finnish agencies, 4chan, DeviantArt and parts of Wikipedia were among those hit on Wednesday, and in Berlin the Charité, customs, the BND and much of the city administration briefly took their sites down; those are back. Still offline this morning, rbb reports: both police forces' Internetwachen, brandenburg.de, parlament-berlin.de, the BKA, the city of Cottbus, Dahme-Spreewald district, some Berlin local courts and the Berliner Tafel.
The PHP Foundation's own account is unusually frank. The memory bug was first spotted in 2024 while fixing findings from an external audit; an exploit was "theorized", but the small security team could not agree on a fix that did not break compatibility, and the work stalled for months, "a structural failure", it writes. Then on 11 August a researcher at Calif, auditing PHP under OpenAI's "Patch the Planet" programme, and OpenAI itself independently reported working remote code execution; Wiz followed on 24 August. AI did the heavy lifting on both sides: Wiz says the exploit chain was once "at the edge of what human researchers could practically achieve", and the same tools now make it easy to rebuild from the patches. Not everyone is panicking: a widely shared post on Hacker News argues there is no easy exploit yet. Anyone running PHP, down to a small blog on shared hosting, should check the version today.