PHPのPHP-FPMで未読のリクエスト本文を悪用され遠隔からコードを実行される脆弱性
Summary
PHP-FPMに、未読のHTTPリクエスト本文が原因でリクエストが混同されるリクエストスマグリングの脆弱性があります。認証なしの攻撃者が1件の細工したmultipart/form-dataリクエストで、細工したPHPコードを実行させるおそれがあり、CVSS v4は9.2です。PHP 8.2.36、8.3.37、8.4.28、8.5.13以降の修正版で解消されるため、速やかに更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
PHP-FPMに、未読のHTTPリクエスト本文が原因でリクエストが混同されるリクエストスマグリングの脆弱性があります。認証なしの攻撃者が1件の細工したmultipart/form-dataリクエストで、細工したPHPコードを実行させるおそれがあり、CVSS v4は9.2です。PHP 8.2.36、8.3.37、8.4.28、8.5.13以降の修正版で解消されるため、速やかに更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| PHP GroupPHP |
< 8.2.36→ 8.2.36 ≥ 8.3.0, < 8.3.37→ 8.3.37 ≥ 8.4.0, < 8.4.28→ 8.4.28 ≥ 8.5.0, < 8.5.13→ 8.5.13 |
8.2.36 8.3.37 8.4.28 8.5.13 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-129289 php8.4, php8.2 Fix available
- Ubuntu UBUNTU-CVE-2026-129289 php8.5, php8.3, php8.1 +4 more No fixed version in this record
Original description The description as published by the source.
PHP-FPM request smuggling through an unread HTTP request body.
PHP does not discard the unread part of an HTTP request body at request shutdown when 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. 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.
This issue affects PHP versions 8.2.* before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
Source: CVE.org (CVE Program・cvelistV5) NVD
References
- web security@php.net
- web github.com
- web bugzilla.suse.com
- web ubuntu.com