{"id":"RUSTSEC-2020-0038","summary":"Memory safety issues in `compact::Vec`","details":"`compact::Vec` contains multiple memory safety issues.\n\n1. It mishandles large capacity and causes out-of-bound access in 32-bit / allocator layout mismatch in 64-bit.\n2. `remove()` is not panic-safe and causes double-free when an index larger than the length is provided.","aliases":["CVE-2020-35890","CVE-2020-35891","GHSA-4wj3-p7hj-cvx8","GHSA-qrwc-jxf5-g8x6"],"modified":"2023-11-08T04:03:37.807358Z","published":"2020-09-03T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/ordnung"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2020-0038.html"},{"type":"REPORT","url":"https://github.com/maciejhirsz/ordnung/issues/8"}],"affected":[{"package":{"name":"ordnung","ecosystem":"crates.io","purl":"pkg:cargo/ordnung"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"arch":[],"os":[],"functions":[]}},"database_specific":{"cvss":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","informational":null,"categories":[],"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2020-0038.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}