# CVE-2025-1861: Stream HTTP wrapper truncates redirect location to 1024 bytes

- Priority: **Routine**
- Reason: Not severe (CVSS 6.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-03-30 · Modified: 2025-11-03
- Aliases: UBUNTU-CVE-2025-1861, DEBIAN-CVE-2025-1861, ALPINE-CVE-2025-1861
- Record: https://cvemate.com/vulnerability/CVE-2025-1861 · JSON: https://cvemate.com/vulnerability/CVE-2025-1861/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.849%, percentile 59.41%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine php81 (Alpine Linux): \< 8.1.32-r0
- alpine php82 (Alpine Linux): \< 8.2.28-r0
- alpine php83 (Alpine Linux): \< 8.3.18-r0
- debian php8.2 (Debian): \< 8.2.28-1~deb12u1
- debian php8.4 (Debian): \< 8.4.5-1
- ubuntu php5 (Ubuntu): All versions (No fix recorded)
- ubuntu php7.0 (Ubuntu): \< 7.0.33-0ubuntu0.16.04.16+esm15
- ubuntu php7.2 (Ubuntu): \< 7.2.24-0ubuntu0.18.04.17+esm8
- ubuntu php7.4 (Ubuntu): \< 7.4.3-4ubuntu2.29
- ubuntu php8.1 (Ubuntu): \< 8.1.2-1ubuntu2.21
- ubuntu php8.3 (Ubuntu): \< 8.3.6-0ubuntu0.24.04.4
- netapp ontap: 9
- php group php: ≥ 8.1.\*, \< 8.1.32 \| ≥ 8.2.\*, \< 8.2.28 \| ≥ 8.3.\*, \< 8.3.19 \| ≥ 8.4.\*, \< 8.4.5
- php php: ≥ 8.1.0, \< 8.1.31 \| ≥ 8.2.0, \< 8.2.26 \| ≥ 8.3.0, \< 8.3.14 \| ≥ 8.4.0, \< 8.4.5

## References

- <https://github.com/php/php-src/security/advisories/GHSA-52jp-hrpf-2jff>
- <https://security.netapp.com/advisory/ntap-20250523-0005/>
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00014.html>
- <https://ubuntu.com/security/CVE-2025-1861>
- <https://www.cve.org/CVERecord?id=CVE-2025-1861>
- <https://github.com/php/php-src/commit/ac1a054bb3eb5994a199e8b18cca28cbabf5943e>
- <https://ubuntu.com/security/notices/USN-7400-1>
- <https://ubuntu.com/security/notices/USN-7645-1>
- <https://security-tracker.debian.org/tracker/CVE-2025-1861>
- <https://nvd.nist.gov/vuln/detail/CVE-2025-1861>
- <https://security.alpinelinux.org/vuln/CVE-2025-1861>

---

Data as of 2026-12-05T03:01:12.611Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
