From 7ca4586eb85712aa0419e83f2026a607aa3d2b03 Mon Sep 17 00:00:00 2001 From: Kisaragi <48310258+KisaragiEffective@users.noreply.github.com> Date: Fri, 21 Apr 2023 04:16:09 +0900 Subject: [PATCH] Add advisory for h2: resource exhaustion vulnerability may lead to DoS (#1684) Co-authored-by: Tony Arcieri Co-authored-by: Sean McArthur --- crates/h2/RUSTSEC-0000-0000.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 crates/h2/RUSTSEC-0000-0000.md diff --git a/crates/h2/RUSTSEC-0000-0000.md b/crates/h2/RUSTSEC-0000-0000.md new file mode 100644 index 0000000..05de5cb --- /dev/null +++ b/crates/h2/RUSTSEC-0000-0000.md @@ -0,0 +1,18 @@ +```toml +[advisory] +id = "RUSTSEC-0000-0000" +package = "h2" +date = "2023-04-14" +url = "https://github.com/hyperium/hyper/issues/2877" +categories = ["denial-of-service"] +keywords = ["http", "http2", "h2"] +aliases = ["CVE-2023-26964", "GHSA-f8vr-r385-rh5r"] +[versions] +patched = [">= 0.3.17"] +``` + +# Resource exhaustion vulnerability in h2 may lead to Denial of Service (DoS) + +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](https://github.com/hyperium/h2/pull/668), which restricts remote reset stream count by default. \ No newline at end of file