Vulnerability · Published Apr 11, 2021 · Assigned by mitre
CVE-2020-36318
Critical 9.8
In plain English
A critical-severity security flaw in the rustc package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.7% (higher than 77% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)1.7%top 23.0% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official description
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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | rustc | 1.53.0+dfsg1-1 | DEBIAN-CVE-2020-36318 |
| Debian:13 | rustc | 1.53.0+dfsg1-1 | DEBIAN-CVE-2020-36318 |
| Debian:14 | rustc | 1.53.0+dfsg1-1 | DEBIAN-CVE-2020-36318 |
| Rocky Linux:8 | rust | 0:1.49.0-1.module+el8.4.0+416+259a129a | RLSA-2021:1935 |
| Rocky Linux:8 | rust-toolset | 0:1.49.0-1.module+el8.4.0+416+259a129a | RLSA-2021:1935 |
Affected products (as reported)
References
- https://github.com/rust-lang/rust/issues/79808 x_refsource_MISC
- https://github.com/rust-lang/rust/pull/79814 x_refsource_MISC