Advisory

GHSA-jh37-772x-4hpw

Also known as: CVE-2021-31996, RUSTSEC-2021-0053

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

Severity

High Basis: The source's own band: HIGH

Dates

Published
2021-08-25 21:01 UTC
Modified
2023-11-08 04:05 UTC

Affected packages and fixes

algorithmica

crates.io · All systems

Affected

  • introduced 0, last affected 0.1.8 (semver)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences