{ "schema_version": "1.4.0", "id": "GHSA-jh37-772x-4hpw", "modified": "2021-08-24T19:12:12Z", "published": "2021-08-25T21:01:52Z", "aliases": [ "CVE-2021-31996" ], "summary": "Double free in algorithmica", "details": "An issue was discovered in the algorithmica crate through 2021-03-07 for Rust. 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, simply invoking `merge_sort::merge()` on `Vec` can cause **double free** bugs.\n", "severity": [ { "type": "CVSS_V3", "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H" } ], "affected": [ { "package": { "ecosystem": "crates.io", "name": "algorithmica" }, "ranges": [ { "type": "ECOSYSTEM", "events": [ { "introduced": "0" }, { "last_affected": "0.1.8" } ] } ] } ], "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2021-31996" }, { "type": "WEB", "url": "https://github.com/AbrarNitk/algorithmica/issues/1" }, { "type": "WEB", "url": "https://rustsec.org/advisories/RUSTSEC-2021-0053.html" } ], "database_specific": { "cwe_ids": [ "CWE-415" ], "severity": "HIGH", "github_reviewed": true, "github_reviewed_at": "2021-05-25T20:52:19Z", "nvd_published_at": null } }