PHP patches seven critical remote-code-execution bugs in new 8.6.0 and 8.5.13 releases
The four-week update fixes 17 security issues, most in session handling and PHP-FPM. Server admins should update; no exploitation of the new flaws has been reported.
The PHP project shipped a batch of security fixes on Thursday, November 19, including patches for seven critical remote-code-execution (RCE) flaws, SecurityWeek reports. PHP's own changelog lists the same fixes in two releases dated that day, 8.6.0 and 8.5.13.
What was fixed
The changelog lists 17 security advisories for those releases, plus a library upgrade (uriparser 1.0.3). SecurityWeek says seven are critical RCE issues, with the other ten rated high or medium. Several of the critical ones:
- Session handling: a serializer mismatch (CVE-2026-115560) that can lead to code execution given a suitable "gadget chain", partially overwritten session files (CVE-2026-126714), and use-after-free bugs after interrupted session shutdown (CVE-2026-129481 and CVE-2026-129182).
- PHP-FPM: request smuggling (CVE-2026-129289), where unread request-body bytes aren't discarded before a connection is reused. SecurityWeek says an unauthenticated attacker could use it to run PHP code.
- Core and date handling: use-after-free bugs (CVE-2026-129474, CVE-2026-129496) that can lead to code execution depending on the application.
The changelog also lists a local privilege escalation in FPM, a signature bypass in Phar, and several denial-of-service and information-disclosure fixes.
Which versions
PHP 8.6.0 and 8.5.13 include all the critical fixes and the ten high and medium flaws, according to SecurityWeek. It says 8.4.28, 8.3.37 and 8.2.36 patch most of the issues, and that PHP 8.2 isn't affected by CVE-2026-129481. We read the changelog entries for 8.6.0 and 8.5.13 only, so check the notes for your branch.
Is it being exploited?
SecurityWeek doesn't report attacks on the seven new critical bugs, and says RCE has not been demonstrated for two of them (CVE-2026-129481 and CVE-2026-129182). It does say CVE-2026-109619, one of two "PHP2Shell" flaws fixed in October, is now widely exploited. That is a reminder that PHP bugs get picked up quickly once patches land.
What to do
- Update PHP to the newest release on your branch, and restart PHP-FPM or the web server afterwards.
- Check that every server is actually running the patched build, including containers and older hosts.
- If you can't update right away, review who can reach PHP-FPM and your session storage, since the session and FPM bugs make up most of the critical list.
Managed hosts and Linux distributions often ship patches on their own schedule, so check with your provider if you don't control the PHP package.
Sources
This story is based on reporting from these outlets. Read them for the full picture:
Drafted by an AI-assisted routine from the reporting above and checked against it before publishing. How our stories are made.