Advisory

GHSA-q6cp-qfwq-4gcv

Also known as: RUSTSEC-2024-0332

Summary

h2 servers vulnerable to degradation of service with CONTINUATION Flood

Details

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.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2024-04-05 15:05 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

h2

crates.io · All systems

Affected

  • introduced 0, fixed 0.3.26 (semver)

Fixed versions

0.3.26

Fix

  • Fixed version 0.3.26
    cargo update -p h2 --precise 0.3.26

h2

crates.io · All systems

Affected

  • introduced 0.4.0, fixed 0.4.4 (semver)

Fixed versions

0.4.4

Fix

  • Fixed version 0.4.4
    cargo update -p h2 --precise 0.4.4

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences