Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CVE-2025-1861— Stream HTTP wrapper truncates redirect location to 1024 bytes

EPSS 1.03% · P77
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2025-1861

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Stream HTTP wrapper truncates redirect location to 1024 bytes
Source: NVD (National Vulnerability Database)
Vulnerability 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.
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
缓冲区大小计算不正确
Source: NVD (National Vulnerability Database)
Vulnerability Title
PHP 安全漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
PHP是PHP的一种在服务器端执行的脚本语言。 PHP存在安全漏洞,该漏洞源于解析HTTP请求响应中的重定向时,位置值大小限制为1024,可能导致URL截断错误和重定向到错误位置。以下版本受到影响:8.1.32之前版本、8.2.28之前版本、8.3.19之前版本和8.4.5之前版本。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
PHP GroupPHP 8.1.* ~ 8.1.32 -

II. Public POCs for CVE-2025-1861

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2025-1861

登录查看更多情报信息。

Same Patch Batch · PHP Group · 2025-03-30 · 4 CVEs total

CVE-2025-1219libxml streams use wrong content-type header when requesting a redirected resource
CVE-2025-1734Streams HTTP wrapper does not fail for headers with invalid name and no colon
CVE-2025-1736Stream HTTP wrapper header check might omit basic auth header

IV. Related Vulnerabilities

V. Comments for CVE-2025-1861

No comments yet


Leave a comment