CVE-2025-1861
CRITICALDescription
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 to fix
This vulnerability affects an unusually large number of packages. The highest-confidence fixes are shown above; the full list is longer. Check the referenced advisories for complete coverage.
TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Exploit Intelligence
Moderate risk: more likely to be exploited than 54% of all known CVEs.
References
Related Vulnerabilities
Other CWE-131 vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2023-36824 | High | 7.4 | 77% | - | Fix |
| CVE-2020-8450 | High | 7.3 | 72% | - | Fix |
| CVE-2026-42945 | Critical | 8.1 | 68% | - | Fix |
| CVE-2020-6113 | High | 7.8 | 66% | - | - |
| CVE-2020-6116 | High | 7.8 | 28% | - | - |
| CVE-2005-3120 | Critical | 9.8 | 23% | - | Fix |
Common questions
How do I fix CVE-2025-1861?
Published advisories record a fix for 141 affected products. The "How to fix" section on this page lists the fixed version and source advisory for each one, so apply the entry matching what you actually run.
Is CVE-2025-1861 being actively exploited?
Not that we know of. CVE-2025-1861 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.83% is the estimated probability that it will be exploited in the next 30 days. That is higher than 54% of all scored CVEs.
How severe is CVE-2025-1861?
CVE-2025-1861 has a CVSS v3 base score of 9.8, rated critical. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.
What does CVE-2025-1861 affect?
Published advisories record a fix for php7.4 (Debian), apcu-panel (Red Hat / RHEL), apcu-panel (Rocky), libzip (Red Hat / RHEL), and 137 more. The list on this page is capped, so there may be more.
Embed a live status badge for CVE-2025-1861
Markdown
[](https://tridentstack.com/cve/CVE-2025-1861)HTML
<a href="https://tridentstack.com/cve/CVE-2025-1861"><img src="https://tridentstack.com/cve/badge/CVE-2025-1861.svg" alt="CVE-2025-1861"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-11-03.