Vulnerability MediumRUSTSEC-2023-0034 · h2
RUSTSEC-2023-0034: Resource exhaustion vulnerability in h2 may lead to Denial of Service (DoS)
Short answerA security vulnerability in the h2 crate: Resource exhaustion vulnerability in h2 may lead to Denial of Service (DoS). GitHub rates it Medium. Fixed in 0.3.17: update to a fixed version.
| Crate | h2 |
|---|---|
| Type | Vulnerability (denial-of-service) |
| Affected versions | Before 0.3.17. |
| Fixed in | 0.3.17 |
| Severity | Medium (GitHub rating) |
| Published | 2023-04-14 |
| Last changed | 2023-11-08 |
| Also known as | CVE-2023-26964, GHSA-f8vr-r385-rh5r |
What to do
- See which version you have:
cargo tree -i h2(it also shows which of your dependencies pulls it in). - Update within your version requirement:
cargo update -p h2. If the fix is a newer major or minor than your requirement allows, raise it in Cargo.toml (for exampleh2 = "0.3.17") or update the dependency that pulls it in. - Check again with
cargo audit, or paste your Cargo.lock into our Cargo.toml checker.
Details from the advisory
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
- Package: crates.io/crates/h2
- Advisory: rustsec.org/advisories/RUSTSEC-2023-0034.html
- Report: github.com/hyperium/hyper/issues/2877
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Other advisories for h2
Up next
Same crateh2: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →Did this answer your question?