{"id":"CVE-2021-31162","details":"In the standard library in Rust before 1.52.0, a double free can occur in the Vec::from_iter function if freeing the element panics.","modified":"2026-04-11T12:36:25.902758Z","published":"2021-04-14T07:15:12.227Z","related":["MGASA-2021-0251"],"database_specific":{"unresolved_ranges":[{"extracted_events":[{"last_affected":"32"}],"source":"CPE_FIELD","cpe":"cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*"},{"extracted_events":[{"last_affected":"33"}],"source":"CPE_FIELD","cpe":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*"},{"extracted_events":[{"last_affected":"34"}],"source":"CPE_FIELD","cpe":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*"}]},"references":[{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CZ337CM4GFJLRDFVQCGC7J25V65JXOG5/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TFUO3URYCO73D2Q4WYJBWAMJWGGVXQO4/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VZG65GUW6Z2CYOQHF7T3TB5CZKIX6ZJE/"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202210-09"},{"type":"FIX","url":"https://github.com/rust-lang/rust/pull/83629"},{"type":"FIX","url":"https://github.com/rust-lang/rust/pull/84603"},{"type":"EVIDENCE","url":"https://github.com/rust-lang/rust/issues/83618"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/rust-lang/rust","events":[{"introduced":"7eac88abb2e57e752f3302f02be5f3ce3d7adfb4"},{"fixed":"88f19c6dab716c6281af7602e30f413e809c5974"}],"database_specific":{"extracted_events":[{"introduced":"1.48.0"},{"fixed":"1.52.0"}],"source":"CPE_FIELD","cpe":"cpe:2.3:a:rust-lang:rust:*:*:*:*:*:*:*:*"}}],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2021-31162.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}