Advisory

GHSA-f8vr-r385-rh5r

Also known as: CVE-2023-26964, RUSTSEC-2023-0034

Summary

h2 vulnerable to denial of service

Details

Hyper is an HTTP library for Rust and h2 is an HTTP 2.0 client & server implementation for Rust. An issue was discovered in h2 v0.2.4 when processing header frames. It incorrectly processes the HTTP2 RST_STREAM frames by not always releasing the memory immediately upon receiving the reset frame, leading to stream stacking. As a result, the memory and CPU usage are high which can lead to a Denial of Service (DoS).

This issue affects users only when dealing with http2 connections.

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2023-04-11 15:30 UTC
Modified
2023-11-08 04:12 UTC

Affected packages and fixes

h2

crates.io · All systems

Affected

  • introduced 0, fixed 0.3.17 (semver)

Fixed versions

0.3.17

Fix

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

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