CVE-2024-51502: loona-hpack Panic Vulnerability
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: Impact From the original: All users who try to decode untrusted input using the Decoder are vulnerable to this exploit.
Published Nov 4, 2024 · Updated Nov 5, 2024
Affected packages
loona-hpack
- Ecosystem
- Rust (crates.io)
- Affected
- <= 0.4.2
- Fixed in
- 0.4.3
- Check
cargo tree -i loona-hpack
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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:
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](https://crates.io/crates/hpack-patched) under the name hpack-patched. See [Cargo's documentation on overriding dependencies](https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html) for more information.
References
- https://github.com/bearcove/loona/security/advisories/GHSA-7vm6-qwh5-9x44
- https://github.com/mlalic/hpack-rs/issues/11
- https://github.com/bearcove/loona/commit/9a4028ec6484f50a320281271a41a5040ddb1ba8
- https://github.com/advisories/GHSA-w7hm-hmxv-pvhf
- https://nvd.nist.gov/vuln/detail/CVE-2024-51502
- https://github.com/advisories/GHSA-7vm6-qwh5-9x44
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
