{"id":"CVE-2021-25907","aliases":["EUVD-2021-1685","GHSA-cv7x-6rc6-pq5v","RUSTSEC-2021-0010"],"status":"published","title":"Double free in containers","description":"An issue was discovered in the containers crate before 0.9.11 for Rust. When a panic occurs, a util::{mutate,mutate2} double drop can be performed.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-10","score":0.01571,"percentile":0.75601,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-415"],"published":"2021-01-12T12:00:00Z","modified":"2026-06-17T03:42:33Z","fixes":[{"ecosystem":"crates.io","package":"containers","fixed_in":["0.9.11"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"containers","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.9.11"}]}]},{"source":"osv","ecosystem":"crates.io","package":"containers","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.9.11"}]}]},{"source":"osv","ecosystem":"crates.io","package":"containers","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.9.11"}]}]}],"products":[{"vendor":"containers_project","product":"containers"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2021-0010.html","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","web","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25907","tags":["advisory"]},{"url":"https://github.com/strake/containers.rs/issues/2","tags":["web","report"]},{"url":"https://github.com/advisories/GHSA-cv7x-6rc6-pq5v"},{"url":"https://github.com/strake/containers.rs","tags":["package"]},{"url":"https://crates.io/crates/containers","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-25907","description":"An issue was discovered in the containers crate before 0.9.11 for Rust. When a panic occurs, a util::{mutate,mutate2} double drop can be performed.","status":"published","published":"2021-01-22T09:02:19Z","modified":"2024-08-03T20:11:28.473Z","updated_at":"2026-11-02T14:32:59.430294Z"}],"euvd":[{"id":"EUVD-2021-1685","description":"An issue was discovered in the containers crate before 0.9.11 for Rust. When a panic occurs, a util::{mutate,mutate2} double drop can be performed.","status":"published","published":"2021-01-22T09:02:19Z","modified":"2024-08-03T20:11:28Z","updated_at":"2026-11-03T03:24:52.420769Z"}],"ghsa":[{"id":"GHSA-cv7x-6rc6-pq5v","title":"Double free in containers","description":"Upon panic in a user-provided function f, fn mutate() \u0026 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.","status":"published","published":"2021-08-25T20:53:05Z","modified":"2023-06-13T17:00:38Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-415"],"updated_at":"2026-11-02T14:36:53.103029Z"}],"nvd":[{"id":"CVE-2021-25907","description":"An issue was discovered in the containers crate before 0.9.11 for Rust. When a panic occurs, a util::{mutate,mutate2} double drop can be performed.","status":"published","published":"2021-01-26T18:16:22.677Z","modified":"2026-06-17T03:42:33.537Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-415"],"updated_at":"2026-11-02T14:06:49.660551Z"}],"osv":[{"id":"GHSA-cv7x-6rc6-pq5v","title":"Double free in containers","description":"Upon panic in a user-provided function f, fn mutate() \u0026 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.","status":"published","published":"2021-08-25T20:53:05Z","modified":"2023-11-08T04:05:16.917657Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-415"],"updated_at":"2026-11-02T15:46:45.639885Z"},{"id":"RUSTSEC-2021-0010","title":"panic safety: double drop may happen within `util::{mutate, mutate2}`","description":"Upon panic in a user-provided function `f`, `fn mutate()` \u0026 `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.","status":"published","published":"2021-01-12T12:00:00Z","modified":"2023-11-08T04:05:16.917657Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:53:39.492624Z"}]}}
