7.5high
h2 vulnerable to denial of service
- Severity
- 7.5high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.12% (higher than 67% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-f8vr-r385-rh5rRUSTSEC-2023-0034
Description
An issue was discovered in hyper v0.13.7. h2-0.2.4 Stream stacking occurs when the H2 component processes HTTP2 RST_STREAM frames. As a result, the memory and CPU usage are high which can lead to a Denial of Service (DoS).
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| h2 (crates.io) | before 0.3.17, from 0.0.0-0 before 0.3.17 | GitHub Advisory Database, RustSec Advisory Database |
| hyper h2 | 0.2.4 | NVD |
| hyper hyper | 0.13.7 | NVD |
All scores
| CISA-ADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | medium rating | |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
An issue was discovered in hyper v0.13.7. h2-0.2.4 Stream stacking occurs when the H2 component processes HTTP2 RST_STREAM frames. As a result, the memory and CPU usage are high which can lead to a Denial of Service (DoS).
GitHub Advisory Database
Hyper is an HTTP library for Rust and h2 is an HTTP 2.0 client & server implementation for Rust. An issue was discovered in h2 v0.2.4 when processing header frames. It incorrectly processes the HTTP2 RST_STREAM frames by not always releasing the memory immediately upon receiving the reset frame, leading to stream stacking. As a result, the memory and CPU usage are high which can lead to a Denial of Service (DoS).
This issue affects users only when dealing with http2 connections.
RustSec Advisory Database
If an attacker is able to flood the network with pairs of HEADERS/RST_STREAM frames, such that the h2 application is not able to accept them faster than the bytes are received, the pending accept queue can grow in memory usage. Being able to do this consistently can result in excessive memory use, and eventually trigger Out Of Memory.
This flaw is corrected in hyperium/h2#668, which restricts remote reset stream count by default.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-26964 changed 2025-02-11 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-f8vr-r385-rh5r changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2023-0034 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2023-26964 changed 2026-06-17 | Public domain |