Skip to main content

Undiscarded unread HTTP request bytes lead to RCE in PHP-FPM and LSAPI

Publication Date 2026-11-19
Severity Critical
Type Remote Code Execution
Affected PHP Versions
  • 7.2.0-7.2.34
  • 7.3.0-7.3.33
  • 7.4.0-7.4.33
  • 8.1.0-8.1.34
  • 8.2.0-8.2.35
  • 8.3.0-8.3.36
  • 8.4.0-8.4.27
  • 8.5.0-8.5.12
Fixed Product Versions
  • ZendPHP 7.2
  • ZendPHP 7.3
  • ZendPHP 7.4
  • ZendPHP 8.1
  • ZendPHP 8.2
  • ZendPHP 8.3
  • ZendPHP 8.4
  • ZendPHP 8.5
  • ZendServer 2021.4.10

CVE Details

PHP can fail to discard unread bytes from an HTTP request body before reusing a persistent PHP-FPM or LSAPI connection. In PHP-FPM, an unauthenticated attacker can make those bytes form a separate FastCGI request, bypass front-end routing and execute attacker-controlled PHP code with the privileges of the worker.

Recommendations

If you are using Apache HTTPd, check to see if you have enablereuse=on for your mod_proxy_fcgi settings; if so, remove this line and restart your web server.

If using nginx, check to see if you have fastcgi_keep_conn on declared; if so, remove the line and restart your web server.

When possible, update to a known patched version of PHP.