GitHub Advisoryadvisory · crates.io

GHSA-jh37-772x-4hpw Double free in algorithmica

HIGH Published 2021-08-25 Modified 2021-08-24 Official page ↗
Aliases
CVE-2021-31996
Ecosystem
crates.io
Packages
algorithmica
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weaknesses
CWE-415
Reviewed
2021-05-25

Affected packages

• crates.io algorithmica: <= 0.1.8 (no fix yet)

Description

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.

Related

Alias · CVE (1)

  • CVE-2021-31996 An issue was discovered in the algorithmica crate through 2021-03-07 for Rust. vulnerability

Weakness · CWE (1)

References