GHSA-x3f4-45xf-rjm7
MEDIUM`ruzstd` uninit and out-of-bounds memory reads
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.
This 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.
- Published
- 28 Nov 2024
- Last modified
- 10 Sep 2026
- Weakness
- CWE-125
- Also known as
- RUSTSEC-2024-0400
- Sources
- OSVJSONOSV RUSTSEC-2024-0400JSON
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | ruzstd | >= 0.7.0, < 0.7.3 | 0.7.3 |
References
- https://github.com/KillingSpark/zstd-rs/issues/75 · WEB, REPORT
- https://github.com/KillingSpark/zstd-rs/pull/76 · WEB
- https://github.com/KillingSpark/zstd-rs · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2024-0400.html · WEB, ADVISORY
- https://crates.io/crates/ruzstd · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 28 Nov 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 2 Dec 2024)