Vulnerability · Published Apr 14, 2021 · Assigned by mitre
CVE-2020-36323
High 8.2
In plain English
A high-severity security flaw in the chromium-rust package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 2.0% (higher than 81% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)8.2High
Exploit odds (30 days)2.0%top 18.9% 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.52.0, there is an optimization for joining strings that can cause uninitialized bytes to be exposed (or the program to crash) if the borrowed string changes after its length is checked.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.24 | chromium-rust | 1.51.0-r2 | ALPINE-CVE-2020-36323 |
| Alpine:v3.20 | rust | 1.51.0-r2 | ALPINE-CVE-2020-36323 |
| Alpine:v3.21 | rust | 1.51.0-r2 | ALPINE-CVE-2020-36323 |
| Alpine:v3.22 | rust | 1.51.0-r2 | ALPINE-CVE-2020-36323 |
| Alpine:v3.23 | rust | 1.51.0-r2 | ALPINE-CVE-2020-36323 |
| Alpine:v3.24 | rust | 1.51.0-r2 | ALPINE-CVE-2020-36323 |
| Debian:12 | rustc | 1.53.0+dfsg1-1 | DEBIAN-CVE-2020-36323 |
| Debian:13 | rustc | 1.53.0+dfsg1-1 | DEBIAN-CVE-2020-36323 |
| Debian:14 | rustc | 1.53.0+dfsg1-1 | DEBIAN-CVE-2020-36323 |
| Rocky Linux:8 | rust | 0:1.52.1-1.module+el8.4.0+641+ca238f88 | RLSA-2021:3063 |
| Rocky Linux:8 | rust-toolset | 0:1.52.1-1.module+el8.4.0+641+ca238f88 | RLSA-2021:3063 |
| Ubuntu:22.04:LTS | rustc | 1.53.0+dfsg1+llvm-4ubuntu1 | UBUNTU-CVE-2020-36323 |
Affected products (as reported)
References
- https://github.com/rust-lang/rust/issues/80335 x_refsource_MISC
- https://github.com/rust-lang/rust/pull/81728 x_refsource_MISC
- https://github.com/rust-lang/rust/pull/81728#issuecomment-821549174 x_refsource_MISC
- FEDORA-2021-d0ba1901ca vendor-advisory, x_refsource_FEDORA
- https://github.com/rust-lang/rust/pull/81728#issuecomment-824904190 x_refsource_MISC
- FEDORA-2021-b1ba54add6 vendor-advisory, x_refsource_FEDORA
- FEDORA-2021-d7f74f0250 vendor-advisory, x_refsource_FEDORA