{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2021-31162","published":"2021-04-14T07:15:12.227000Z","last_modified":"2026-06-17T03:51:21.570000Z","status":"Modified","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-415"],"cpes":[{"criteria":"cpe:2.3:a:rust-lang:rust:*:*:*:*:*:*:*:*","part":"a","vendor":"rust-lang","product":"rust","version_start_including":"1.48.0","version_end_excluding":"1.52.0"},{"criteria":"cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*","part":"o","vendor":"fedoraproject","product":"fedora","version":"32"},{"criteria":"cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*","part":"o","vendor":"fedoraproject","product":"fedora","version":"33"},{"criteria":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","part":"o","vendor":"fedoraproject","product":"fedora","version":"34"}],"cpes_truncated":false,"vendors":["rust-lang","fedoraproject"],"products":["rust-lang/rust","fedoraproject/fedora"],"epss":{"score":0.0289,"percentile":0.87652,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2021-31162/","html_en":"/en/cve/CVE-2021-31162/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-31162","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-31162"},"untrusted":{"vendor_name":"Rust-lang","product_name":"Rust","desc_en":"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.","affected":[],"references":[{"url":"https://github.com/rust-lang/rust/issues/83618","tags":["Exploit","Third Party Advisory"]},{"url":"https://github.com/rust-lang/rust/pull/83629","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/rust-lang/rust/pull/84603","tags":["Patch","Third Party Advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CZ337CM4GFJLRDFVQCGC7J25V65JXOG5/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TFUO3URYCO73D2Q4WYJBWAMJWGGVXQO4/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VZG65GUW6Z2CYOQHF7T3TB5CZKIX6ZJE/","tags":[]},{"url":"https://security.gentoo.org/glsa/202210-09","tags":["Third Party Advisory"]}]}}