PHP released security patches for 18 flaws on 19 November 2026, in the same release that shipped PHP 8.6.0. Seven of the flaws are rated critical by PHP, each with a CVSS score of 9.2, and several can lead to remote code execution in specific configurations. The release comes a month after two critical PHP flaws in October, known as PHP2Shell, and it follows PHP's regular four week release cycle. No source reviewed reports exploitation in the wild for any of the 17 PHP flaws in this release, and none was in the CISA Known Exploited Vulnerabilities catalog on 19 November.
The flaw that draws the most attention is PHPAfterShell, tracked as CVE-2026-126714. It was found by the security firm Depthfirst, which says it used AI frontier models tuned for cybersecurity work to find it. The flaw lives in PHP's session handling with file based storage, which is the default setting, session.save_handler set to files. When a session write is interrupted at a useful point, the file on disk can keep the start of the new session data and the end of the old session data. The next time the session starts, PHP can deserialize objects an attacker placed there, and with a suitable gadget chain in the application that can lead to code execution on the server.
The other critical flaws
PHP's advisory says code execution through PHPAfterShell also needs an interruption at a useful point and a suitable deserialization gadget chain in the application. Depthfirst says it reached code execution without an application gadget class by chaining a second, undisclosed memory corruption bug in a PHP native class, but the sources reviewed do not establish whether that second bug is fixed in these releases. That gap is worth noting: the patch closes the session flaw as described, but teams should not treat the research as fully closed until PHP says more.
The other critical flaws cover session handling, timezone processing and PHP-FPM. CVE-2026-115560 is a session serializer mismatch that can let attacker influenced objects be deserialized, which can lead to code execution with a suitable gadget chain when upload progress is enabled. CVE-2026-129289 lets an unauthenticated attacker smuggle a second FastCGI request into PHP-FPM and run PHP code as the worker. The remaining critical flaws, CVE-2026-129481, CVE-2026-129474, CVE-2026-129182 and CVE-2026-129496, are use after free flaws in session shutdown, magic method backtraces, fatal error backtraces and the timezone cache. Each is rated 9.2 and can lead to memory corruption and code execution in the right conditions.
The full release
Beyond the seven critical flaws, the release fixes four high severity and six medium severity flaws, plus a separate flaw in the bundled uriparser library, CVE-2026-48841, which PHP fixed by upgrading the dependency to version 1.0.3. The count differs by source because some count 17 PHP flaws plus the uriparser issue to reach 18, while others count 18 PHP flaws in total. The fixed versions are the same in every source: PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13 and 8.6.0. The October releases, 8.5.12, 8.4.27, 8.3.36 and 8.2.35, do not contain this fix, so servers patched for PHP2Shell in October are still affected.
PHP 8.1 and older are end of life and will not receive the fix. Depthfirst says the official end of life mitigation branches for 7.4, 8.0 and 8.1 are not affected by PHPAfterShell, because they disable upload progress in the callback, but that is a narrow exception and not a reason to stay on an unsupported branch. The fixed releases also switch session.upload_progress.enabled off by default, according to a comparison of the October and November source code.
What to do now
Upgrade PHP to the fixed release for your branch and restart the PHP workers. That is the whole fix for most teams. If an application uses upload progress, turn session.uploadprogress.enabled back on after the update, since the new default is off. If an update cannot happen at once and the application does not use upload progress, set session.uploadprogress.enabled to 0 in php.ini or in the PHP-FPM pool and restart the workers. That closes one path only, and it is a stopgap, not a substitute for the patch.
The wider point is that PHP runs a large share of the web, including WordPress, and a runtime flaw reaches every application on the server at once. Teams that track their PHP version in one place can patch in hours. Teams that learn their PHP version only when a security notice arrives will take days, and the flaws in this release reward speed. Check the version, apply the fixed release, restart the workers, and then check that the version number actually changed, because distribution packages can include the fix without changing the version number shown.




