CVE & CISA-KEV Catalog

CVE-2025-1861

CRITICAL
9.8
CVSS v3
NVD

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.

How to fix

Remediation Available
php8.1Amazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-bcmathAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-bcmath-debuginfoAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-cliAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-cli-debuginfoAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-commonAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-common-debuginfoAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-dbaAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-dba-debuginfoAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-dbgAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-dbg-debuginfoAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-debuginfoAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-debugsourceAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-develAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-embeddedAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-embedded-debuginfoAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-enchantAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-enchant-debuginfoAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-ffiAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-ffi-debuginfoAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-fpmAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-fpm-debuginfoAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-gdAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-gd-debuginfoAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-gmpAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-gmp-debuginfoAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-intlAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-intl-debuginfoAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-ldapAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1
php8.1-ldap-debuginfoAmazon
Fixed in:0:8.1.32-1.amzn2023.0.1
Fixed in:0:8.1.32-1.amzn2023.0.1

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

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

0.83%probability of exploitation in 30 days
55thpercentile

Moderate risk: more likely to be exploited than 55% of all known CVEs.

References

Vendor Advisory1
Third-Party Advisory1
Other references1

Related Vulnerabilities

Other CWE-131 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2023-36824High7.477%-Fix
CVE-2020-8450High7.372%-Fix
CVE-2026-42945Critical8.168%-Fix
CVE-2020-6113High7.865%--
CVE-2020-6116High7.828%--
CVE-2005-3120Critical9.823%-Fix

Common questions

How do I fix CVE-2025-1861?

Published advisories record a fix for 293 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 55% 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 php8.1 (Amazon), php8.1-bcmath (Amazon), php8.1-bcmath-debuginfo (Amazon), php8.1-cli (Amazon), and 289 more. The list on this page is capped, so there may be more.

Embed a live status badge for CVE-2025-1861
CVE-2025-1861 severity badge

Markdown

[![CVE-2025-1861](https://tridentstack.com/cve/badge/CVE-2025-1861.svg)](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>

Check your Linux endpoints for this class of vulnerability

TridentStack Control continuously scans Linux endpoints for known vulnerabilities and deploys the fixes from the same console. 200 endpoints free forever, no credit card.

Patch your fleet freeStart freeThis CVE lookup is free and always will be.

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 2026-06-17.