Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

GHSA-pw9p-jvrm-f7rm: PHP Standard Library: HTTP/2 server-side missing content-length validation enables request smuggling

0
High
Published: 06/26/2026 (06/26/2026, 20:55:55 UTC)
Source: GCVE Database
Product: php-standard-library/h2

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected software

Packagistghsa
php-standard-library/h2
Affected versions
>=6.1.0 <6.1.2
Packagistghsa
php-standard-library/h2
Affected versions
>=6.2.0 <6.2.1
Packagistghsa
php-standard-library/php-standard-library
Affected versions
>=6.1.0 <6.1.2
Packagistghsa
php-standard-library/php-standard-library
Affected versions
>=6.2.0 <6.2.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/26/2026, 22:06:59 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses