CVE-2025-1861

CVE-2025-1861 is a critical-severity vulnerability in Php with a CVSS 3.x base score of 9.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-131.

Key facts

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.

Frequently asked questions

What is CVE-2025-1861?
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.
How severe is CVE-2025-1861?
CVE-2025-1861 has a CVSS 3.x base score of 9.8, rated critical severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
Is CVE-2025-1861 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (53rd percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2025-1861?
CVE-2025-1861 primarily affects Php. In total, 2 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
How do I fix CVE-2025-1861?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
Does CVE-2025-1861 have an EU (EUVD) identifier?
Yes. CVE-2025-1861 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2025-15117.
When was CVE-2025-1861 published?
CVE-2025-1861 was published on 2025-03-30 and last updated on 2026-06-17.

References

Affected products (2)

More vulnerabilities in Php

All CVEs affecting Php →

Other CWE-131 (Incorrect Calculation of Buffer Size) vulnerabilities

Browse all CWE-131 (Incorrect Calculation of Buffer Size) vulnerabilities →

Threat intelligence

Threat-intel indicators referencing this CVE: