Guide

PHP 8.5.13: seven critical PHP fixes your host has to install

On 19 November 2026 the PHP project released PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36, together with the new PHP 8.6.0. The releases fix 17 security advisories, seven of them rated critical, and two of those finish a fix that the php2shell releases a month earlier didn't complete. If your site was updated for php2shell, its PHP needs updating again. As with php2shell, WordPress's own updates can't do that for you.

What the November releases fix

The PHP project publishes each flaw as a security advisory on its GitHub repository and lists them in the changelog of every release. Seven of the advisories fixed on 19 November are rated 9.2 on the CVSS v4.0 scale, which is critical. Most of them can lead to code running on the server with the rights of the PHP process.

Four affect every supported branch: a timezone cache that PHP keeps using after it's freed (CVE-2026-129496); session data written in one format and read in another (CVE-2026-115560); session files left half-written when a write is interrupted (CVE-2026-126714), in PHP's default file-based session handler; and leftover request bytes in PHP-FPM that an attacker can turn into a second request that bypasses the web server's routing (CVE-2026-129289).

Three more are newer-branch only. CVE-2026-129481 affects PHP 8.3 and later; CVE-2026-129474 and CVE-2026-129182 affect PHP 8.5 only. The PHP project describes CVE-2026-129481 as an incomplete fix for CVE-2026-109619, one of the two php2shell flaws, and CVE-2026-129182 as further cases of the same bug that 8.5.12 didn't cover. The same releases also fix lower-rated issues, among them a PHP-FPM local privilege escalation and a bypass of PHAR signature checks.

How serious it is

These flaws are serious, but unlike php2shell, most of them need something specific in place before they can be used. That can be a PHP setting, a server setup such as PHP-FPM with reused connections, or code in the application that an attacker can chain. The advisories say so in their own words: the attack works "on affected configurations". You usually can't tell from the outside whether a site meets those conditions, and nobody can rule it out for every plugin a WordPress site runs. Treat the update as urgent.

When this article was written, none of these CVEs was in CISA's Known Exploited Vulnerabilities catalog, the US government's list of flaws with evidence of exploitation in the wild. This article summarises the PHP project's advisories as published on 19 November 2026. It isn't legal advice.

Which PHP versions fix it

Each supported branch has one fixed release (the table below). PHP 8.6.0, released the same day, already contains the fixes. PHP 8.2 reaches end of life on 31 December 2026, so if you're upgrading anyway, 8.3 or later saves you a second upgrade within weeks. PHP 8.1 and older get no fixes from the PHP project; the answer there is an upgrade, or a backport from your Linux distribution or a long-term-support vendor.

One behaviour change to know about: the fixed releases switch session upload progress off by default and stop scripts from changing some session settings while it's on. Few sites use upload progress bars built on that feature, but if yours does, test it after the update.

Why WordPress updates won't install it

WordPress, its plugins and its themes run on PHP, but PHP itself is installed on the server. Automatic updates, the Updates screen and security plugins can't change it. On managed or shared hosting, your host updates PHP; on your own server, it comes from your operating system's packages or wherever you installed PHP from.

How to check your site

In WordPress, open Tools → Site Health → Info and expand Server: the PHP version is listed there. If it's below the fixed release for its branch in the table, the site needs the update. A site that is on 8.5.12, 8.4.27, 8.3.36 or 8.2.35 is patched for php2shell but not for these flaws.

If your PHP comes from a Linux distribution (Debian, Ubuntu, RHEL, AlmaLinux and others), the fix is often backported without changing the version number, so a version like 8.2.7-1~deb12u1 can already be patched. Check your distribution's security notices for the CVEs above, or ask your host which build you're on.

If your host manages PHP, ask them whether they've deployed one of the fixed releases. If you run the server yourself, take a backup, install the updated packages, and restart PHP-FPM or the web server so every worker runs the new version.

If you can't update today

The PHP project says to upgrade to the fixed release for your branch; its advisories also list temporary measures for specific attack paths. For the PHP-FPM request smuggling flaw (CVE-2026-129289), the advisory says to turn off backend connection reuse on the front end: leave nginx's fastcgi_keep_conn and Apache's enablereuse disabled. For the session flaws, it suggests disabling session.upload_progress.enabled in the server's PHP configuration if you don't need it.

Those measures narrow one path each; they don't fix the release. Apply them exactly as each advisory describes, in the server's configuration rather than in a .user.ini file, and update PHP as soon as your host or packages allow.

How Relvato flags it

Relvato's vulnerability monitor reads the PHP version a WordPress site runs on, through the Relvato plugin, and compares it with the critical PHP advisories Relvato tracks, including the 19 November releases. When the version is below the fixed release for its branch, it reports a critical finding that names the release to update to. On a site without the plugin, the exposure scan does the same when the server gives its PHP version away in the X-Powered-By header, and suggests hiding that header.

If your host patched a distribution build without changing the version number, confirm it with them and ignore the finding: it stays ignored on later scans. The php2shell guide covers October's release and its workarounds.

Fixed PHP releases (19 November 2026)

PHP branchFixed inNote
8.68.6.0New branch, security support until 31 December 2030
8.58.5.13All seven critical advisories apply
8.48.4.28Active support ends 31 December 2026
8.38.3.37Supported until 31 December 2027
8.28.2.36End of life on 31 December 2026
8.1 and olderNo fix from the PHP projectUpgrade, or get a backport from your distribution or LTS vendor

Questions, answered

I updated PHP for php2shell in October. Do I need to update again?

Yes. 8.5.12, 8.4.27, 8.3.36 and 8.2.35 fix php2shell but not the flaws fixed on 19 November. Move to 8.5.13, 8.4.28, 8.3.37 or 8.2.36 (or 8.6.0).

Is my WordPress site affected?

If it runs on a PHP version below the fixed release for its branch, it has the vulnerable code. Whether a given flaw can be used against it depends on the server's configuration and the code it runs, which is why the PHP project asks everyone to update. The exception is a distribution build with the fixes backported; your host can confirm.

Will WordPress automatic updates install PHP 8.5.13?

No. They update WordPress, plugins and themes, not PHP. PHP is updated on the server, by your host or your server's packages.

Should I move to PHP 8.6 instead?

PHP 8.6.0 contains the fixes and has security support until 31 December 2030. A new major version can break older plugins, so test your site on it first. Updating within your current branch is the quicker fix.

I'm on PHP 8.1 or older. What now?

The PHP project doesn't fix 8.1 and older. Upgrade to a fixed release (8.3.37 or later avoids another upgrade when 8.2 reaches end of life on 31 December 2026), or ask your host or LTS vendor whether they provide backported fixes.

Sources

Related reading
Guide

Know when PHP, WordPress or a plugin needs patching.

Relvato's vulnerability monitor checks the PHP version, WordPress itself and every plugin and theme against known vulnerabilities on a schedule, and alerts you when one needs an update.