GHSA-pw9p-jvrm-f7rm — php-standard-library/h2
HIGHGHSA-pw9p-jvrm-f7rm is a high-severity (CVSS 7.5) CWE-444 vulnerability in php-standard-library/h2. A fix is available for php-standard-library/h2 — see the affected versions and patch details below.
PHP Standard Library: HTTP/2 server-side missing content-length validation enables request smuggling
Exploitation Status
No confirmed exploitation observed yet
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-pw9p-jvrm-f7rm.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
GHSA-pw9p-jvrm-f7rm by exploitation likelihood (EPSS) against impact (CVSS). Outside the shaded patch-first corner.
Where this sits among everything scored
Of 380,066 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Counts from FIRST.org, log-scaled.
Real-World Exposure
php-standard-library/h2🐘php-standard-library/h2🐘php-standard-library/php-standard-library🐘php-standard-library/php-standard-libraryReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.
Description
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:
- Send more DATA bytes than declared, smuggling additional content past application-level size limits.
- Send fewer DATA bytes than declared and close the stream early, causing applications that trust the declared length to behave incorrectly.
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
- Parses and validates the
content-lengthheader on incoming HEADERS (server-side only — clients do not enforce this per RFC 9110 §9.3.2). - Tracks cumulative DATA frame payload length per stream.
- Throws
StreamExceptionon 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
- RFC 9113 §8.1.1 (HTTP/2 request/response exchange)
- RFC 9110 §8.6 (content-length header)
- https://github.com/php-standard-library/php-standard-library/releases/tag/6.1.2
- https://github.com/php-standard-library/php-standard-library/releases/tag/6.2.1
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | php-standard-library/h2 | ≥ 6.1.0&&< 6.1.2 | 6.1.2composer require php-standard-library/h2:^6.1.2 |
| 🐘Packagist | php-standard-library/h2 | ≥ 6.2.0&&< 6.2.1 | 6.2.1composer require php-standard-library/h2:^6.2.1 |
| 🐘Packagist | php-standard-library/php-standard-library | ≥ 6.1.0&&< 6.1.2 | 6.1.2composer require php-standard-library/php-standard-library:^6.1.2 |
| 🐘Packagist | php-standard-library/php-standard-library | ≥ 6.2.0&&< 6.2.1 | 6.2.1composer require php-standard-library/php-standard-library:^6.2.1 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for php-standard-library/h2, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update php-standard-library/h2 to 6.1.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-pw9p-jvrm-f7rm is resolved across your whole dependency graph.
Workarounds
Stop feeding it untrusted input: reject or quarantine files and payloads from unverified sources until you can upgrade, restrict accepted formats to the ones you actually need, and run the parsing or decoding step in a least-privileged sandbox or short-lived worker so a crash or corrupted read cannot reach the rest of the process.
Frequently Asked Questions
Is GHSA-pw9p-jvrm-f7rm in your dependencies?
Find it across Packagist, including transitive dependencies.