What’s Vulnerable › Vulnerabilities
CVE-2025-1861: Stream HTTP wrapper truncates redirect location to 1024 bytes
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.9% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-03-30 · updated 2026-06-17
- Weakness: CWE-131
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.
Affected products
- NetApp ONTAP 9: 9
- PHP: from 8.1.0 before 8.1.31; from 8.2.0 before 8.2.26; from 8.3.0 before 8.3.14; from 8.4.0 before 8.4.5 — fixed in 8.1.31, 8.2.26, 8.3.14, 8.4.5
How to fix
Upgrade to a fixed version: PHP 8.1.31, 8.2.26, 8.3.14, 8.4.5. Check the vendor advisory for mitigations.
References
- https://github.com/php/php-src/security/advisories/GHSA-52jp-hrpf-2jff
- https://lists.debian.org/debian-lts-announce/2025/03/msg00014.html
- https://security.netapp.com/advisory/ntap-20250523-0005/
Get alerted when CVE-2025-1861 or the next vulnerability affects your stack