CVE-2021-31996
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
algorithmica (crates.io)up to 0.1.8, from 0.0.0-0GitHub Advisory Database, RustSec Advisory Database
algorithmica_project algorithmicaup to 2021-03-07NVD

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV: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.&#xa0;Se presenta una doble liberación en la función merge_sort::merge().

References

Sources

SourceRecordLicence
CVE ListCVE-2021-31996 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-jh37-772x-4hpw changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2021-0053 changed 2023-11-08CC0-1.0
NVDCVE-2021-31996 changed 2026-06-17Public domain