cbcvebase.
CVE-2025-1861
published 2025-03-30

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…

medium6.3CVSS 4.0
AVNACLATPPRNUINVCLVINVANSCNSINSANEXCRXIRXARXMAVXMACXMATXMPRXMUIXMVCXMVIXMVAXMSCXMSIXMSAXSXAUXRXVXREXUX
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

16 ranges
VendorProductVersion rangeFixed in
debianphp7.4< php7.4 7.4.33-1+deb11u8 (bullseye)php7.4 7.4.33-1+deb11u8 (bullseye)
debianphp8.2< php7.4 7.4.33-1+deb11u8 (bullseye)php7.4 7.4.33-1+deb11u8 (bullseye)
debianphp8.4< php7.4 7.4.33-1+deb11u8 (bullseye)php7.4 7.4.33-1+deb11u8 (bullseye)
msrcazl3_php_8.3.14-1_on_azure_linux_3.0
msrcazl3_php_8.3.19-1_on_azure_linux_3.0
msrccbl2_php_8.1.31-1_on_cbl_mariner_2.0
msrccbl2_php_8.1.32-1_on_cbl_mariner_2.0
netappontap
phpphp>= 8.1.0 < 8.1.318.1.31
phpphp>= 8.2.0 < 8.2.268.2.26
phpphp>= 8.3.0 < 8.3.148.3.14
phpphp>= 8.4.0 < 8.4.58.4.5
php_groupphp>= 8.1.* < 8.1.328.1.32
php_groupphp>= 8.2.* < 8.2.288.2.28
php_groupphp>= 8.3.* < 8.3.198.3.19
php_groupphp>= 8.4.* < 8.4.58.4.5

CVSS provenance

nvdv4.06.3MEDIUMCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
osv9.2CRITICAL