Back to Article List

PHP CVE-2026-129289 and what to update

PHP CVE-2026-129289: ce versiuni rezolvă vulnerabilitatea - PHP CVE-2026-129289 and what to update

CVE-2026-129289 is a critical flaw in PHP-FPM. The fix is to move every site to PHP 8.2.36, 8.3.37, 8.4.28 or 8.5.13 or later on its branch. The serious attack needs a specific server setup, but the safe course is the same for everyone: update, then confirm that each site really runs the fixed build.

What is affected

The CVE record, published on 19 November 2026, describes request smuggling in PHP-FPM. Sometimes an application opens php://input but does not read the request body to the end. When that happens, PHP does not throw away the leftover bytes when the request finishes. If the web server in front keeps its connection to PHP-FPM open for the next request, PHP-FPM can read those leftover bytes as a brand new request.

This lets an attacker with no login send one crafted multipart/form-data request and forge a backend request with values they choose, such as SCRIPT_FILENAME, REMOTE_ADDR and PHP_ADMIN_VALUE. The record says this can lead to the server running the attacker's own PHP code. On LSAPI setups, the record describes a different effect: later requests on the same connection can be disrupted.

The record rates the flaw 9.2 (critical) under CVSS 4.0. Every PHP version before 8.2.36 is affected. So are 8.3, 8.4 and 8.5 releases older than the fixed builds listed below.

Who needs to act

Anyone running a site on PHP should check the version. The risk is highest in one setup: PHP-FPM behind a web server that reuses its connections to PHP. That is not the default in nginx or Apache. The record gives two examples:

  • nginx with fastcgi_keep_conn on
  • Apache mod_proxy_fcgi with enablereuse=on

If you run your own server or VPS, search your configuration for those two settings. Suppose one of them is on and PHP is not updated yet. Turning connection reuse off removes the condition the record describes and buys you time. It is a stopgap, not the fix.

On shared hosting you usually cannot see the web server configuration, so you cannot tell whether reuse is on. Treat your sites as exposed until you have confirmed a fixed PHP build. If you look after sites for clients, check each one. Sites on the same host can run different PHP versions.

Fixed versions for each PHP branch

BranchAffectedUpdate to at least
8.58.5 releases before 8.5.138.5.13
8.48.4 releases before 8.4.288.4.28
8.38.3 releases before 8.3.378.3.37
8.28.2 releases before 8.2.368.2.36
8.1 and olderAllNo fix; move to a supported branch

Where you can, stay on the branch you already use. Going from 8.3.x to 8.3.37, for example, is a much smaller change than jumping to a new branch, which can break older plugins or themes. PHP 8.6.0 came out on 19 November 2026, and the CVE record does not list the 8.6 branch among the affected versions.

How to check the PHP version each site runs

Check the version the website actually uses, not just the one a terminal shows. A server can have several PHP versions installed, and the command line may use a different one from the web server.

  1. Your hosting control panel. On a web hosting plan, PHP is part of the hosting account. The panel usually shows the version for each site or domain, and often lets you change it.
  2. WordPress Site Health. In the dashboard, go to Tools, then Site Health, open the Info tab and expand Server. It lists the PHP version the site runs on.
  3. A one-line test file. Upload a file such as version-check.php containing <?php echo phpversion(); and open it in your browser. Note the number, then delete the file so you do not leave version details public.
  4. On your own server. php -v shows the command-line version. Also check the version of PHP-FPM itself, because it can differ from the command-line PHP. After updating, restart PHP-FPM so the new build is actually loaded.

One catch: Linux distributions sometimes add security fixes to their own PHP packages without raising the main version number. In that case the version string carries a distribution suffix after the number. Your distribution's security notice for this CVE tells you whether that package includes the fix.

What to do on versions that no longer get fixes

If a site runs PHP older than 8.2, no fixed release is coming for it, for this flaw or any later one. PHP's list of supported versions now starts at 8.2. Each branch gets two years of full support, then two years of fixes for critical security issues only, and then it reaches end of life.

8.2 itself is close to that point. Its security support ends on 31 December 2026. Updating to 8.2.36 closes this hole, but a site on 8.2 should plan its move to a newer branch now. 8.3 gets security fixes until 31 December 2027, 8.4 until 31 December 2028 and 8.5 until 31 December 2029.

Here is an order for the upgrade that keeps surprises small:

  1. Back up the site's files and database.
  2. Update the CMS, themes and plugins first. Newer releases are more likely to work on newer PHP.
  3. Switch the PHP version, on a staging copy if you have one. Then test the pages that matter: home page, contact form, login and checkout.
  4. Watch the error log for a day. If something breaks, switch back and fix or replace the plugin that caused it.

If a plugin or custom script only runs on an end-of-life PHP version, that plugin or script is the thing to replace. Keeping the whole site on unsupported PHP to save one old component leaves it open to every flaw found from now on.

FAQ

Is my WordPress site affected by the PHP vulnerabilities?

It depends on the PHP version and the server setup, not on your WordPress version. CVE-2026-129289 is a flaw in PHP, so any WordPress site on PHP before 8.2.36, or on an 8.3, 8.4 or 8.5 release older than 8.3.37, 8.4.28 or 8.5.13, runs an affected build. The serious attack needs PHP-FPM behind a web server that reuses backend connections, which is not the default. On shared hosting you usually cannot see that setting, so the safe choice is to make sure the site runs a fixed PHP release.

How do I check which PHP version my site uses?

In WordPress, go to Tools, then Site Health, open the Info tab and expand Server to see the PHP version. Outside WordPress, look in your hosting control panel, which usually shows the PHP version for each site. You can also upload a small file containing <?php echo phpversion();, open it in a browser and delete it once you have the number.