CVE-2025-1861
JSON

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 packageVersionsReported by
PHP Group PHPfrom 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.5CVE List
php phpfrom 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.5NVD
netapp ontap9NVD
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.5Bitnami 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.5Bitnami 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.5Bitnami Vulnerability Database

All scores

php6.3medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Bitnami Vulnerability Databasecritical rating

Classification

CWE-131

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

Sources

SourceRecordLicence
CVE ListCVE-2025-1861 changed 2025-11-03CVE Terms of Use
NVDCVE-2025-1861 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-LIBPHP-2025-1861 changed 2026-09-10Apache-2.0
Bitnami Vulnerability DatabaseBIT-PHP-2025-1861 changed 2026-09-10Apache-2.0
Bitnami Vulnerability DatabaseBIT-PHP-MIN-2025-1861 changed 2026-09-10Apache-2.0