{"id":"CVE-2020-35862","aliases":["EUVD-2021-1617","GHSA-7cjc-hvxf-gqh7","RUSTSEC-2020-0007"],"status":"published","title":"Use after free and double free in bitvec","description":"An issue was discovered in the bitvec crate before 0.17.4 for Rust. BitVec to BitBox conversion leads to a use-after-free or double free.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.01649,"percentile":0.76707,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-415","CWE-416"],"published":"2020-03-27T12:00:00Z","modified":"2026-06-17T03:14:29Z","fixes":[{"ecosystem":"crates.io","package":"bitvec","fixed_in":["0.17.4"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"bitvec","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.11.0"},{"fixed":"0.17.4"}]}]},{"source":"osv","ecosystem":"crates.io","package":"bitvec","ranges":[{"type":"SEMVER","events":[{"introduced":"0.11.0"},{"fixed":"0.17.4"}]}]},{"source":"osv","ecosystem":"crates.io","package":"bitvec","ranges":[{"type":"SEMVER","events":[{"introduced":"0.11.0"},{"fixed":"0.17.4"}]}]}],"products":[{"vendor":"bitvec_project","product":"bitvec"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0007.html","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35862","tags":["advisory"]},{"url":"https://github.com/myrrlyn/bitvec/issues/55","tags":["web","report"]},{"url":"https://github.com/advisories/GHSA-7cjc-hvxf-gqh7"},{"url":"https://github.com/myrrlyn/bitvec","tags":["package"]},{"url":"https://crates.io/crates/bitvec","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2020-35862","description":"An issue was discovered in the bitvec crate before 0.17.4 for Rust. BitVec to BitBox conversion leads to a use-after-free or double free.","status":"published","published":"2020-12-31T08:29:57Z","modified":"2024-08-04T17:16:12.502Z","updated_at":"2026-11-02T14:35:57.975444Z"}],"euvd":[{"id":"EUVD-2021-1617","description":"An issue was discovered in the bitvec crate before 0.17.4 for Rust. BitVec to BitBox conversion leads to a use-after-free or double free.","status":"published","published":"2020-12-31T08:29:57Z","modified":"2024-08-04T17:16:12Z","updated_at":"2026-11-03T03:07:04.595509Z"}],"ghsa":[{"id":"GHSA-7cjc-hvxf-gqh7","title":"Use after free and double free in bitvec","description":"An issue was discovered in the bitvec crate before 0.17.4 for Rust. BitVec to BitBox conversion leads to a use-after-free or double free.","status":"published","published":"2021-08-25T20:47:39Z","modified":"2023-06-13T16:41:00Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-415","CWE-416"],"updated_at":"2026-11-02T14:36:53.103029Z"}],"nvd":[{"id":"CVE-2020-35862","description":"An issue was discovered in the bitvec crate before 0.17.4 for Rust. BitVec to BitBox conversion leads to a use-after-free or double free.","status":"published","published":"2020-12-31T10:15:15.05Z","modified":"2026-06-17T03:14:29.14Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-415","CWE-416"],"updated_at":"2026-11-02T14:06:28.340168Z"}],"osv":[{"id":"GHSA-7cjc-hvxf-gqh7","title":"Use after free and double free in bitvec","description":"An issue was discovered in the bitvec crate before 0.17.4 for Rust. BitVec to BitBox conversion leads to a use-after-free or double free.","status":"published","published":"2021-08-25T20:47:39Z","modified":"2023-11-08T04:03:36.155899Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-415","CWE-416"],"updated_at":"2026-11-02T15:46:41.002603Z"},{"id":"RUSTSEC-2020-0007","title":"use-after or double free of allocated memory","description":"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.","status":"published","published":"2020-03-27T12:00:00Z","modified":"2023-11-08T04:03:36.155899Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:53:39.492624Z"}]}}
