Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. h2
  4. ›
  5. GHSA-8r5v-vm4m-4g25

GHSA-8r5v-vm4m-4g25: Resource exhaustion vulnerability in h2 may lead to Denial of Service (DoS)

January 19, 2024

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.

References

  • github.com/advisories/GHSA-8r5v-vm4m-4g25
  • github.com/hyperium/h2
  • github.com/hyperium/h2/commit/59570e11ccddbec85f67a0c7aa353f7730c68854
  • github.com/hyperium/h2/commit/d919cd6fd8e0f4f5d1f6282fab0b38a1b4bf999c
  • github.com/hyperium/h2/pull/737
  • rustsec.org/advisories/RUSTSEC-2024-0003.html

Code Behaviors & Features

Detect and mitigate GHSA-8r5v-vm4m-4g25 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.3.24, all versions starting from 0.4.0 before 0.4.2

Fixed versions

  • 0.3.24
  • 0.4.2

Solution

Upgrade to versions 0.3.24, 0.4.2 or above.

Source file

cargo/h2/GHSA-8r5v-vm4m-4g25.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:54 +0000.