What happened
Wiz Research found the first flaw in August 2026 and reported both privately to the PHP project. A coordinated release was planned for 22 October, but details leaked on 20 and 21 October. PHP shipped emergency fixes on 21 October, and the same day Patchstack’s hosting partners and watchTowr’s honeypot network reported exploitation attempts. On 26 October, CISA added CVE-2026-109618 to its Known Exploited Vulnerabilities catalogue.
How the flaws work
CVE-2026-109618. If PHP runs out of memory part-way through setting up a request, it can leave half-built internal data that its clean-up code then trusts. A crafted request can turn that into code execution.
CVE-2026-109619. Internal state can outlive the memory it points to, so the next request handled by the same PHP worker acts on leftover data. Exploitation needs two requests to the same worker.
Neither needs a login. Researchers also showed that an unauthenticated attacker can read PHP worker memory, which may contain passwords, session tokens and API keys.
Who is affected
| PHP branch | Vulnerable | Fixed in |
|---|---|---|
| 8.5 | Before 8.5.12 | 8.5.12 |
| 8.4 | Before 8.4.27 | 8.4.27 |
| 8.3 | Before 8.3.36 | 8.3.36 |
| 8.2 | Before 8.2.35 | 8.2.35 |
| 7.4, 8.0, 8.1 | All versions | No official release: vendor packages or PHP source backports |
| 7.3 and older | All versions | No fix: upgrade |
Every web-facing way of running PHP is in scope: Apache mod_php, PHP-FPM, php-cgi, LiteSpeed and FrankenPHP. Risk is highest on Apache mod_php, where an attack can succeed before your application’s code even runs.
The exposure is enormous. Modat counted about 4.38 million PHP services on the internet, and most hosts that reveal their version run end-of-life branches. PHP 7.4 alone accounted for about 878,000.
php -v reports.
What to do now
- Find every PHP runtime: servers, containers, appliances and PHP bundled in third-party apps. For sites a hosting provider or MSP manages, ask for written confirmation that they are patched.
- Patch to 8.2.35, 8.3.36, 8.4.27 or 8.5.12. Start with internet-facing servers, especially Apache mod_php.
- Restart or redeploy all PHP workers. A patched binary does nothing while old workers are still running.
- Move off end-of-life branches (7.4, 8.0, 8.1). Vendor backports buy time; they are not a plan.
- Look back from 20 October for unusual requests, PHP process crashes and unexpected command execution. If you find signs of compromise, start incident response and rotate every credential the server could reach.
If you can’t patch today
PHP is clear that no configuration change fully fixes these flaws. These steps reduce exposure while you schedule the update:
- Restrict internet access or isolate the service. Put a WAF in front and block direct access to the origin server.
- Set
session.upload_progress.enabled=0in php.ini or the FPM pool, then restart all workers. Setting it withini_set()or.user.iniis not enough. - On PHP 8.5, set
fatal_error_backtraces=0. - Enforce request-size and multipart limits at the proxy, and block multipart requests if the application doesn’t accept uploads.
Find it with Microsoft Defender
If your servers are onboarded to Defender for Endpoint with Defender Vulnerability Management, this Advanced Hunting query lists devices exposed to either CVE:
Coverage depends on Defender recognising the PHP install. PHP inside containers or bundled with other software may not appear, so treat an empty result as a starting point, not an all-clear.