6.3medium
Stream HTTP wrapper truncates redirect location to 1024 bytes
- Severity
- 6.3medium CVSS:4.0 by php
- Exploit likelihood
- 0.85% (higher than 59% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- php
- Also known as
- BIT-LIBPHP-2025-1861BIT-PHP-2025-1861BIT-PHP-MIN-2025-1861GHSA-52jp-hrpf-2jff
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
| Product or package | Versions | Reported by |
|---|---|---|
| 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 | CVE List |
| 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 | NVD |
| netapp ontap | 9 | NVD |
| 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 | Bitnami Vulnerability Database |
| 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 | Bitnami Vulnerability Database |
| 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 | Bitnami Vulnerability Database |
All scores
| php | 6.3medium CVSS:4.0 | 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 | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Bitnami Vulnerability Database | critical rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En PHP desde 8.1.* antes de 8.1.32, desde 8.2.* antes de 8.2.28, desde 8.3.* antes de 8.3.19, desde 8.4.* antes de 8.4.5, al analizar la redirección HTTP en la respuesta a una solicitud HTTP, actualmente hay un límite en el tamaño del valor de ubicación debido al tamaño limitado del búfer de ubicación a 1024. Sin embargo, según RFC9110, se recomienda que el límite sea 8000. Esto puede provocar un truncamiento incorrecto de la URL y la redirección a una ubicación incorrecta.
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-1861 changed 2025-11-03 | CVE Terms of Use |
| NVD | CVE-2025-1861 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-LIBPHP-2025-1861 changed 2026-09-10 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PHP-2025-1861 changed 2026-09-10 | Apache-2.0 |
| Bitnami Vulnerability Database | BIT-PHP-MIN-2025-1861 changed 2026-09-10 | Apache-2.0 |