{"id":"RUSTSEC-2021-0010","summary":"panic safety: double drop may happen within `util::{mutate, mutate2}`","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","GHSA-cv7x-6rc6-pq5v"],"modified":"2023-11-08T04:05:16.917657Z","published":"2021-01-12T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/containers"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2021-0010.html"},{"type":"REPORT","url":"https://github.com/strake/containers.rs/issues/2"}],"affected":[{"package":{"name":"containers","ecosystem":"crates.io","purl":"pkg:cargo/containers"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.9.11"}]}],"ecosystem_specific":{"affects":{"functions":[],"os":[],"arch":[]},"affected_functions":null},"database_specific":{"categories":["memory-corruption"],"source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0010.json","cvss":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","informational":null}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}