ADVISORIES

GitHub Advisory Database

GHSA-jh37-772x-4hpw

Double free in algorithmica

High No fix available CVE-2021-31996RUSTSEC-2021-0053

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<T: Drop> can cause double free bugs.

Affected packages

EcosystemPackageAffected versions
crates.ioalgorithmica
All versions up to and including 0.1.8

References