CVE-2025-1861
Description
A flaw was found in PHP. This vulnerability allows incorrect URL truncation and redirection to the wrong location via HTTP redirect handling due to a limited location buffer size.
Statement
Moderate-impact vulnerability affecting PHP in Red Hat Enterprise Linux: PHP's HTTP stream wrapper can truncate an HTTP redirect Location value at 1024 bytes, causing an HTTP client to follow an incorrect URL. Red Hat's CVSS 5.3 assessment reflects limited confidentiality impact with no integrity or availability impact established by the current evidence; the NIST 9.8 Critical score assumes high impact to confidentiality, integrity, and availability. The current scope marks selected Red Hat Enterprise Linux streams as affected or delegated, Red Hat Enterprise Linux 6 and 7 as out of standard support, and Red Hat In-Vehicle OS streams as deferred; for the deferred products, the residual risk is incorrect URL truncation and redirection, and remediation is deferred. Delegated Red Hat Enterprise Linux streams are being handled through the relevant product teams' remediation process. Fedora 40 and Fedora 41 are not affected because inline mitigations already exist.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 5.3 | 9.8 | N/A |
| Attack Vector | Network | Network | N/A |
| Attack Complexity | Low | Low | N/A |
| Privileges Required | None | None | N/A |
| User Interaction | None | None | N/A |
| Scope | Unchanged | Unchanged | N/A |
| Confidentiality | Low | High | N/A |
| Integrity Impact | None | High | N/A |
| Availability Impact | None | High | N/A |
Vector
Red Hat: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVD: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Understanding the Weakness (CWE)
Integrity,Availability,Confidentiality
Technical Impact: DoS: Crash, Exit, or Restart; Execute Unauthorized Code or Commands; Read Memory; Modify Memory
If the incorrect calculation is used in the context of memory allocation, then the software may create a buffer that is smaller or larger than expected. If the allocated buffer is smaller than expected, this could lead to an out-of-bounds read or write (CWE-119), possibly causing a crash, allowing arbitrary code execution, or exposing sensitive data.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.