Incorrect Calculation of Buffer Size Affecting php package, versions [,8.1.32)[8.2.0,8.2.28)[8.3.0,8.3.19)[8.4.0,8.4.5)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.1% (28th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-PHP-9801565
  • published23 Apr 2025
  • disclosed30 Mar 2025
  • creditUnknown

Introduced: 30 Mar 2025

CVE-2025-1861  (opens in a new tab)
CWE-131  (opens in a new tab)

How to fix?

Upgrade php to version 8.1.32, 8.2.28, 8.3.19, 8.4.5 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Calculation of Buffer Size due to the truncation of the redirect location to 1024 bytes. An attacker can cause incorrect URL truncation and redirection to a wrong location by exploiting the limited size of the location buffer during HTTP redirect handling.

CVSS Base Scores

version 4.0
version 3.1