{"id":"RUSTSEC-2020-0007","summary":"use-after or double free of allocated memory","details":"Conversion of `BitVec` to `BitBox` did not account for allocation movement.\n\nThe flaw was corrected by using the address after resizing, rather than the original base address.","aliases":["CVE-2020-35862","GHSA-7cjc-hvxf-gqh7"],"modified":"2023-11-08T04:03:36.155899Z","published":"2020-03-27T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/bitvec"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2020-0007.html"},{"type":"REPORT","url":"https://github.com/myrrlyn/bitvec/issues/55"}],"affected":[{"package":{"name":"bitvec","ecosystem":"crates.io","purl":"pkg:cargo/bitvec"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.11.0"},{"fixed":"0.17.4"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"os":[],"arch":[],"functions":["bitvec::vec::BitVec::into_boxed_bitslice"]}},"database_specific":{"categories":["memory-corruption"],"informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2020-0007.json","cvss":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}