{"id":"RUSTSEC-2024-0400","revision":"fc7a0b4d362840a48b6e7403d44ab7b2","records":[{"revision":"fc7a0b4d362840a48b6e7403d44ab7b2","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2024-0400","aliases":["GHSA-x3f4-45xf-rjm7"],"title":"`ruzstd` uninit and out-of-bounds memory reads","description":"Affected versions of `ruzstd` miscalculate the length of the allocated\nand init section of its internal `RingBuffer`, leading to uninitialized\nor 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\ninto the decoded data when decompressing a crafted archive.\nThis may occur multiple times per archive.","state":0,"publishedAt":"2024-11-28T12:00:00+00:00","modifiedAt":"2025-10-28T06:29:26.723756+00:00","affected":[{"ecosystem":"crates.io","name":"ruzstd","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.7.0"},{"kind":"fixed","version":"0.7.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/ruzstd","https://rustsec.org/advisories/RUSTSEC-2024-0400.html","https://github.com/KillingSpark/zstd-rs/issues/75","https://github.com/KillingSpark/zstd-rs/pull/76"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2024-0400","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2024-0400","identifiers":["RUSTSEC-2024-0400","GHSA-x3f4-45xf-rjm7"]},"retained":false,"historicalAffected":[]}],"coverage":[]}