CVE-2025-1861 Stream HTTP wrapper truncates redirect location to 1024 bytes
MediumCVSS 6.3
EPSS 0.86%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- PHPUbuntuDebianPHP (language)
Description
In PHP from 8.1.* before 8.1.32, from 8.2.* before 8.2.28, from 8.3.* before 8.3.19, from 8.4.* before 8.4.5, when parsing HTTP redirect in the response to an HTTP request, there is currently limit on the location value size caused by limited size of the location buffer to 1024. However as per RFC9110, the limit is recommended to be 8000. This may lead to incorrect URL truncation and redirecting to a wrong location.
Upgrade path
17 packages: 16 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| alpine/php81(Alpine v3.19) | < 8.1.32-r0 | 8.1.32-r0 | Fixed |
| alpine/php82(Alpine v3.20) | < 8.2.28-r0 | 8.2.28-r0 | Fixed |
| alpine/php82(Alpine v3.21) | < 8.2.28-r0 | 8.2.28-r0 | Fixed |
| alpine/php82(Alpine v3.22) | < 8.2.28-r0 | 8.2.28-r0 | Fixed |
| alpine/php83(Alpine v3.21) | < 8.3.18-r0 | 8.3.18-r0 | Fixed |
| alpine/php83(Alpine v3.22) | < 8.3.18-r0 | 8.3.18-r0 | Fixed |
| alpine/php83(Alpine v3.23) | < 8.3.18-r0 | 8.3.18-r0 | Fixed |
| alpine/php83(Alpine v3.24) | < 8.3.18-r0 | 8.3.18-r0 | Fixed |
| debian/php8.2(Debian 12) | < 8.2.28-1~deb12u1; = 8.2.5-2; = 8.2.7-1; = 8.2.7-1.1 +20 more | 8.2.28-1~deb12u1 | Fixed |
| debian/php8.4(Debian 13) | < 8.4.5-1 | 8.4.5-1 | Fixed |
| debian/php8.4(Debian 14) | < 8.4.5-1 | 8.4.5-1 | Fixed |
| PHP | < 8.1.32; < 8.2.28; < 8.3.19; < 8.4.5 +4 more | 8.1.31, 8.1.32, 8.2.26, 8.2.28, 8.3.14, 8.3.19, 8.4.5 | Fixed |
| PHP(Azure Linux 3.0) | < 8.3.19-1 | 8.3.19-1 | Fixed |
| PHP(CBL-Mariner 2.0) | < 8.1.32-1 | 8.1.32-1 | Fixed |
| ubuntu/php8.1(Ubuntu 22.04) | < 8.1.2-1ubuntu2.21 | 8.1.2-1ubuntu2.21 | Fixed |
| ubuntu/php8.3(Ubuntu 24.04) | < 8.3.6-0ubuntu0.24.04.4 | 8.3.6-0ubuntu0.24.04.4 | Fixed |
| netapp ontap | = 9 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| PHP(Azure Linux:3.0) | < 8.3.19-1 | 8.3.19-1 |
| PHP(CBL-Mariner:2.0) | < 8.1.32-1 | 8.1.32-1 |
| debian/php8.2(Debian:12) | < 8.2.28-1~deb12u1 | 8.2.28-1~deb12u1 |
| debian/php8.2(Debian:12) | = 8.2.10-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.10-2 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.12-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.16-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.16-2 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.17-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.18-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.18-1~deb12u1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.20-1~deb12u1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.20-2 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.20-3 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.21-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.23-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.24-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.24-1~deb12u1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.26-1~deb12u1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.26-4 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.27-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.5-2 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.7-1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.7-1.1 | No fix listed |
| debian/php8.2(Debian:12) | = 8.2.7-1.2 | No fix listed |
Show 22 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/php8.2(Debian:12) | = 8.2.7-1~deb12u1 | No fix listed |
| debian/php8.4(Debian:13) | < 8.4.5-1 | 8.4.5-1 |
| debian/php8.4(Debian:14) | < 8.4.5-1 | 8.4.5-1 |
| PHP | < 8.1.32 | 8.1.32 |
| PHP | < 8.2.28 | 8.2.28 |
| PHP | < 8.3.19 | 8.3.19 |
| PHP | < 8.4.5 | 8.4.5 |
| ubuntu/php8.1(Ubuntu:22.04) | < 8.1.2-1ubuntu2.21 | 8.1.2-1ubuntu2.21 |
| alpine/php81(Alpine:v3.19) | < 8.1.32-r0 | 8.1.32-r0 |
| alpine/php82(Alpine:v3.20) | < 8.2.28-r0 | 8.2.28-r0 |
| alpine/php82(Alpine:v3.21) | < 8.2.28-r0 | 8.2.28-r0 |
| alpine/php82(Alpine:v3.22) | < 8.2.28-r0 | 8.2.28-r0 |
| alpine/php83(Alpine:v3.21) | < 8.3.18-r0 | 8.3.18-r0 |
| alpine/php83(Alpine:v3.22) | < 8.3.18-r0 | 8.3.18-r0 |
| alpine/php83(Alpine:v3.23) | < 8.3.18-r0 | 8.3.18-r0 |
| alpine/php83(Alpine:v3.24) | < 8.3.18-r0 | 8.3.18-r0 |
| ubuntu/php8.3(Ubuntu:24.04) | < 8.3.6-0ubuntu0.24.04.4 | 8.3.6-0ubuntu0.24.04.4 |
| PHP | >= 8.1.0, < 8.1.31 | 8.1.31 |
| PHP | >= 8.2.0, < 8.2.26 | 8.2.26 |
| PHP | >= 8.3.0, < 8.3.14 | 8.3.14 |
| PHP | >= 8.4.0, < 8.4.5 | 8.4.5 |
| netapp ontap | = 9 | No fix listed |
References
- MSRC Security Update Guide vendor-advisory
- CBL-Mariner Releases vendor-advisory
- Debian Security Tracker CVE-2025-1861 vendor-advisory
- github.com vendor-advisory
- security.netapp.com third-party-advisory
- lists.debian.org
- Ubuntu CVE tracker vendor-advisory
- USN-7400-1 vendor-advisory
- USN-7645-1 vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory