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

Goal: 1000 CNY · Raised: 1359 CNY

100%

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

Quick assessment

Affected
PHP Group PHP
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

PHP是PHP的一种在服务器端执行的脚本语言。 PHP存在安全漏洞,该漏洞源于解析HTTP请求响应中的重定向时,位置值大小限制为1024,可能导致URL截断错误和重定向到错误位置。以下版本受到影响:8.1.32之前版本、8.2.28之前版本、8.3.19之前版本和8.4.5之前版本。

AI Predicted 5.3 Difficulty: Moderate EPSS 0.84% · P57

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log 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: CVE Program / CVE List V5
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: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
缓冲区大小计算不正确
Source: CVE Program / CVE List V5
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

Vendor Product Affected Versions CPE Subscribe
PHP Group PHP 8.1.* ~ 8.1.32 -

II. Public POCs for CVE-2025-1861

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

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

IV. Related Vulnerabilities

V. Comments for CVE-2025-1861

No comments yet


Leave a comment