CVE-2025-1861 Details
Description
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.
A vulnerability exists in PHP versions prior to 8.1.32, prior to 8.2.28, prior to 8.3.19, and prior to 8.4.5, due to an inadequate buffer size for HTTP redirect location values. The buffer is limited to 1024 bytes, while RFC 9110 recommends a limit of 8000 bytes. This restriction may lead to incorrect URL truncation, causing redirections to incorrect locations. In some cases, it could result in a denial-of-service condition for the remote site if the truncated URL generates an error.
Users can upgrade to PHP versions 8.1.32, 8.2.28, 8.3.19, or 8.4.5 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 31, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://lists.debian.org/debian-lts-announce/2025/03/msg00014.html | CVE | |
| https://security.netapp.com/advisory/ntap-20250523-0005/ | CVE | Third Party Advisory |
| https://github.com/php/php-src/security/advisories/GHSA-52jp-hrpf-2jff | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-131 | Incorrect Calculation of Buffer Size | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| php php | >= 8.1.0, < 8.1.31 >= 8.2.0, < 8.2.26 >= 8.3.0, < 8.3.14 >= 8.4.0, < 8.4.5 |
CPE
Remediation
| |
| netapp ontap | 9 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Jul 2, 2025 | Initial Analysis | [email protected] |
| May 23, 2025 | CVE Modified | CVE |
| Mar 30, 2025 | New CVE Received | [email protected] |