CVE-2023-26964
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
h2 (crates.io)before 0.3.17, from 0.0.0-0 before 0.3.17GitHub Advisory Database, RustSec Advisory Database
hyper h20.2.4NVD
hyper hyper0.13.7NVD

All scores

CISA-ADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHubmedium rating
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-770

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

SourceRecordLicence
CVE ListCVE-2023-26964 changed 2025-02-11CVE Terms of Use
GitHub Advisory DatabaseGHSA-f8vr-r385-rh5r changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2023-0034 changed 2023-11-08CC0-1.0
NVDCVE-2023-26964 changed 2026-06-17Public domain