What’s Vulnerable › Vulnerabilities
GHSA-8r5v-vm4m-4g25: Resource exhaustion vulnerability in h2 may lead to Denial of Service (DoS)
- Severity: medium (CVSS 5.5)
- Exploited in the wild: not listed in CISA KEV
- Public exploit or detection template: none known
- Published: 2024-01-19 · updated 2026-09-10
Description
An attacker with an HTTP/2 connection to an affected endpoint can send a steady stream of invalid frames to force the generation of reset frames on the victim endpoint. By closing their recv window, the attacker could then force these resets to be queued in an unbounded fashion, resulting in Out Of Memory (OOM) and high CPU usage. This fix is corrected in [hyperium/h2#737](https://github.com/hyperium/h2/pull/737), which limits the total number of internal error resets emitted by default before the connection is closed.
Affected products
- Crates.Io H2: before 0.3.24; from 0.4.0 before 0.4.2 — fixed in 0.3.24, 0.4.2
How to fix
Upgrade to a fixed version: Crates.Io H2 0.3.24, 0.4.2. Check the vendor advisory for mitigations.
References
- https://github.com/hyperium/h2/pull/737
- https://github.com/hyperium/h2/commit/59570e11ccddbec85f67a0c7aa353f7730c68854
- https://github.com/hyperium/h2/commit/d919cd6fd8e0f4f5d1f6282fab0b38a1b4bf999c
- https://github.com/hyperium/h2
- https://rustsec.org/advisories/RUSTSEC-2024-0003.html
Get alerted when GHSA-8r5v-vm4m-4g25 or the next vulnerability affects your stack