{"id":"RUSTSEC-2018-0013","summary":"Vec-to-vec transmutations could lead to heap overflow/corruption","details":"Affected versions of this crate switched the length and capacity arguments in the Vec::from_raw_parts() constructor,\nwhich could lead to memory corruption or data leakage.\n\nThe flaw was corrected by using the constructor correctly.","aliases":["CVE-2018-21000","GHSA-2v78-j59h-fmpf"],"modified":"2023-11-08T04:00:13.925381Z","published":"2018-11-27T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/safe-transmute"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2018-0013.html"},{"type":"WEB","url":"https://github.com/nabijaczleweli/safe-transmute-rs/pull/36"}],"affected":[{"package":{"name":"safe-transmute","ecosystem":"crates.io","purl":"pkg:cargo/safe-transmute"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.4.0"},{"fixed":"0.10.1"}]}],"ecosystem_specific":{"affects":{"functions":[],"arch":[],"os":[]},"affected_functions":null},"database_specific":{"cvss":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","categories":[],"informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2018-0013.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}