Vulnerability MediumRUSTSEC-2024-0332 · h2
RUSTSEC-2024-0332: Degradation of service in h2 servers with CONTINUATION Flood
Short answerA security vulnerability in the h2 crate: Degradation of service in h2 servers with CONTINUATION Flood. GitHub rates it Medium. Fixed in 0.3.26, 0.4.4: update to a fixed version.
| Crate | h2 |
|---|---|
| Type | Vulnerability (denial-of-service) |
| Affected versions | Before 0.3.26; from 0.4.0 before 0.4.4. |
| Fixed in | 0.3.26, 0.4.4 |
| Severity | Medium (GitHub rating) |
| Published | 2024-04-03 |
| Last changed | 2024-04-11 |
| Also known as | GHSA-q6cp-qfwq-4gcv |
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.4.4") 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
An attacker can send a flood of CONTINUATION frames, causing h2 to process them indefinitely. This results in an increase in CPU usage.
Tokio task budget helps prevent this from a complete denial-of-service, as the server can still respond to legitimate requests, albeit with increased latency.
More details at "https://seanmonstar.com/blog/hyper-http2-continuation-flood/.
Patches available for 0.4.x and 0.3.x versions.
References
- Package: crates.io/crates/h2
- Advisory: rustsec.org/advisories/RUSTSEC-2024-0332.html
- Web: seanmonstar.com/blog/hyper-http2-continuation-flood/
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
- VulnerabilityRUSTSEC-2023-0034 · 2023-04-14Resource exhaustion vulnerability in h2 may lead to Denial of Service (DoS)
- VulnerabilityRUSTSEC-2024-0003 · 2024-01-17Resource exhaustion vulnerability in h2 may lead to Denial of Service (DoS)
- VulnerabilityRUSTSEC-2026-0258 · 2026-08-17h2 unbounded empty DATA frames
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?