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

Wed, 02 Apr 2025 02:00:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'}

threat_severity

Moderate


Mon, 31 Mar 2025 13:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sun, 30 Mar 2025 06:15:00 +0000

Type Values Removed Values Added
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.
Title Stream HTTP wrapper truncates redirect location to 1024 bytes
Weaknesses CWE-131
References
Metrics cvssV4_0

{'score': 6.3, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: php

Published:

Updated: 2025-03-31T12:56:00.966Z

Reserved: 2025-03-03T04:47:51.192Z

Link: CVE-2025-1861

cve-icon Vulnrichment

Updated: 2025-03-31T12:55:56.941Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2025-03-30T06:15:14.957

Modified: 2025-04-01T20:26:30.593

Link: CVE-2025-1861

cve-icon Redhat

Severity : Moderate

Publid Date: 2025-03-30T05:57:57Z

Links: CVE-2025-1861 - Bugzilla