CVE-2025-1861
published 2025-03-30CVE-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
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | php7.4 | < php7.4 7.4.33-1+deb11u8 (bullseye) | php7.4 7.4.33-1+deb11u8 (bullseye) |
| debian | php8.2 | < php7.4 7.4.33-1+deb11u8 (bullseye) | php7.4 7.4.33-1+deb11u8 (bullseye) |
| debian | php8.4 | < php7.4 7.4.33-1+deb11u8 (bullseye) | php7.4 7.4.33-1+deb11u8 (bullseye) |
| msrc | azl3_php_8.3.14-1_on_azure_linux_3.0 | — | — |
| msrc | azl3_php_8.3.19-1_on_azure_linux_3.0 | — | — |
| msrc | cbl2_php_8.1.31-1_on_cbl_mariner_2.0 | — | — |
| msrc | cbl2_php_8.1.32-1_on_cbl_mariner_2.0 | — | — |
| netapp | ontap | — | — |
| php | php | >= 8.1.0 < 8.1.31 | 8.1.31 |
| php | php | >= 8.2.0 < 8.2.26 | 8.2.26 |
| php | php | >= 8.3.0 < 8.3.14 | 8.3.14 |
| php | php | >= 8.4.0 < 8.4.5 | 8.4.5 |
| php_group | php | >= 8.1.* < 8.1.32 | 8.1.32 |
| php_group | php | >= 8.2.* < 8.2.28 | 8.2.28 |
| php_group | php | >= 8.3.* < 8.3.19 | 8.3.19 |
| php_group | php | >= 8.4.* < 8.4.5 | 8.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