What happened

On 19 November 2026 the PHP project released security updates for every supported branch: PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36. According to the PHP security team's advance notice, the highest severity is critical, and the critical issues require non-default configuration or uncommon setups. Security firm Aikido counts 18 CVEs fixed across the core engine, session handling, PHP-FPM, CGI and other components.

The most serious is CVE-2026-129289, rated 9.2. According to PHP's advisory as summarised by Aikido and Zend, PHP does not discard the unread part of an HTTP request body at request shutdown when an application has opened php://input without reading it to the end. If the web server in front of PHP-FPM reuses its backend connection, PHP-FPM can parse the leftover bytes as a new FastCGI request. An unauthenticated attacker can use one crafted multipart/form-data request to forge a backend request with chosen parameters such as SCRIPT_FILENAME and PHP_ADMIN_VALUE, which can lead to execution of attacker-controlled PHP code as the worker.

Other notable fixes reported by BleepingComputer and Aikido include CVE-2026-126714 (partially overwritten session files, nicknamed phpAfterShell), CVE-2026-115560 (session serializer mismatch, first announced on 23 October), two use-after-free bugs that can lead to code execution (CVE-2026-129474 and CVE-2026-129496), a PHP-FPM epoll use-after-free for local privilege escalation (CVE-2026-129291) and a PHAR signature downgrade (CVE-2026-128090).

Why it matters

PHP runs a large share of the web, and PHP-FPM sits behind most nginx and Apache deployments. The phrase non-default configuration sounds reassuring, but backend connection reuse is a well-known performance optimisation, so busy sites are the ones most likely to have it switched on.

The October PHP2Shell fixes do not cover this release, according to Aikido. Teams that patched in October still need to update.

As of 20 November, third-party trackers report no exploitation in the wild and no CISA KEV listing. Those sources also mention public proof-of-concept details for some of the other CVEs in the release, and a security vendor reported reproducing command execution for CVE-2026-129289 in a lab within an hour of disclosure. Exploit status changes quickly after a release like this, so re-check before you decide how urgent the work is.

What defenders should check

  • Version: anything earlier than 8.5.13, 8.4.28, 8.3.37 or 8.2.36 on those branches is in scope. Zend lists older branches such as 7.2 to 7.4 and 8.1 as affected too, and they receive no upstream fix; use a vendor-maintained backport or migrate.
  • Connection reuse: nginx with fastcgi_keep_conn on, Apache mod_proxy_fcgi with enablereuse=on, HAProxy FastCGI applications that keep connections, and LSAPI. Standard nginx and Apache setups that close the connection after each request are not affected by the demonstrated attack, according to PHP.
  • Application behaviour: code or frameworks that open php://input and do not read it fully.
  • Sessions, phpAfterShell: CVE-2026-126714 affects the default file session handler, but PHP's advisory says code execution also needs a write interrupted at a useful moment and a suitable deserialization gadget chain in the application. The public proof the researchers released reportedly uses a harmless built-in object. PHP 8.6.0 was released the same day with the fix, and the new releases switch session upload progress off by default; apps that rely on it must turn it back on.
  • Sessions: for CVE-2026-115560, exposure needs session.serialize_handler set to php_binary or php_serialize plus a runtime ini_set() switch to php, with session upload progress enabled (the default), according to Aikido.
  • Listeners: PHP-FPM and LSAPI sockets reachable from untrusted networks.
  • Containers: rebuild base images; a running container keeps the old PHP until redeployed.

Starting points for finding exposed hosts (scope to your own ranges and test first): Shodan "X-Powered-By: PHP" org:"<your org>" and Censys services.http.response.headers.x_powered_by: "PHP" and ip: <your ranges>. Many sites hide this header, so rely on your internal inventory.

Detection ideas

These are starting points to adapt and test in your environment, not production-ready rules.

Find risky front-end settings:

grep -RniE 'fastcgi_keep_conn\s+on|enablereuse\s*=\s*on' /etc/nginx /etc/apache2 /etc/httpd /etc/haproxy 2>/dev/null
php -v; php-fpm -v

Hunt for web server children spawned by PHP-FPM (KQL against Linux process events; adjust table and field names to your EDR):

DeviceProcessEvents
| where InitiatingProcessFileName in~ ("php-fpm", "php-fpm8.2", "php-fpm8.3", "php-fpm8.4", "php-fpm8.5")
| where FileName in~ ("sh", "bash", "curl", "wget", "nc", "python3")
| project Timestamp, DeviceName, InitiatingProcessCommandLine, FileName, ProcessCommandLine

New or modified PHP files in web roots since the release window:

find /var/www -type f -name '*.php' -newermt '2026-11-19' -ls

Request smuggling often shows up as odd multipart uploads to endpoints that never process files, followed by requests in the PHP-FPM log with unexpected script paths. Compare front-end access logs with PHP-FPM logs for scripts that ran without a matching client request.

Investigation

If a host ran an affected version with connection reuse enabled and was reachable from untrusted networks, treat it as a candidate for review:

  1. Preserve web server access and error logs, PHP-FPM logs and the FPM pool configuration before restarting anything.
  2. Collect a file listing with timestamps for web roots, upload directories and the PHP session directory.
  3. Review process history and outbound connections from the PHP-FPM user around any suspicious request.
  4. Check for unexpected cron entries, SSH keys and new local accounts for the worker user.
  5. If you find execution, rotate application secrets, database credentials and API keys the worker could read.

Our incident response and compromise assessment teams use this kind of evidence list when a web tier is suspected.

Mitigation

  • Patch: PHP 8.5.13, 8.4.28, 8.3.37 or 8.2.36, then restart PHP-FPM. Source and Windows builds are on php.net.
  • Until patched (CVE-2026-129289): turn off backend connection reuse so the connection closes after each request. Aikido notes that reading php://input to the end is not a reliable fix alone.
  • Sessions (CVE-2026-115560): set session.upload_progress.enabled=0 in php.ini, an FPM pool or server configuration, not with ini_set() or .user.ini, and restart workers. This does not cover the other critical issues.
  • Network: do not expose PHP-FPM or LSAPI listeners to untrusted networks.
  • End-of-life versions: Aikido and Ondrej Sury have published backported builds for some older versions; plan an upgrade rather than relying on them long term.