Advisory

RUSTSEC-2024-0003

Also known as: GHSA-8r5v-vm4m-4g25

Summary

Resource exhaustion vulnerability in h2 may lead to Denial of Service (DoS)

Details

An attacker with an HTTP/2 connection to an affected endpoint can send a steady stream of invalid frames to force the
generation of reset frames on the victim endpoint.
By closing their recv window, the attacker could then force these resets to be queued in an unbounded fashion,
resulting in Out Of Memory (OOM) and high CPU usage.

This fix is corrected in hyperium/h2#737, which limits the total number of
internal error resets emitted by default before the connection is closed.

Severity

Not rated by the source.

Dates

Published
2024-01-17 12:00 UTC
Modified
2026-02-04 03:15 UTC

Affected packages and fixes

h2

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 0.3.24, introduced 0.4.0-0, fixed 0.4.2 (semver)

Fixed versions

0.3.24, 0.4.2

Fix

  • Fixed version 0.3.24
    cargo update -p h2 --precise 0.3.24
  • Fixed version 0.4.2
    cargo update -p h2 --precise 0.4.2

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