{"id":"RUSTSEC-2021-0053","summary":"'merge_sort::merge()' crashes with double-free for `T: Drop`","details":"In the affected versions of this crate, `merge_sort::merge()` wildly duplicates and drops ownership of `T` without guarding against double-free. Due to such implementation,\nsimply invoking `merge_sort::merge()` on `Vec\u003cT: Drop\u003e` can cause **double free** bugs.","aliases":["CVE-2021-31996","GHSA-jh37-772x-4hpw"],"modified":"2023-11-08T04:05:51.884944Z","published":"2021-03-07T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/algorithmica"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2021-0053.html"},{"type":"REPORT","url":"https://github.com/AbrarNitk/algorithmica/issues/1"}],"affected":[{"package":{"name":"algorithmica","ecosystem":"crates.io","purl":"pkg:cargo/algorithmica"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"arch":[],"functions":[],"os":[]}},"database_specific":{"categories":["memory-corruption"],"cvss":null,"informational":null,"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0053.json"}}],"schema_version":"1.7.3"}