GHSA-pw9p-jvrm-f7rm

Suggest an improvement
Source
https://github.com/advisories/GHSA-pw9p-jvrm-f7rm
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-pw9p-jvrm-f7rm/GHSA-pw9p-jvrm-f7rm.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-pw9p-jvrm-f7rm
Aliases
  • CVE-2026-48979
Published
2026-06-26T20:55:55Z
Modified
2026-06-26T21:00:10.402877157Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
Summary
PHP Standard Library: HTTP/2 server-side missing content-length validation enables request smuggling
Details

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

Fixed in 6.1.2 and 6.2.1.

  • Parses and validates the content-length header 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 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

  • 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
Database specific
{
    "github_reviewed_at": "2026-06-26T20:55:55Z",
    "nvd_published_at": "2026-06-17T21:16:23Z",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-444"
    ],
    "severity": "HIGH"
}
References

Affected packages

Packagist
php-standard-library/h2

Package

Name
php-standard-library/h2
Purl
pkg:composer/php-standard-library%2Fh2

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.1.0
Fixed
6.1.2

Affected versions

6.*
6.1.0
6.1.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-pw9p-jvrm-f7rm/GHSA-pw9p-jvrm-f7rm.json"
php-standard-library/h2

Package

Name
php-standard-library/h2
Purl
pkg:composer/php-standard-library%2Fh2

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.2.1

Affected versions

6.*
6.2.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-pw9p-jvrm-f7rm/GHSA-pw9p-jvrm-f7rm.json"
php-standard-library/php-standard-library

Package

Name
php-standard-library/php-standard-library
Purl
pkg:composer/php-standard-library%2Fphp-standard-library

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.1.0
Fixed
6.1.2

Affected versions

6.*
6.1.0
6.1.1

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-pw9p-jvrm-f7rm/GHSA-pw9p-jvrm-f7rm.json"
php-standard-library/php-standard-library

Package

Name
php-standard-library/php-standard-library
Purl
pkg:composer/php-standard-library%2Fphp-standard-library

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.2.1

Affected versions

6.*
6.2.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/06/GHSA-pw9p-jvrm-f7rm/GHSA-pw9p-jvrm-f7rm.json"