{"id":"GHSA-5m39-wx2q-mxg3","aliases":["GHSA-5m39-wx2q-mxg3","RUSTSEC-2022-0067"],"related":[],"kind":"vulnerability","state":"published","title":"Invalid use of `mem::uninitialized` causes `use-of-uninitialized-value`","summary":"The compression and decompression function used `mem:uninitialized` to create an array of uninitialized values, to later write values into it. This later leads to reads from uninitialized memory.\n\nThe flaw was corrected in commit b633bf265e41c60dfce3be7eac4e4dd5e18d06cf by using a heap-allocated `Vec` and removing out use of `mem::uninitialized`. The fix was released in v0.3.2 and v1.0.0\n\nSubsequently, the crate was deprecated and its use is discouraged.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"The compression and decompression function used `mem:uninitialized` to create an array of uninitialized values, to later write values into it. This later leads to reads from uninitialized memory.\n\nThe flaw was corrected in commit b633bf265e41c60dfce3be7eac4e4dd5e18d06cf by using a heap-allocated `Vec` and removing out use of `mem::uninitialized`. The fix was released in v0.3.2 and v1.0.0\n\nSubsequently, the crate was deprecated and its use is discouraged.","format":"markdown","source":"ghsa"},{"lang":"en","text":"The compression and decompression function used `mem:uninitialized`\nto create an array of uninitialized values, to later write values into it.\nThis later leads to reads from uninitialized memory.\n\nThe flaw was corrected in commit b633bf265e41c60dfce3be7eac4e4dd5e18d06cf\nby using a heap-allocated `Vec` and removing out use of `mem::uninitialized`.\nThe fix was released in v0.3.2 and v1.0.0\n\nSubsequently the crate was deprecated and its use is discouraged.","format":"markdown","source":"rustsec"}],"published":"2022-10-22T12:00:00.000Z","modified":"2023-11-08T04:15:48.003Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.3.2"}],"ecosystem":"crates.io","package":"lzf","purl":"pkg:cargo/lzf","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.3.2"}],"ecosystem":"crates.io","package":"lzf","purl":"pkg:cargo/lzf","source":"rustsec"}],"references":[{"url":"https://github.com/badboy/lzf-rs/issues/9","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/badboy/lzf-rs/commit/b633bf265e41c60dfce3be7eac4e4dd5e18d06cf","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/badboy/lzf-rs","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2022-0067.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/lzf","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5m39-wx2q-mxg3","url":"https://github.com/advisories/GHSA-5m39-wx2q-mxg3","licence":"CC-BY-4.0","modified":"2023-11-08T04:15:48.003Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2022-0067","url":"https://rustsec.org/advisories/RUSTSEC-2022-0067.html","licence":"CC0-1.0","modified":"2023-11-08T04:15:48.003Z"}],"updatedAt":"2026-11-25T22:56:43.114Z"}