GitHub Advisoryadvisory · crates.io

GHSA-7vm6-qwh5-9x44 loona-hpack Panic Vulnerability

MEDIUM Published 2024-11-04 Modified 2024-11-05 Official page ↗
Aliases
CVE-2024-51502
Ecosystem
crates.io
Packages
loona-hpack
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
Weaknesses
CWE-754, CWE-755
Reviewed
2024-11-04

Affected packages

• crates.io loona-hpack: < 0.4.3 → fixed in 0.4.3

Description

Summary `loona-hpack` suffers from the same vulnerability as the original `hpack` as documented in https://github.com/mlalic/hpack-rs/issues/11 Details The original includes a very nice description of the problem, as well as an easy-enough fix for it. PoC The original example pretty much still applies: ```rust use loona_hpack::Decoder; pub fn main() { let input = &[0x3f]; let mut decoder = Decoder::new(); let _ = decoder.decode(input); } ``` Impact From the original: `All users who try to decode untrusted input using the Decoder are vulnerable to this exploit. A patched version of the crate is available on crates.io under the name hpack-patched. See Cargo's documentation on overriding dependencies for more information.`

Related

Alias · CVE (1)

  • CVE-2024-51502 loona is an experimental, HTTP/1.1 and HTTP/2 implementation in Rust on top of io-uring. vulnerability

Weakness · CWE (2)

  • CWE-754 Improper Check for Unusual or Exceptional Conditions weakness
  • CWE-755 Improper Handling of Exceptional Conditions weakness

References