VulnWatch by ve1ve2
critical 9.8 EPSS 0.86%

GHSA-52jp-hrpf-2jff / CVE-2025-1861: Stream HTTP wrapper truncate redirect location to 1024 bytes

Source:
PHP releases (GitHub php/php-src tags)
Published:
Fetched:
Updated:
Affects:
php php-src

https://github.com/php/php-src/security/advisories/GHSA-52jp-hrpf-2jff ↗

repo-advisorysecurityrepo:php/php-srcstack

Stream HTTP wrapper truncate redirect location to 1024 bytes There is currently limit on the location value size caused by limited size of the location buffer to 1024. However as per https://www.rfc-editor.org/rfc/rfc9110#name-uri-references , the limit is recommended to 8000. The browser limit is usually around 2048 so 1024 is really too low and it might have a real impact in practice. ### Impact The URI truncation might result in omitting some critical information (e.g. from the query) or even redirection to other resources. It could even result in DOS of the remote site if the trucated URL results in error. ### Workarounds There is no real workaround for this Patched: 8.1.32, 8.2.28, 8.3.19, 8.4.5

Linked vulnerabilities (2)

CVE-2025-1861 critical 9.8 EPSS 0.86% (p59) NVDCVE.orgGHSA
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

php8.2 - security update

Aliases: CVE-2025-1217, CVE-2025-1219, CVE-2025-1734, CVE-2025-1736, GHSA-52jp-hrpf-2jff

Stream HTTP wrapper truncate redirect location to 1024 bytes

Aliases: CVE-2025-1861