AI, Development & Tech News

PHP vulnerability: On some web servers, foreign code can be executed without authentication

261123 php fpm security vulnerability wordpress featured image
Skip to table of contents
Contents 5 sections
  1. How does the attack work?
  2. Which servers are affected?
  3. How serious is the situation?
  4. What this means for you
  5. Sources

The PHP project published the security vulnerability CVE-2026-129289 on November 19, 2026, and rated it as critical with 9.2 out of 10 points (CVSS 4.0). PHP-FPM is affected, the interface through which a web server such as NGINX has PHP pages executed. On November 20, Wordfence showed that a single request to a WordPress site can be enough to execute foreign code without logging in.

Not every site is at risk: The attack requires a PHP version without a security update and a web server that keeps the connection to PHP-FPM open and reuses it multiple times. The updates from the same day are described in the TutKit report on PHP 8.5.13.

How does the attack work?

A web server checks each request and passes it on to PHP-FPM via a private connection. With a crafted request, part of the data is left unread on this connection. If the web server reuses the connection for the next request, PHP processes the remainder as a new request that has not gone through any check by the web server.

For this, the attacker must know the path of an existing PHP file. Then, according to the security advisory of the PHP project, they can execute their own code with the privileges of the website.

With WordPress, the core supplies the necessary ingredient: Requests to the REST API read the content of the request. According to Wordfence, the attack demonstrated in the test requires neither a vulnerable plugin or theme nor an account. In the test environment with WordPress 7.1.5, PHP 8.2.35, and NGINX with persistently open connections, foreign code was executed. With PHP 8.2.36 or without persistently open connections, it was not executed.

Which servers are affected?

Persistently open connections to PHP-FPM are not a default setting, but they do occur. According to the PHP project and Wordfence, these configurations are at risk:

  • NGINX with the setting fastcgi_keep_conn on (default is off); according to Wordfence, the templates of the management tool WordOps enable it
  • Apache with mod_proxy_fcgi and enablereuse=on
  • HAProxy, if it keeps FastCGI connections to the PHP server open

According to the PHP project, the faulty code has been in PHP since PHP 5.6.0. These versions are affected:

PHP versionAffected up toFixed from
8.28.2.358.2.36
8.38.3.368.3.37
8.48.4.278.4.28
8.58.5.128.5.13
8.1 and olderall versionsno version with a security update

How serious is the situation?

As of November 20, CVE-2026-129289 is not in the catalog of exploited vulnerabilities of the US agency CISA. However, the details are public, which is why Wordfence advises not to wait for evidence of attacks. According to Wordfence, six other critical PHP vulnerabilities from the same updates require special settings. The updated versions close them as well.

An update of WordPress, plugins, theme, or Wordfence changes nothing about PHP. The security update comes with PHP.

What this means for you

If you use a host that maintains PHP, ask with the number CVE-2026-129289 whether the security update has been applied. Hosts and Linux providers can also incorporate it into older packages without changing the version number. The Site Health in WordPress shows the PHP version, but does not confirm such a security update.

Do you need to act on PHP?
According to CVE-2026-129289, sorted by your server
Where does your WordPress site run?
  • With a host that maintains PHPRead the notes, ask the host about the security update
  • On your own serverInstall the PHP package, restart PHP-FPM and the web server
  • In a containerRebuild the container image with the updated PHP version
  • With PHP 8.1 or olderSwitch to a supported version
Only a server with persistently open connections to PHP-FPM and without a PHP update is at risk
Sources: Wordfence, PHP project

On your own server, you install the updated PHP package and restart PHP-FPM and the web server. Until then, it helps to turn off the persistently open connections: for NGINX, set fastcgi_keep_conn to off; for Apache, set enablereuse to off. This prevents the attack demonstrated in the test, but does not replace the update. With containers, a restart is not enough: Rebuild the container image with the updated PHP version.

Create a backup before every change. The lesson Sicherheit und Backups in the WordPress course shows how to do this with WordPress. Afterwards, check whether the site and plug-ins are running.

There is no security update for PHP 8.1 and older. In that case, plan to switch to a supported version. Whether a different plan fits better is shown by the comparison of shared hosting, cloud, and VPS.

According to Wordfence, the PHP project published the vulnerability on November 19, 2026, and Wordfence published its analysis on November 20, 2026.

Sources

Comments

Register and comment.

Continue reading

You might also like

View all articles →