VDB
Sign up
MEDIUM

GHSA-8r5v-vm4m-4g25

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](https://github.com/hyperium/h2/pull/737), which limits the total number of internal error resets emitted by default before the connection is closed.

Are you affected?

Enter the version of the package you're using.

Affected packages

crates.io/h2
Introduced in: 0Fixed in: 0.3.24

Upgrade h2 to 0.3.24 or newer (ecosystem crates.io).

crates.io/h2
Introduced in: 0.4.0Fixed in: 0.4.2

Upgrade h2 to 0.4.2 or newer (ecosystem crates.io).

References