CVE-2025-1861

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

No CVSS.

Configurations

No configuration.

History

01 Apr 2025, 20:26

Type Values Removed Values Added
Summary
  • (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.

30 Mar 2025, 06:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-03-30 06:15

Updated : 2025-04-01 20:26


NVD link : CVE-2025-1861

Mitre link : CVE-2025-1861

CVE.ORG link : CVE-2025-1861


JSON object : View

Products Affected

No product.

CWE
CWE-131

Incorrect Calculation of Buffer Size