CVE-2026-48979: PHP Standard Library HTTP/2 Server-side Missing Content-length Validation Vulnerability

HIGH
Advisory Identifier: GHSA-pw9p-jvrm-f7rm
CVSS 7.5
CWE-444
Published
Advisory Summary

CVE-2026-48979 is a HIGH (CVSS 7.5) http/2 server-side missing content-length validation vulnerability (CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')) affecting PHP Standard Library libraries in the Packagist ecosystem. The issue involves http/2 server-side missing content-length validation enables request smuggling. Remediation is available by upgrading affected packages to version 6.1.2, 6.2.1.

CVE-2026-48979 at a Glance

CVE Identifier CVE-2026-48979
GHSA Identifier GHSA-pw9p-jvrm-f7rm
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')
Affected Product PHP Standard Library
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N).

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

How to Fix CVE-2026-48979

To remediate this vulnerability, upgrade all affected PHP Standard Library dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

php-standard-library/h2 fixed: 6.1.2
Upgrade php-standard-library/h2 to 6.1.2
php-standard-library/h2 fixed: 6.2.1
Upgrade php-standard-library/h2 to 6.2.1
php-standard-library/php-standard-library fixed: 6.1.2
Upgrade php-standard-library/php-standard-library to 6.1.2
php-standard-library/php-standard-library fixed: 6.2.1
Upgrade php-standard-library/php-standard-library to 6.2.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for php-standard-library/h2

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-48979, inspect your project dependencies for PHP Standard Library:

inspect dependencies for php-standard-library/h2

Analyze the terminal output to locate any version of PHP Standard Library in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 6.1.2), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling'), where the product acts as an intermediary http agent (such as a proxy or firewall) in the data flow between two entities such as a client and server, but it does not interpret malformed http requests or responses in ways that are consistent with how the messages will be processed by those entities that are at the ultimate destination. In PHP Standard Library, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

## 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](https://github.com/php-standard-library/php-standard-library/releases/tag/6.1.2) and [6.2.1](https://github.com/php-standard-library/php-standard-library/releases/tag/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](https://github.com/php-standard-library/php-standard-library/pull/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

CVE-2026-48979 Affected PHP Standard Library Versions

4 component(s)
Fixed Versions:
6.1.26.2.1
Product / Package Ecosystem Affected Versions Fixed Version
php-standard-library/h2
Packagist
≥ 6.1.0
< 6.1.2
6.1.2
php-standard-library/h2
Packagist
≥ 6.2.0
< 6.2.1
6.2.1
php-standard-library/php-standard-library
Packagist
≥ 6.1.0
< 6.1.2
6.1.2
php-standard-library/php-standard-library
Packagist
≥ 6.2.0
< 6.2.1
6.2.1

References

Frequently Asked Questions

What is CVE-2026-48979?
CVE-2026-48979 is a security vulnerability in PHP Standard Library involving HTTP/2 server-side missing content-length validation enables request smuggling under CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling').
Which PHP Standard Library versions are affected?
Affected versions include releases prior to 6.1.2, 6.2.1 across affected packages: php-standard-library/h2, php-standard-library/php-standard-library.
What version fixes CVE-2026-48979?
Upgrading to 6.1.2, 6.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is php-standard-library/h2 affected?
Yes, php-standard-library/h2 is affected in releases prior to 6.1.2, 6.2.1. Upgrade your dependency to 6.1.2, 6.2.1 or later.
Is php-standard-library/php-standard-library affected?
Yes, php-standard-library/php-standard-library is affected in releases prior to 6.1.2, 6.2.1. Upgrade your dependency to 6.1.2, 6.2.1 or later.
What is the CVSS score of CVE-2026-48979?
CVE-2026-48979 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2026-48979?
CVE-2026-48979 is classified under CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling') (The product acts as an intermediary HTTP agent (such as a proxy or firewall) in the data flow between two entities such as a client and server, but it does not interpret malformed HTTP requests or responses in ways that are consistent with how the messages will be processed by those entities that are at the ultimate destination.).
How can I check Packagist dependencies for CVE-2026-48979?
Run the dependency tree command: 'inspect dependencies for php-standard-library/h2'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-pw9p-jvrm-f7rm",
  "modified" : "2026-06-26T20:55:55Z",
  "published" : "2026-06-26T20:55:55Z",
  "aliases" : [ "CVE-2026-48979" ],
  "summary" : "PHP Standard Library: HTTP/2 server-side missing content-length validation enables request smuggling",
  "details" : "## Impact\n\n`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.\n\nA malicious client can:\n- Send more DATA bytes than declared, smuggling additional content past application-level size limits.\n- Send fewer DATA bytes than declared and close the stream early, causing applications that trust the declared length to behave incorrectly.\n\nThe 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.\n\n## Patches\n\nFixed in [6.1.2](https://github.com/php-standard-library/php-standard-library/releases/tag/6.1.2) and [6.2.1](https://github.com/php-standard-library/php-standard-library/releases/tag/6.2.1).\n\n- Parses and validates the `content-length` header on incoming HEADERS (server-side only — clients do not enforce this per RFC 9110 §9.3.2).\n- Tracks cumulative DATA frame payload length per stream.\n- Throws `StreamException` on mismatch or overflow.\n\nRegression tests landed in [#781](https://github.com/php-standard-library/php-standard-library/pull/781), 9 of the new tests fail against the pre-fix code, proving the validation boundary is enforced.\n\n## Workarounds\n\nNone at the protocol layer. Applications using `Psl\\H2\\ServerConnection` directly should upgrade.\n\n## Resources\n\n- RFC 9113 §8.1.1 (HTTP/2 request/response exchange)\n- RFC 9110 §8.6 (content-length header)\n- https://github.com/php-standard-library/php-standard-library/releases/tag/6.1.2\n- https://github.com/php-standard-library/php-standard-library/releases/tag/6.2.1",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "php-standard-library/h2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.1.0"
      }, {
        "fixed" : "6.1.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "php-standard-library/h2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.2.0"
      }, {
        "fixed" : "6.2.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "php-standard-library/php-standard-library"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.1.0"
      }, {
        "fixed" : "6.1.2"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "php-standard-library/php-standard-library"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "6.2.0"
      }, {
        "fixed" : "6.2.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/php-standard-library/php-standard-library/security/advisories/GHSA-pw9p-jvrm-f7rm"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-48979"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/php-standard-library/php-standard-library"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/php-standard-library/php-standard-library/releases/tag/6.1.2"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/php-standard-library/php-standard-library/releases/tag/6.2.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-444" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-26T20:55:55Z",
    "nvd_published_at" : "2026-06-17T21:16:23Z"
  }
}