CVE-2025-1861
Stream HTTP wrapper truncates redirect location to 1024 bytes
Reported by php · Published March 30, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| php8.1-bcmath | Amazon Linux | 8.1.32-1.amzn2023.0.1 |
| php8.1-devel | Amazon Linux | 8.1.32-1.amzn2023.0.1 |
| php8.3-enchant | Amazon Linux | 8.3.19-1.amzn2023.0.1 |
| php8.1-mysqlnd | Amazon Linux | 8.1.32-1.amzn2023.0.1 |
| php8.2-xml | Amazon Linux | 8.2.28-1.amzn2023.0.1 |
| php8.1-enchant | Amazon Linux | 8.1.32-1.amzn2023.0.1 |
| php8.3-tidy | Amazon Linux | 8.3.19-1.amzn2023.0.1 |
| php8.1-fpm | Amazon Linux | 8.1.32-1.amzn2023.0.1 |
| php8.3-dbg | Amazon Linux | 8.3.19-1.amzn2023.0.1 |
| php8.1-xml | Amazon Linux | 8.1.32-1.amzn2023.0.1 |
| php8.3-zip | Amazon Linux | 8.3.19-1.amzn2023.0.1 |
| php8.2-ffi | Amazon Linux | 8.2.28-1.amzn2023.0.1 |
86 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| PHP Group | PHP | 8.1.*, 8.2.*, 8.3.* |
| amazon:2023 | php8.1-bcmath | 0 |
| amazon:2023 | php8.1-devel | 0 |
| amazon:2023 | php8.3-enchant | 0 |
| amazon:2023 | php8.1-mysqlnd | 0 |
| amazon:2023 | php8.2-xml | 0 |
| amazon:2023 | php8.1-enchant | 0 |
| amazon:2023 | php8.3-tidy | 0 |
| amazon:2023 | php8.1-fpm | 0 |
| amazon:2023 | php8.3-dbg | 0 |
| amazon:2023 | php8.1-xml | 0 |
| amazon:2023 | php8.3-zip | 0 |
| amazon:2023 | php8.2-ffi | 0 |
| PHP Group | PHP | 8.4.*, 8.1.*, 8.2.* |
| amazon:2023 | php8.1-pdo | 0 |
| alpine | php83 | 0 |
| amazon:2023 | php8.2-sodium | 0 |
| amazon:2023 | php8.1-intl | 0 |
| amazon:2023 | php8.1-snmp | 0 |
| amazon:2023 | php8.2-devel | 0 |
…and 72 more
Timeline
- Mar 13, 2025 CVE Published
- Mar 30, 2025 EPSS Score (30 in total, the first dated here)
- Mar 30, 2025 Coalition ESS Score (16 in total, the first dated here)
- Nov 3, 2025 CVE Updated
- Aug 15, 2026 Security Advisory (13 in total, the first dated here)
- Oct 23, 2026 Distribution Patch (9 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-1861
vulnetix vdb fixes CVE-2025-1861
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-1861/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart