{"id":"GHSA-8fgg-5v78-6g76","summary":"Deserializing an array can free uninitialized memory in byte_struct","details":"Byte_struct stack and unpack structure as raw bytes with packed or bit field layout. An issue was discovered in the byte_struct crate before 0.6.1 for Rust. There can be a drop of uninitialized memory if a certain deserialization method panics.","aliases":["CVE-2021-28033","RUSTSEC-2021-0032"],"modified":"2023-11-08T04:05:27.850049Z","published":"2021-08-25T20:52:03Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2021-08-19T17:25:30Z","nvd_published_at":"2021-03-05T09:15:00Z","cwe_ids":["CWE-119","CWE-908"],"severity":"CRITICAL"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28033"},{"type":"WEB","url":"https://github.com/wwylele/byte-struct-rs/issues/1"},{"type":"WEB","url":"https://github.com/wwylele/byte-struct-rs/commit/a535678377de12bc6bc22620c5f59bcc1369f76f"},{"type":"PACKAGE","url":"https://github.com/wwylele/byte-struct-rs"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2021-0032.html"}],"affected":[{"package":{"name":"byte_struct","ecosystem":"crates.io","purl":"pkg:cargo/byte_struct"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.6.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-8fgg-5v78-6g76/GHSA-8fgg-5v78-6g76.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}