Advisory

RUSTSEC-2024-0332

Also known as: GHSA-q6cp-qfwq-4gcv

Summary

Degradation of service in h2 servers 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

Not rated by the source.

Dates

Published
2024-04-03 12:00 UTC
Modified
2024-04-11 16:41 UTC

Affected packages and fixes

h2

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.3.26, introduced 0.4.0-0, fixed 0.4.4 (semver)

Fixed versions

0.3.26, 0.4.4

Fix

  • Fixed version 0.3.26
    cargo update -p h2 --precise 0.3.26
  • 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: RustSec Advisory Database · CC0-1.0

Sources & licences