7.5high
Double free in algorithmica
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 1.00% (higher than 63% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-jh37-772x-4hpwRUSTSEC-2021-0053
Description
An issue was discovered in the algorithmica crate through 2021-03-07 for Rust. There is a double free in merge_sort::merge().
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| algorithmica (crates.io) | up to 0.1.8, from 0.0.0-0 | GitHub Advisory Database, RustSec Advisory Database |
| algorithmica_project algorithmica | up to 2021-03-07 | NVD |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Classification
What each source says
CVE List
An issue was discovered in the algorithmica crate through 2021-03-07 for Rust. There is a double free in merge_sort::merge().
GitHub Advisory Database
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<T: Drop> can cause double free bugs.
RustSec Advisory Database
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<T: Drop> can cause double free bugs.
NVD (es)
Se detectó un problema en la crate algorithmica hasta el 07-03-2021 para Rust. Se presenta una doble liberación en la función merge_sort::merge().
References
| https://rustsec.org/advisories/RUSTSEC-2021-0053.html | advisory, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-31996 | advisory | |
| https://github.com/AbrarNitk/algorithmica/issues/1 | report, web | |
| https://crates.io/crates/algorithmica | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-31996 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-jh37-772x-4hpw changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2021-0053 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2021-31996 changed 2026-06-17 | Public domain |