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

- Severity: Medium 6.3 (CVSS:4.0, scored by php) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.85%, higher than 59% of CVEs (2026-12-01)
- Published: 2025-03-30T05:57:57.894Z
- Modified: 2026-09-10T16:01:45.192Z
- Also known as: BIT-LIBPHP-2025-1861, BIT-PHP-2025-1861, BIT-PHP-MIN-2025-1861, GHSA-52jp-hrpf-2jff
- Weaknesses: CWE-131
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: php

## 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.

(As written by CVE List.)

## Affected

- PHP Group 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
- php 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
- netapp ontap: 9
- libphp (Bitnami): before 8.1.32; from 8.2.0 before 8.2.28; from 8.3.0 before 8.3.19; from 8.4.0 before 8.4.5
- php (Bitnami): before 8.1.32; from 8.2.0 before 8.2.28; from 8.3.0 before 8.3.19; from 8.4.0 before 8.4.5
- php-min (Bitnami): before 8.1.32; from 8.2.0 before 8.2.28; from 8.3.0 before 8.3.19; from 8.4.0 before 8.4.5

## Every score

- php: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/php/php-src/security/advisories/GHSA-52jp-hrpf-2jff> (advisory, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20250523-0005/> (advisory, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/03/msg00014.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-1861> (web)

## Sources

- CVE List: [CVE-2025-1861](https://www.cve.org/CVERecord?id=CVE-2025-1861), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2025-1861](https://nvd.nist.gov/vuln/detail/CVE-2025-1861), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LIBPHP-2025-1861](https://osv.dev/vulnerability/BIT-LIBPHP-2025-1861), Apache-2.0, modified 2026-09-10
- Bitnami Vulnerability Database: [BIT-PHP-2025-1861](https://osv.dev/vulnerability/BIT-PHP-2025-1861), Apache-2.0, modified 2026-09-10
- Bitnami Vulnerability Database: [BIT-PHP-MIN-2025-1861](https://osv.dev/vulnerability/BIT-PHP-MIN-2025-1861), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2025-1861 · Whole record: https://cve.day/CVE-2025-1861.json · Rebuilt by cve.day 2026-11-25T22:58:55.689Z
