CVE-2025-1861
PHP Group PHP — Stream HTTP wrapper truncates redirect location to 1024 bytes
Description · from the CVE record
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
ProductAffectedFixed inSource
PHP8.1.* – < 8.1.328.1.32CNA
PHP8.2.* – < 8.2.288.2.28CNA
PHP8.3.* – < 8.3.198.3.19CNA
PHP8.4.* – < 8.4.58.4.5CNA
Scores by source
NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
php (CNA)6.3CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N
CISA ADPSSVCExploitation: none · Automatable: yes · Technical impact: partial