{"id":"GHSA-x3f4-45xf-rjm7","aliases":["GHSA-x3f4-45xf-rjm7","RUSTSEC-2024-0400"],"related":[],"kind":"vulnerability","state":"published","title":"`ruzstd` uninit and out-of-bounds memory reads","summary":"Affected versions of `ruzstd` miscalculate the length of the allocated and init section of its internal `RingBuffer`, leading to uninitialized or out-of-bounds reads in `copy_bytes_overshooting` of up to 15 bytes.\n\nThis may result in up to 15 bytes of memory contents being written into the decoded data when decompressing a crafted archive. This may occur multiple times per archive.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"Affected versions of `ruzstd` miscalculate the length of the allocated and init section of its internal `RingBuffer`, leading to uninitialized or out-of-bounds reads in `copy_bytes_overshooting` of up to 15 bytes.\n\nThis may result in up to 15 bytes of memory contents being written into the decoded data when decompressing a crafted archive. This may occur multiple times per archive.","format":"markdown","source":"ghsa"}],"published":"2024-11-28T12:00:00.000Z","modified":"2026-09-10T03:50:21.770Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-125"],"affected":[{"ranges":[{"type":"semver","introduced":"0.7.0","status":"affected","fixed":"0.7.3"}],"ecosystem":"crates.io","package":"ruzstd","purl":"pkg:cargo/ruzstd","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.7.0","status":"affected","fixed":"0.7.3"}],"ecosystem":"crates.io","package":"ruzstd","purl":"pkg:cargo/ruzstd","source":"rustsec"}],"references":[{"url":"https://github.com/KillingSpark/zstd-rs/issues/75","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/KillingSpark/zstd-rs/pull/76","tags":["web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/KillingSpark/zstd-rs","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2024-0400.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/ruzstd","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x3f4-45xf-rjm7","url":"https://github.com/advisories/GHSA-x3f4-45xf-rjm7","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:21.770Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2024-0400","url":"https://rustsec.org/advisories/RUSTSEC-2024-0400.html","licence":"CC0-1.0","modified":"2025-10-28T06:29:26.723Z"}],"updatedAt":"2026-11-25T22:56:43.223Z"}