CVE-2025-1861

Stream HTTP wrapper truncates redirect location to 1024 bytes

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.


We have discovered 281,244 live websites that are affected by CVE-2025-1861.

Run a Free Instant Scan




Affected Software

Product  PHP
Category Programming Languages
Vulnerable Domains281,244 live websites (4.06% of PHP install base)
Vulnerable Versions
  • from 8.1 through 8.1.32
  • from 8.2 through 8.2.28
  • from 8.3 through 8.3.19
  • from 8.4 through 8.4.5
Vulnerable Versions Count84 versions ( 16% of all versions)


Common Weakness Enumeration

CWE-131 Incorrect Calculation of Buffer Size



Details

  • Published - Mar 30, 2025
  • Updated - Nov 3, 2025

Credits

  • Jakub Zelenka (reporter)

Website Distribution by Country

Number of websites using CVE-2025-1861
United States53,859 websites



France109,084 websites
Russia18,532 websites
Germany9,764 websites
Netherlands7,421 websites
Brazil7,178 websites
Italy6,657 websites
Poland6,309 websites
Spain4,798 websites
GB4,798 websites

Website Distribution by TLD

Number of websites using CVE-2025-1861
.com99,332 websites
.fr45,650 websites
.ru16,124 websites
.org12,285 websites
.net8,960 websites
.nl6,885 websites
.be6,201 websites
.com.br6,047 websites
.pl5,888 websites
.it5,526 websites

Vulnerable Versions

Vulnerable versions are highlighted in red

Websites affected by CVE-2025-1861

Top websites that are affected by CVE-2025-1861. Please click on the "Contact us" link to get more information.
DomainCountryRankContacts
****************.com United States*,***
********.********.it Italy*,***
*******.com Germany*,***
*******.com United States*,***
***********************.com United States*,***
**********.edu United States*,***
***************.org United States*,***
***.de Germany*,***
****.org United States*,***
************.com United States*,***
See full domain list

FAQ

CVE-2025-1861 is Incorrect Calculation of Buffer Size in PHP
A total of 281,244 websites have been identified as vulnerable to CVE-2025-1861, based on global website indexing conducted by WebTechSurvey.
The PHP is affected by the CVE-2025-1861 vulnerability.
PHP versions up to 8.4.5 are vulnerable to CVE-2025-1861.
CVE-2025-1861 is resolved in version 8.4.5 of PHP.