GHSA-jh37-772x-4hpw
Dashboard / Vulnerabilities / GHSA-jh37-772x-4hpw
GHSA-jh37-772x-4hpw
Published: 25 Aug 2021Last Modified: 8 Nov 2023
Aliases:
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.
References: https://nvd.nist.gov/vuln/detail/CVE-2021-31996, https://github.com/AbrarNitk/algorithmica/issues/1, https://rustsec.org/advisories/RUSTSEC-2021-0053.html
Affected packages
Package
Name: algorithmica
Purl: pkg:cargo/algorithmica
Affected ranges
Type: SEMVER
Events:
Introduced- 0
Fixed -None
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
