{"id":"GHSA-cv7x-6rc6-pq5v","summary":"Double free in containers","details":"Upon panic in a user-provided function f, fn mutate() & fn mutate2 drops twice a same object.\n\nAffected versions of this crate did not guard against double drop while temporarily duplicating an object's ownership with ptr::read().\n\nDropping a same object can result in memory corruption.\n\nThe flaw was corrected in version \"0.9.11\" by fixing the code to abort upon panic.","aliases":["CVE-2021-25907","RUSTSEC-2021-0010"],"modified":"2023-11-08T04:05:16.917657Z","published":"2021-08-25T20:53:05Z","database_specific":{"github_reviewed_at":"2021-08-19T18:40:39Z","nvd_published_at":null,"cwe_ids":["CWE-415"],"severity":"CRITICAL","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25907"},{"type":"WEB","url":"https://github.com/strake/containers.rs/issues/2"},{"type":"PACKAGE","url":"https://github.com/strake/containers.rs"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2021-0010.html"}],"affected":[{"package":{"name":"containers","ecosystem":"crates.io","purl":"pkg:cargo/containers"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"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"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}