{"id":"RUSTSEC-2018-0011","summary":"Enum repr causing potential memory corruption","details":"The attribute repr() added to enums to be compatible with C-FFI caused\nmemory corruption on MSVC toolchain.\n\narrayfire crates \u003c= version 3.5.0 do not have this issue when used with\nRust versions 1.27 or earlier. The issue only started to appear since\nRust version 1.28.\n\nThe issue seems to be interlinked with which version of Rust is being used.\n\nThe issue was fixed in crate 3.6.0.","aliases":["CVE-2018-20998","GHSA-69fv-gw6g-8ccg"],"modified":"2023-11-08T04:00:13.802563Z","published":"2018-12-18T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/arrayfire"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2018-0011.html"},{"type":"WEB","url":"https://github.com/arrayfire/arrayfire-rust/pull/177"}],"affected":[{"package":{"name":"arrayfire","ecosystem":"crates.io","purl":"pkg:cargo/arrayfire"},"ranges":[{"type":"SEMVER","events":[{"introduced":"3.5.1-0"},{"fixed":"3.6.0"}]}],"ecosystem_specific":{"affects":{"functions":[],"arch":["x86_64"],"os":["windows"]},"affected_functions":null},"database_specific":{"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2018-0011.json","cvss":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","informational":null,"categories":["memory-corruption"]}}],"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"}]}