CVE-2020-36318
published 2021-04-11CVE-2020-36318: In the standard library in Rust before 1.49.0, VecDeque::make_contiguous has a bug that pops the same element more than once under certain condition. This bug…
PriorityP340critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
EPSS
1.68%
74.2th percentile
In the standard library in Rust before 1.49.0, VecDeque::make_contiguous has a bug that pops the same element more than once under certain condition. This bug could result in a use-after-free or double free.
Affected
5 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | rustc | < rustc 1.53.0+dfsg1-1 (bookworm) | rustc 1.53.0+dfsg1-1 (bookworm) |
| msrc | cbl_mariner_1.0_arm | — | — |
| msrc | cbl_mariner_1.0_x64 | — | — |
| msrc | cm1_rust_1.59.0-1_on_cbl_mariner_1.0 | — | — |
| rust-lang | rust | >= 1.48.0 < 1.49.0 | 1.49.0 |
CVSS provenance
nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvdv2.07.5HIGHAV:N/AC:L/Au:N/C:P/I:P/A:P
osv9.8CRITICAL
vendor_debian9.8CRITICAL
vendor_msrc9.8CRITICAL
vendor_redhat9.8CRITICAL
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Microsoft
In the standard library in Rust before 1.49.0 VecDeque::make_contiguous has a bug that pops the same element more than once under certain condition. This bug could result in a use-after-free or double
vendor_msrc·2021-04-13·CVSS 9.8
CVE-2020-36318 [CRITICAL] CWE-415 In the standard library in Rust before 1.49.0 VecDeque::make_contiguous has a bug that pops the same element more than once under certain condition. This bug could result in a use-after-free or double
In the standard library in Rust before 1.49.0 VecDeque::make_contiguous has a bug that pops the same element more than once under certain condition. This bug could result in a use-after-free or double free.
FAQ: Is Azure Linux the only Microsoft product that includes this open-source library and is therefore potentially affected by this vulnerability?
One of the main benefits to our customers who choose to use the Azure Linux distro is the commitment to keep it up to date with the most recent and most secure versions of the open source libraries with which the distro is composed. Microsoft is committed to transparency in this work which is why we began publishing CSAF/VEX in October 2025. See this blog post for more information. If impact to additional products is identified, we will upda
Red Hat
rust: use-after-free or double free in VecDeque::make_contiguous
vendor_redhat·2020-12-07·CVSS 9.8
CVE-2020-36318 [CRITICAL] CWE-416 rust: use-after-free or double free in VecDeque::make_contiguous
rust: use-after-free or double free in VecDeque::make_contiguous
In the standard library in Rust before 1.49.0, VecDeque::make_contiguous has a bug that pops the same element more than once under certain condition. This bug could result in a use-after-free or double free.
Statement: VecDeque::make_contiguous is not considered stable is versions of rust prior to 1:48. As a result, it should not be used as shipped in Red Hat Enterprise Linux versions 8.3 and older.
Package: rust (Red Hat Enterprise Linux 9) - Not affected
Debian
CVE-2020-36318: rustc - In the standard library in Rust before 1.49.0, VecDeque::make_contiguous has a b...
vendor_debian·2020·CVSS 9.8
CVE-2020-36318 [CRITICAL] CVE-2020-36318: rustc - In the standard library in Rust before 1.49.0, VecDeque::make_contiguous has a b...
In the standard library in Rust before 1.49.0, VecDeque::make_contiguous has a bug that pops the same element more than once under certain condition. This bug could result in a use-after-free or double free.
Scope: local
bookworm: resolved (fixed in 1.53.0+dfsg1-1)
bullseye: open
forky: resolved (fixed in 1.53.0+dfsg1-1)
sid: resolved (fixed in 1.53.0+dfsg1-1)
trixie: resolved (fixed in 1.53.0+dfsg1-1)
GHSA
GHSA-w7c8-v5h2-32ff: In the standard library in Rust before 1
ghsa_unreviewed·2022-05-24
CVE-2020-36318 [CRITICAL] CWE-415 GHSA-w7c8-v5h2-32ff: In the standard library in Rust before 1
In the standard library in Rust before 1.49.0, VecDeque::make_contiguous has a bug that pops the same element more than once under certain condition. This bug could result in a use-after-free or double free.
OSV
CVE-2020-36318: In the standard library in Rust before 1
osv·2021-04-11·CVSS 9.8
CVE-2020-36318 [CRITICAL] CVE-2020-36318: In the standard library in Rust before 1
In the standard library in Rust before 1.49.0, VecDeque::make_contiguous has a bug that pops the same element more than once under certain condition. This bug could result in a use-after-free or double free.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2021-04-11
Published