#PHP Security

CVE-2026-129289: PHP-FPM Request Smuggling through an Unread HTTP Request Body

A critical vulnerability in PHP-FPM allows attackers to execute controlled PHP code.

CVE-2026-129289: PHP-FPM Request Smuggling through an Unread HTTP Request Body

Introduction

The CVE-2026-129289 vulnerability affects PHP-FPM, allowing an unauthenticated remote attacker to execute controlled PHP code through a malicious HTTP request. This flaw is considered critical and should be addressed urgently.

What happened?

PHP does not discard the unread part of an HTTP request body during request shutdown when the application has opened php://input without reading it to the end. When the front end reuses backend connections, PHP-FPM may interpret the leftover bytes as a new FastCGI request, allowing an attacker to manipulate parameters such as SCRIPT_FILENAME, REMOTE_ADDR, and PHP_ADMIN_VALUE.

How the vulnerability works

The vulnerability occurs when an attacker sends a malicious multipart/form-data request. If the server is configured to reuse backend connections, PHP-FPM may process the unread data as a new request, leading to unauthorized PHP code execution.

What is the real impact?

An attacker can exploit this vulnerability to execute arbitrary PHP code on the affected server, potentially resulting in significant security compromises, including unauthorized access to sensitive data and complete control over the application.

Which versions are affected?

  • PHP 8.2.* before 8.2.36
  • PHP 8.3.* before 8.3.37
  • PHP 8.4.* before 8.4.28
  • PHP 8.5.* before 8.5.13

How to fix

  1. Check the PHP version in use on your server.
  2. Upgrade to a patched version of PHP as indicated by the vendor.
  3. Test the application after the upgrade to ensure there are no compatibility issues.
  4. Monitor PHP security advisories for further updates.

Mitigation while you update

While an update is not possible, consider disabling connection reuse on your web server or implementing firewall rules to limit access to malicious requests.

Conclusion

The CVE-2026-129289 vulnerability poses a significant risk to PHP-FPM applications. It is crucial for system administrators to take immediate action to update their versions and protect their environments.

// Fontes

  1. NVD — CVE-2026-129289 nvd.nist.gov ↗
  2. CVE.org — CVE-2026-129289 cve.org ↗
  3. GitHub github.com ↗

// ++ — related