{"id":"GHSA-2v78-j59h-fmpf","summary":"Heap overflow or corruption in safe-transmute","details":"Affected versions of this crate switched the length and capacity arguments in the Vec::from_raw_parts() constructor, which could lead to memory corruption or data leakage.","aliases":["CVE-2018-21000","RUSTSEC-2018-0013"],"modified":"2023-11-08T04:00:13.925381Z","published":"2021-08-25T20:43:23Z","database_specific":{"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2021-08-19T21:24:31Z","nvd_published_at":null,"cwe_ids":["CWE-119"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-21000"},{"type":"WEB","url":"https://github.com/nabijaczleweli/safe-transmute-rs/pull/36"},{"type":"WEB","url":"https://github.com/nabijaczleweli/safe-transmute-rs/commit/a134e06d740f9d7c287f74c0af2cd06206774364"},{"type":"PACKAGE","url":"https://github.com/nabijaczleweli/safe-transmute-rs"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2018-0013.html"}],"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"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-2v78-j59h-fmpf/GHSA-2v78-j59h-fmpf.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}