VDB

CVE-2025-1861

CVE-2025-1861 PUBLISHED CVSS 6.3 MEDIUM

Stream HTTP wrapper truncates redirect location to 1024 bytes

Reported by php · Published March 30, 2025

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
php8.1-bcmathAmazon Linux8.1.32-1.amzn2023.0.1
php8.1-develAmazon Linux8.1.32-1.amzn2023.0.1
php8.3-enchantAmazon Linux8.3.19-1.amzn2023.0.1
php8.1-mysqlndAmazon Linux8.1.32-1.amzn2023.0.1
php8.2-xmlAmazon Linux8.2.28-1.amzn2023.0.1
php8.1-enchantAmazon Linux8.1.32-1.amzn2023.0.1
php8.3-tidyAmazon Linux8.3.19-1.amzn2023.0.1
php8.1-fpmAmazon Linux8.1.32-1.amzn2023.0.1
php8.3-dbgAmazon Linux8.3.19-1.amzn2023.0.1
php8.1-xmlAmazon Linux8.1.32-1.amzn2023.0.1
php8.3-zipAmazon Linux8.3.19-1.amzn2023.0.1
php8.2-ffiAmazon Linux8.2.28-1.amzn2023.0.1

86 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 4.0
6.3
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Affected products

VendorProductVersions
PHP GroupPHP8.1.*, 8.2.*, 8.3.*
amazon:2023php8.1-bcmath0
amazon:2023php8.1-devel0
amazon:2023php8.3-enchant0
amazon:2023php8.1-mysqlnd0
amazon:2023php8.2-xml0
amazon:2023php8.1-enchant0
amazon:2023php8.3-tidy0
amazon:2023php8.1-fpm0
amazon:2023php8.3-dbg0
amazon:2023php8.1-xml0
amazon:2023php8.3-zip0
amazon:2023php8.2-ffi0
PHP GroupPHP8.4.*, 8.1.*, 8.2.*
amazon:2023php8.1-pdo0
alpinephp830
amazon:2023php8.2-sodium0
amazon:2023php8.1-intl0
amazon:2023php8.1-snmp0
amazon:2023php8.2-devel0

…and 72 more

Timeline

  • Mar 13, 2025 CVE Published
  • Mar 30, 2025 EPSS Score (30 in total, the first dated here)
  • Mar 30, 2025 Coalition ESS Score (16 in total, the first dated here)
  • Nov 3, 2025 CVE Updated
  • Aug 15, 2026 Security Advisory (13 in total, the first dated here)
  • Oct 23, 2026 Distribution Patch (9 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-1861
vulnetix vdb fixes CVE-2025-1861

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-1861/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›