GHSA-pw9p-jvrm-f7rm: PHP Standard Library: HTTP/2 server-side missing content-length validation enables request smuggling
The PHP Standard Library's HTTP/2 server implementation (Psl\H2\ServerConnection) lacks validation that the total bytes received in DATA frames match the content-length header declared in the HEADERS frame, violating RFC 9113 §8.1.1. This allows a malicious client to send more or fewer DATA bytes than declared, potentially leading to request smuggling or incorrect application behavior. The vulnerability affects only consumers directly using Psl\H2\ServerConnection to accept untrusted client traffic; higher-level PSL HTTP server APIs are not affected. Fixes are available in versions 6.1.2 and 6.2.1. No protocol-layer workarounds exist, so upgrading is necessary for affected users.
AI Analysis
Technical Summary
The vulnerability in PHP Standard Library's HTTP/2 server-side component (Psl\H2\ServerConnection) arises from missing validation that the cumulative DATA frame payload length matches the content-length header declared in the HEADERS frame, contrary to RFC 9113 §8.1.1. This flaw enables a malicious client to send more DATA bytes than declared, bypassing application-level size limits, or fewer bytes and close the stream early, causing misbehavior in applications trusting the declared length. The issue is limited to direct use of Psl\H2\ServerConnection for untrusted traffic; the higher-level Psl\HTTP\Server was not released at the time and is unaffected. The vulnerability is fixed in versions 6.1.2 and 6.2.1 by adding parsing and validation of content-length headers, tracking DATA frame payload length per stream, and throwing exceptions on mismatches. No protocol-layer workarounds exist, so upgrading is required.
Potential Impact
A malicious client can exploit this vulnerability to smuggle additional content past application-level size limits by sending more DATA bytes than declared, or cause applications to behave incorrectly by sending fewer DATA bytes and closing the stream early. This can lead to request smuggling attacks or logic errors in applications relying on the declared content-length header. The vulnerability does not impact users of the high-level PSL HTTP server APIs. There is no indication of known exploits in the wild.
Mitigation Recommendations
A fix is available in PHP Standard Library versions 6.1.2 and 6.2.1. These versions implement proper parsing and validation of the content-length header on incoming HEADERS frames, track cumulative DATA frame payload length per stream, and throw exceptions on mismatches or overflow. Applications using Psl\H2\ServerConnection directly to accept untrusted client traffic should upgrade to these fixed versions. No protocol-layer workarounds exist.
GHSA-pw9p-jvrm-f7rm: PHP Standard Library: HTTP/2 server-side missing content-length validation enables request smuggling
Description
The PHP Standard Library's HTTP/2 server implementation (Psl\H2\ServerConnection) lacks validation that the total bytes received in DATA frames match the content-length header declared in the HEADERS frame, violating RFC 9113 §8.1.1. This allows a malicious client to send more or fewer DATA bytes than declared, potentially leading to request smuggling or incorrect application behavior. The vulnerability affects only consumers directly using Psl\H2\ServerConnection to accept untrusted client traffic; higher-level PSL HTTP server APIs are not affected. Fixes are available in versions 6.1.2 and 6.2.1. No protocol-layer workarounds exist, so upgrading is necessary for affected users.
CVSS v3.1
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in PHP Standard Library's HTTP/2 server-side component (Psl\H2\ServerConnection) arises from missing validation that the cumulative DATA frame payload length matches the content-length header declared in the HEADERS frame, contrary to RFC 9113 §8.1.1. This flaw enables a malicious client to send more DATA bytes than declared, bypassing application-level size limits, or fewer bytes and close the stream early, causing misbehavior in applications trusting the declared length. The issue is limited to direct use of Psl\H2\ServerConnection for untrusted traffic; the higher-level Psl\HTTP\Server was not released at the time and is unaffected. The vulnerability is fixed in versions 6.1.2 and 6.2.1 by adding parsing and validation of content-length headers, tracking DATA frame payload length per stream, and throwing exceptions on mismatches. No protocol-layer workarounds exist, so upgrading is required.
Potential Impact
A malicious client can exploit this vulnerability to smuggle additional content past application-level size limits by sending more DATA bytes than declared, or cause applications to behave incorrectly by sending fewer DATA bytes and closing the stream early. This can lead to request smuggling attacks or logic errors in applications relying on the declared content-length header. The vulnerability does not impact users of the high-level PSL HTTP server APIs. There is no indication of known exploits in the wild.
Mitigation Recommendations
A fix is available in PHP Standard Library versions 6.1.2 and 6.2.1. These versions implement proper parsing and validation of the content-length header on incoming HEADERS frames, track cumulative DATA frame payload length per stream, and throw exceptions on mismatches or overflow. Applications using Psl\H2\ServerConnection directly to accept untrusted client traffic should upgrade to these fixed versions. No protocol-layer workarounds exist.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-pw9p-jvrm-f7rm
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-48979"]
- Ecosystems
- ["Packagist"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a3ef76827e9c79719fee797
Added to database: 06/26/2026, 22:04:24 UTC
Last enriched: 06/26/2026, 22:06:59 UTC
Last updated: 06/27/2026, 01:22:33 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.