Summary
PHP does not discard the unread part of an HTTP request body when an application opens php://input without reading it to the end, which in certain configurations lets PHP-FPM parse the leftover bytes as a new FastCGI request. The source assigns a CVSS 4.0 score of 9.2 (critical severity).
What happened
At request shutdown, PHP does not discard the unread part of the HTTP request body if the application has opened php://input without reading it to the end. When the front end reuses backend connections (which is not the default in nginx or Apache; for example nginx with fastcgi_keep_conn on, or Apache mod_proxy_fcgi with enablereuse=on), PHP-FPM can parse the leftover bytes as a new FastCGI request. According to the description, an unauthenticated remote attacker can use a single crafted multipart/form-data request to forge a backend request with chosen parameters such as SCRIPT_FILENAME, REMOTE_ADDR and PHP_ADMIN_VALUE, which can lead to execution of attacker-controlled PHP code. With LSAPI, subsequent requests on the connection can be disrupted. It is associated with CWE-444 and CWE-670. Identifier: CVE-2026-129289 (GHSA-qc49-hpvq-g2w6).
Why it matters
The CVSS 4.0 score is 9.2 (critical), with vector CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N, assigned by the PHP CNA. The attack is described as remote and unauthenticated and can lead to code execution, but only in deployments that reuse backend connections. CISA's KEV catalog does not list it as exploited, and the source does not state active exploitation.
Affected products and versions
PHP (PHP Group): versions before 8.2.36; 8.3.x before 8.3.37 (>= 8.3.0, < 8.3.37); 8.4.x before 8.4.28 (>= 8.4.0, < 8.4.28); 8.5.x before 8.5.13 (>= 8.5.0, < 8.5.13).
| Product | Versions | Fixed in |
|---|---|---|
| PHP Group PHP | 8.5.x before 8.5.13 | 8.5.13 |
| PHP Group PHP | 8.4.x before 8.4.28 | 8.4.28 |
| PHP Group PHP | 8.3.x before 8.3.37 | 8.3.37 |
| PHP Group PHP | 8.2.x before 8.2.36 | 8.2.36 |
| PHP Group PHP | < 8.2.36 | — |
| PHP Group PHP | >= 8.3.0, < 8.3.37 | — |
| PHP Group PHP | >= 8.4.0, < 8.4.28 | — |
| PHP Group PHP | >= 8.5.0, < 8.5.13 | — |
Action recommended by the source
The vendor lists fixed versions: 8.2.36, 8.3.37, 8.4.28 and 8.5.13. Release notes are at https://www.php.net/ChangeLog-8.php and the advisory at https://github.com/php/php-src/security/advisories/GHSA-qc49-hpvq-g2w6. The source does not state other mitigations.
Fixed in: 8.2.36, 8.3.37, 8.4.28, 8.5.13
Sources and references
- https://www.php.net/ChangeLog-8.php#8.5.13 — PHP
- https://www.php.net/ChangeLog-8.php#8.4.28 — PHP
- https://www.php.net/ChangeLog-8.php#8.3.37 — PHP
- https://www.php.net/ChangeLog-8.php#8.2.36 — PHP
- https://github.com/php/php-src/security/advisories/GHSA-qc49-hpvq-g2w6 — CVE Program
- https://access.redhat.com/security/cve/cve-2026-129289 — NVD
- https://bugzilla.suse.com/show_bug.cgi?id=1290687 — NVD
- https://github.com/anonaddy/docker/issues/465 — NVD
- https://github.com/tc4dy/CVE-2026-129289-PoC-Exploit/blob/9771ee81f89524d324bef106de1531c3c23c1b28/exploit/exploit.py#L114-L122 — NVD
- https://ubuntu.com/security/CVE-2026-129289 — NVD
- https://www.upwind.io/blog/php-critical-vulnerabilities-affected-versions-and-mitigations — NVD
Weaknesses (CWE): CWE-444, CWE-670
Relevant change history
Advisory correction
The preliminary version was replaced by the full write-up.
Published
Preliminary advisory published.