GHSA-cv7x-6rc6-pq5v

Suggest an improvement
Source
https://github.com/advisories/GHSA-cv7x-6rc6-pq5v
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-cv7x-6rc6-pq5v/GHSA-cv7x-6rc6-pq5v.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-cv7x-6rc6-pq5v
Aliases
Published
2021-08-25T20:53:05Z
Modified
2023-11-08T04:05:16Z
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 containers
Details

Upon panic in a user-provided function f, fn mutate() & fn mutate2 drops twice a same object.

Affected versions of this crate did not guard against double drop while temporarily duplicating an object's ownership with ptr::read().

Dropping a same object can result in memory corruption.

The flaw was corrected in version "0.9.11" by fixing the code to abort upon panic.

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

Affected packages

crates.io / containers

Package

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

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.9.11

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-cv7x-6rc6-pq5v/GHSA-cv7x-6rc6-pq5v.json"