{"id":"GHSA-7vm6-qwh5-9x44","summary":"loona-hpack Panic Vulnerability","details":"### Summary\n`loona-hpack` suffers from the same vulnerability as the original `hpack` as documented in https://github.com/mlalic/hpack-rs/issues/11 \n\n### Details\nThe original includes a very nice description of the problem, as well as an easy-enough fix for it.\n\n### PoC\nThe original example pretty much still applies:\n```rust\nuse loona_hpack::Decoder;\n\npub fn main() {\n    let input = &[0x3f];\n    let mut decoder = Decoder::new();\n    let _ = decoder.decode(input);\n}\n```\n\n### Impact\nFrom the original:\n`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.`\n","aliases":["CVE-2024-51502"],"modified":"2024-11-05T18:35:38Z","published":"2024-11-04T23:22:33Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2024-11-04T23:22:33Z","nvd_published_at":"2024-11-04T23:15:05Z","cwe_ids":["CWE-754","CWE-755"],"severity":"MODERATE"},"references":[{"type":"WEB","url":"https://github.com/bearcove/loona/security/advisories/GHSA-7vm6-qwh5-9x44"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-51502"},{"type":"WEB","url":"https://github.com/mlalic/hpack-rs/issues/11"},{"type":"WEB","url":"https://github.com/bearcove/loona/commit/9a4028ec6484f50a320281271a41a5040ddb1ba8"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-w7hm-hmxv-pvhf"},{"type":"PACKAGE","url":"https://github.com/bearcove/loona"}],"affected":[{"package":{"name":"loona-hpack","ecosystem":"crates.io","purl":"pkg:cargo/loona-hpack"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.4.3"}]}],"database_specific":{"last_known_affected_version_range":"\u003c= 0.4.2","source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/11/GHSA-7vm6-qwh5-9x44/GHSA-7vm6-qwh5-9x44.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"}]}