GHSA-vfqx-hv88-f9cv

Suggest an improvement
Source
https://github.com/advisories/GHSA-vfqx-hv88-f9cv
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-vfqx-hv88-f9cv/GHSA-vfqx-hv88-f9cv.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-vfqx-hv88-f9cv
Aliases
Published
2021-08-25T20:55:22Z
Modified
2024-03-15T00:05:24Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Double-free in id-map
Details

A double free can occur in get_or_insert upon a panic of a user-provided f function. get_or_insert reserves space for a value, before calling the user provided insertion function f. If the function f panics then uninitialized or previously freed memory can be dropped.

Database specific
{
    "cwe_ids":  [
        "CWE-415"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2021-08-19T17:04:13Z",
    "nvd_published_at":  null,
    "severity":  "CRITICAL"
}
References

Affected packages

crates.io / id-map

Package

Affected ranges

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

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-vfqx-hv88-f9cv/GHSA-vfqx-hv88-f9cv.json"