{"id":"CVE-2021-31162","aliases":["ALPINE-CVE-2021-31162","BELL-CVE-2021-31162","DEBIAN-CVE-2021-31162","EUVD-2021-18076","GHSA-fjcw-72x2-rmmv","MGASA-2021-0251","RHSA-2021:3042","RHSA-2021:3063","RLSA-2021:3063","UBUNTU-CVE-2021-31162"],"status":"published","title":"In the standard library in Rust before 1.53.0, a double free can occur in the Vec::from_iter...","description":"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.","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-12","score":0.0289,"percentile":0.87096,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-415"],"published":"2021-04-14T00:00:00Z","modified":"2026-11-03T06:32:33Z","fixes":[{"ecosystem":"Alpine:v3.24","package":"chromium-rust","fixed_in":["1.51.0-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.14","package":"rust","fixed_in":["1.51.0-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.15","package":"rust","fixed_in":["1.51.0-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.16","package":"rust","fixed_in":["1.51.0-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.17","package":"rust","fixed_in":["1.51.0-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.18","package":"rust","fixed_in":["1.51.0-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.19","package":"rust","fixed_in":["1.51.0-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.20","package":"rust","fixed_in":["1.51.0-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.21","package":"rust","fixed_in":["1.51.0-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.22","package":"rust","fixed_in":["1.51.0-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.23","package":"rust","fixed_in":["1.51.0-r2"],"sources":["osv"]},{"ecosystem":"Alpine:v3.24","package":"rust","fixed_in":["1.51.0-r2"],"sources":["osv"]},{"ecosystem":"Debian:12","package":"rustc","fixed_in":["1.53.0+dfsg1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"rustc","fixed_in":["1.53.0+dfsg1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"rustc","fixed_in":["1.53.0+dfsg1-1"],"sources":["osv"]},{"ecosystem":"Ubuntu:20.04:LTS","package":"rustc","fixed_in":["1.53.0+dfsg1+llvm-4ubuntu1~20.04.1"],"sources":["osv"]},{"ecosystem":"Ubuntu:22.04:LTS","package":"rustc","fixed_in":["1.53.0+dfsg1+llvm-4ubuntu1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Alpine:v3.24","package":"chromium-rust","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.51.0-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.14","package":"rust","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.48.0"},{"fixed":"1.51.0-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.15","package":"rust","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.48.0"},{"fixed":"1.51.0-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.16","package":"rust","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.48.0"},{"fixed":"1.51.0-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.17","package":"rust","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.48.0"},{"fixed":"1.51.0-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.18","package":"rust","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.48.0"},{"fixed":"1.51.0-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.19","package":"rust","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.48.0"},{"fixed":"1.51.0-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.20","package":"rust","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.48.0"},{"fixed":"1.51.0-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.21","package":"rust","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.48.0"},{"fixed":"1.51.0-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.22","package":"rust","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.48.0"},{"fixed":"1.51.0-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.23","package":"rust","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.48.0"},{"fixed":"1.51.0-r2"}]}]},{"source":"osv","ecosystem":"Alpine:v3.24","package":"rust","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.48.0"},{"fixed":"1.51.0-r2"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"rustc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.53.0+dfsg1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"rustc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.53.0+dfsg1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"rustc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.53.0+dfsg1-1"}]}]},{"source":"osv","ecosystem":"Mageia:8","package":"rust","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.52.1-1.mga8"}]}],"bundled":5},{"source":"osv","ecosystem":"Mageia:8","package":"alacritty","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.1-1.1.mga8"}]}],"bundled":5},{"source":"osv","ecosystem":"Mageia:8","package":"cargo-c","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.7.0-1.1.mga8"}]}],"bundled":5},{"source":"osv","ecosystem":"Mageia:8","package":"dust","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.5.1-1.1.mga8"}]}],"bundled":5},{"source":"osv","ecosystem":"Mageia:8","package":"librsvg","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.50.3-1.1.mga8"}]}],"bundled":5},{"source":"osv","ecosystem":"Mageia:8","package":"mozjs68","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"68.11.0-1.1.mga8"}]}],"bundled":5},{"source":"osv","ecosystem":"Mageia:8","package":"mozjs78","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"78.11.0-1.mga8"}]}],"bundled":5},{"source":"osv","ecosystem":"Mageia:8","package":"neovim-gtk","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.2.0-0.git20190512.2.1.mga8"}]}],"bundled":5},{"source":"osv","ecosystem":"Mageia:8","package":"ripgrep","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"12.1.1-1.1.mga8"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:devtools:2021","package":"rust-toolset-1.52","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-1.el7_9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:devtools:2021","package":"rust-toolset-1.52-build","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-1.el7_9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:devtools:2021","package":"rust-toolset-1.52-cargo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-2.el7_9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:devtools:2021","package":"rust-toolset-1.52-cargo-doc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-2.el7_9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:devtools:2021","package":"rust-toolset-1.52-clippy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-2.el7_9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:devtools:2021","package":"rust-toolset-1.52-rls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-2.el7_9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:devtools:2021","package":"rust-toolset-1.52-runtime","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-1.el7_9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:devtools:2021","package":"rust-toolset-1.52-rust","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-2.el7_9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:devtools:2021","package":"rust-toolset-1.52-rust-analysis","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-2.el7_9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:devtools:2021","package":"rust-toolset-1.52-rust-debugger-common","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-2.el7_9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:devtools:2021","package":"rust-toolset-1.52-rust-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-2.el7_9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:devtools:2021","package":"rust-toolset-1.52-rust-doc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-2.el7_9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:devtools:2021","package":"rust-toolset-1.52-rust-gdb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-2.el7_9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:devtools:2021","package":"rust-toolset-1.52-rust-lldb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-2.el7_9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:devtools:2021","package":"rust-toolset-1.52-rust-src","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-2.el7_9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:devtools:2021","package":"rust-toolset-1.52-rust-std-static","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-2.el7_9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:devtools:2021","package":"rust-toolset-1.52-rustfmt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-2.el7_9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"cargo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-1.module+el8.4.0+11282+0729bac9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"cargo-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-1.module+el8.4.0+11282+0729bac9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"cargo-doc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-1.module+el8.4.0+11282+0729bac9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"clippy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-1.module+el8.4.0+11282+0729bac9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"clippy-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-1.module+el8.4.0+11282+0729bac9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"rls","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-1.module+el8.4.0+11282+0729bac9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"rls-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-1.module+el8.4.0+11282+0729bac9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"rust","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-1.module+el8.4.0+11282+0729bac9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"rust-analysis","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-1.module+el8.4.0+11282+0729bac9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"rust-debugger-common","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-1.module+el8.4.0+11282+0729bac9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"rust-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-1.module+el8.4.0+11282+0729bac9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"rust-debugsource","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-1.module+el8.4.0+11282+0729bac9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"rust-doc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-1.module+el8.4.0+11282+0729bac9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"rust-gdb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-1.module+el8.4.0+11282+0729bac9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"rust-lldb","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-1.module+el8.4.0+11282+0729bac9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"rust-src","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-1.module+el8.4.0+11282+0729bac9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"rust-std-static","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-1.module+el8.4.0+11282+0729bac9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"rust-toolset","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-1.module+el8.4.0+11282+0729bac9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"rustfmt","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-1.module+el8.4.0+11282+0729bac9"}]}],"bundled":7},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:8::appstream","package":"rustfmt-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-1.module+el8.4.0+11282+0729bac9"}]}],"bundled":7},{"source":"osv","ecosystem":"Rocky Linux:8","package":"rust","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-1.module+el8.4.0+641+ca238f88"}]}],"bundled":7},{"source":"osv","ecosystem":"Rocky Linux:8","package":"rust-toolset","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:1.52.1-1.module+el8.4.0+641+ca238f88"}]}],"bundled":7},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"rustc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.15.1+dfsg0-1~exp1ubuntu2~14.04.7","1.17.0+dfsg2-8~ubuntu0.14.04.3","1.21.0+dfsg1+llvm-0ubuntu3~14.04.5","1.22.1+dfsg1+llvm-0ubuntu2~14.04.2","1.24.1+dfsg1+llvm-0ubuntu1~14.04.1","1.25.0+dfsg1+llvm-0ubuntu1~14.04.1","1.28.0+dfsg1+llvm-0ubuntu1~14.04.1","1.30.0+dfsg1+llvm-2ubuntu1~14.04.1","1.31.0+dfsg1+llvm-2ubuntu1~14.04.1","1.31.0+dfsg1+llvm-2ubuntu1~14.04.1ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"rustc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.7.0+dfsg1-1","1.15.1+dfsg0-1~exp1ubuntu2~16.04.3","1.17.0+dfsg2-8~ubuntu0.16.04.2","1.21.0+dfsg1+llvm-0ubuntu3~16.04.1","1.22.1+dfsg1+llvm-0ubuntu2~16.04.2","1.24.1+dfsg1+llvm-0ubuntu1~16.04.1","1.25.0+dfsg1+llvm-0ubuntu1~16.04.1","1.28.0+dfsg1+llvm-0ubuntu1~16.04.1","1.30.0+dfsg1+llvm-2ubuntu1~16.04.1","1.31.0+dfsg1+llvm-2ubuntu1~16.04.1","1.32.0+dfsg1+llvm-1ubuntu1~16.04.1","1.34.1+dfsg2+llvm-0ubuntu1~16.04.1","1.35.0+dfsg0.1+llvm-0ubuntu1~16.04.1","1.36.0+dfsg1+llvm-2ubuntu1~16.04.1","1.37.0+dfsg1+llvm-1ubuntu1~16.04.1","1.39.0+dfsg1+llvm-3ubuntu1~16.04.1","1.41.0+dfsg1+llvm-0ubuntu1~16.04.1","1.43.0+dfsg1+llvm-1~exp1ubuntu2~16.04.1","1.47.0+dfsg1+llvm-1ubuntu1~16.04.1","1.47.0+dfsg1+llvm-1ubuntu1~16.04.1ubuntu2"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"rustc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.53.0+dfsg1+llvm-4ubuntu1~20.04.1"}]}],"versions":["1.37.0+dfsg1+llvm-1ubuntu1","1.38.0+dfsg0.2+llvm-0ubuntu1","1.38.0+dfsg0.2+llvm-0ubuntu2","1.39.0+dfsg1+llvm-3ubuntu1","1.40.0+dfsg1+llvm-5ubuntu1","1.41.0+dfsg1+llvm-0ubuntu1","1.41.0+dfsg1+llvm-0ubuntu2","1.43.0+dfsg1+llvm-1~exp1ubuntu1~20.04.1","1.47.0+dfsg1+llvm-1ubuntu1~20.04.1","1.51.0+dfsg1+llvm-1~exp3ubuntu1~20.04.2"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"rustc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.53.0+dfsg1+llvm-4ubuntu1"}]}],"versions":["1.51.0+dfsg1+llvm-1~exp3ubuntu1"]}],"products":[{"vendor":"fedoraproject","product":"fedora"},{"vendor":"rust-lang","product":"rust"}],"references":[{"url":"https://github.com/rust-lang/rust/issues/83618","tags":["x_transferred","Exploit","Third Party Advisory","evidence","report"]},{"url":"https://github.com/rust-lang/rust/pull/83629","tags":["x_transferred","Patch","Third Party Advisory","fix","report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/CZ337CM4GFJLRDFVQCGC7J25V65JXOG5/","tags":["vendor-advisory","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VZG65GUW6Z2CYOQHF7T3TB5CZKIX6ZJE/","tags":["vendor-advisory","x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/TFUO3URYCO73D2Q4WYJBWAMJWGGVXQO4/","tags":["vendor-advisory","x_transferred","web"]},{"url":"https://github.com/rust-lang/rust/pull/84603","tags":["x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://security.gentoo.org/glsa/202210-09","tags":["vendor-advisory","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-31162","tags":["advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/CZ337CM4GFJLRDFVQCGC7J25V65JXOG5/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TFUO3URYCO73D2Q4WYJBWAMJWGGVXQO4/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/VZG65GUW6Z2CYOQHF7T3TB5CZKIX6ZJE/"},{"url":"https://github.com/advisories/GHSA-fjcw-72x2-rmmv"},{"url":"https://security.alpinelinux.org/vuln/CVE-2021-31162","tags":["advisory"]},{"url":"https://docs.bell-sw.com/security/cves/CVE-2021-31162","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-31162","tags":["advisory"]},{"url":"https://advisories.mageia.org/MGASA-2021-0251.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=29033","tags":["report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/CZ337CM4GFJLRDFVQCGC7J25V65JXOG5/","tags":["web"]},{"url":"https://blog.rust-lang.org/2021/02/11/Rust-1.50.0.html","tags":["web"]},{"url":"https://blog.rust-lang.org/2021/03/25/Rust-1.51.0.html","tags":["web"]},{"url":"https://blog.rust-lang.org/2021/05/06/Rust-1.52.0.html","tags":["web"]},{"url":"https://blog.rust-lang.org/2021/05/10/Rust-1.52.1.html","tags":["web"]},{"url":"https://access.redhat.com/errata/RHSA-2021:3042","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#moderate","tags":["article"]},{"url":"https://access.redhat.com/documentation/en-us/red_hat_developer_tools/1/html/using_rust_1.52.1_toolset","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1949194","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1949198","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1949204","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1949207","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1949211","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1950396","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1950398","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_3042.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2020-36323","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-36323","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36323","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-28875","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-28875","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28875","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-28876","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-28876","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28876","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-28877","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-28877","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28877","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-28878","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-28878","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28878","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-28879","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-28879","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28879","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-31162","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-31162","tags":["advisory","report"]},{"url":"https://access.redhat.com/errata/RHSA-2021:3063","tags":["advisory"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_3063.json","tags":["advisory"]},{"url":"https://errata.rockylinux.org/RLSA-2021:3063","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-31162","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-31162","description":"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.","status":"published","published":"2021-04-14T00:00:00Z","modified":"2024-08-03T22:55:53.384Z","updated_at":"2026-11-02T14:33:05.331617Z"}],"euvd":[{"id":"EUVD-2021-18076","description":"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.","status":"published","published":"2021-04-14T00:00:00Z","modified":"2024-08-03T22:55:53Z","updated_at":"2026-11-03T03:24:40.11662Z"}],"ghsa":[{"id":"GHSA-fjcw-72x2-rmmv","title":"In the standard library in Rust before 1.53.0, a double free can occur in the Vec::from_iter...","description":"In the standard library in Rust before 1.53.0, a double free can occur in the Vec::from_iter function if freeing the element panics.","status":"published","published":"2022-05-24T17:47:39Z","modified":"2023-01-30T05:04:39Z","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:47:05.929455Z"}],"nvd":[{"id":"CVE-2021-31162","description":"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.","status":"published","published":"2021-04-14T07:15:12.227Z","modified":"2026-06-17T03:51:21.57Z","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:51.610648Z"}],"osv":[{"id":"ALPINE-CVE-2021-31162","description":"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.","status":"published","published":"2021-04-14T07:15:12.227Z","modified":"2026-11-03T06:32:33.196980196Z","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-03T07:17:41.158523Z"},{"id":"BELL-CVE-2021-31162","title":"CVE-2021-31162 does not affect BellSoft software","status":"withdrawn","published":"2023-08-31T12:15:46.87365Z","modified":"2026-01-26T09:46:28.449256Z","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:28:15.925958Z"},{"id":"CVE-2021-31162","description":"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.","status":"published","published":"2021-04-14T07:15:12.227Z","modified":"2026-10-24T10:50:24.074415415Z","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:44:19.483607Z"},{"id":"DEBIAN-CVE-2021-31162","description":"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.","status":"published","published":"2021-04-14T07:15:12.227Z","modified":"2026-10-23T18:03:13.512202962Z","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:45:34.94143Z"},{"id":"RHSA-2021:3042","title":"Red Hat Security Advisory: rust-toolset-1.52 and rust-toolset-1.52-rust security and enhancement update","status":"published","published":"2024-09-14T01:22:44Z","modified":"2026-08-09T10:02:43Z","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:08.619234Z"},{"id":"RHSA-2021:3063","title":"Red Hat Security Advisory: rust-toolset:rhel8 security, bug fix, and enhancement update","status":"published","published":"2024-09-14T01:22:51Z","modified":"2026-08-09T10:02:43Z","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:08.619234Z"},{"id":"RLSA-2021:3063","title":"Moderate: rust-toolset:rhel8 security, bug fix, and enhancement update","description":"Rust Toolset provides the Rust programming language compiler rustc, the cargo build tool and dependency manager, and required libraries.\n\nThe following packages have been upgraded to a later upstream version: rust (1.52.1). (BZ#1953002)\n\nSecurity Fix(es):\n\n* rust: optimization for joining strings can cause uninitialized bytes to be exposed (CVE-2020-36323)\n\n* rust: heap-based buffer overflow in read_to_end() because it does not validate the return value from Read in an unsafe context (CVE-2021-28875)\n\n* rust: panic safety issue in Zip implementation (CVE-2021-28876)\n\n* rust: memory safety violation in Zip implementation for nested iter::Zips (CVE-2021-28877)\n\n* rust: memory safety violation in Zip implementation when next_back() and next() are used together (CVE-2021-28878)\n\n* rust: integer overflow in the Zip implementation can lead to a buffer overflow (CVE-2021-28879)\n\n* rust: double free in Vec::from_iter function if freeing the element panics (CVE-2021-31162)\n\nFor more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.\n\nFor information on usage, see Using Rust Toolset linked in the References section.","status":"published","published":"2021-08-10T11:59:11Z","modified":"2026-02-05T01:30:08.211912Z","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:23.969672Z"},{"id":"UBUNTU-CVE-2021-31162","description":"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.","status":"published","published":"2021-04-14T07:15:00Z","modified":"2026-04-22T12:53:00.91338Z","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:54:27.332852Z"},{"id":"MGASA-2021-0251","title":"Updated rust packages fix security vulnerabilities","description":"This Rust update to version 1.52.1 includes security fixes for CVE-2020-36323,\nCVE-2021-28876, CVE-2021-28878, CVE-2021-28879, and CVE-2021-31162.\nThese are memory safety bugs in the Rust standard library. Because it is\nstatically linked, affected applications will need to be rebuilt to benefit\nfrom the fixes. The actual security implications will depend on how these APIs\nare used in each particular case.\n\nThis update also provides new features and bugfixes included in Rust since\nthe previously packaged version 1.49.0. See the referenced release notes for\ndetails.\n\nThe mozjs78 package is also updated from version 78.7.0 to 78.11.0 (ESR).\n","status":"published","published":"2021-06-13T21:32:39Z","modified":"2026-04-16T04:42:40.434704779Z","updated_at":"2026-11-02T15:49:41.509337Z"}]}}
