GHSA-jh37-772x-4hpw

Suggest an improvement
Source
https://github.com/advisories/GHSA-jh37-772x-4hpw
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-jh37-772x-4hpw/GHSA-jh37-772x-4hpw.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-jh37-772x-4hpw
Aliases
Published
2021-08-25T21:01:52Z
Modified
2023-11-08T04:05:51Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
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.

Database specific
{
    "cwe_ids":  [
        "CWE-415"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2021-05-25T20:52:19Z",
    "nvd_published_at":  null,
    "severity":  "HIGH"
}
References

Affected packages

crates.io / algorithmica

Package

Name
algorithmica
View open source insights on deps.dev
Purl
pkg:cargo/algorithmica

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Last Affected
0.1.8

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-jh37-772x-4hpw/GHSA-jh37-772x-4hpw.json"