Vulnerability · Published Apr 11, 2021 · Assigned by mitre
CVE-2021-28875
High 7.5
In plain English
A high-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 2.1% (higher than 82% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)7.5High
Exploit odds (30 days)2.1%top 18.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.50.0, read_to_end() does not validate the return value from Read in an unsafe context. This bug could lead to a buffer overflow.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | rustc | 1.53.0+dfsg1-1 | DEBIAN-CVE-2021-28875 |
| Debian:13 | rustc | 1.53.0+dfsg1-1 | DEBIAN-CVE-2021-28875 |
| Debian:14 | rustc | 1.53.0+dfsg1-1 | DEBIAN-CVE-2021-28875 |
| 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 |