php-standard-library/h2
Affected
- introduced
6.1.0, fixed6.1.2(ecosystem)
Fixed versions
6.1.2
Fix
The export has no generic command for this ecosystem.
Advisory
Also known as: CVE-2026-48979
PHP Standard Library: HTTP/2 server-side missing content-length validation enables request smuggling
Impact
Psl\H2\ServerConnection does not validate that the total bytes received in DATA frames match the content-length header declared in the HEADERS frame, in violation of RFC 9113 §8.1.1.
A malicious client can:
The vulnerability is only reachable for consumers using Psl\H2\ServerConnection directly to accept untrusted client traffic. The high-level Psl\HTTP\Server is in active development and was not yet released at the time of this advisory; consumers of documented high-level PSL APIs are not affected.
Patches
content-length header on incoming HEADERS (server-side only — clients do not enforce this per RFC 9110 §9.3.2).StreamException on mismatch or overflow.Regression tests landed in #781, 9 of the new tests fail against the pre-fix code, proving the validation boundary is enforced.
Workarounds
None at the protocol layer. Applications using Psl\H2\ServerConnection directly should upgrade.
Resources
High Basis: The source's own band: HIGH
6.1.0, fixed 6.1.2 (ecosystem)6.1.2
The export has no generic command for this ecosystem.
6.2.0, fixed 6.2.1 (ecosystem)6.2.1
The export has no generic command for this ecosystem.
6.1.0, fixed 6.1.2 (ecosystem)6.1.2
The export has no generic command for this ecosystem.
6.2.0, fixed 6.2.1 (ecosystem)6.2.1
The export has no generic command for this ecosystem.
Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0