CVE-2021-28875: rust-lang rust Unchecked Return Value
CVSS: 7.5v3.1HighModified
AliasesUBUNTU-CVE-2021-28875DEBIAN-CVE-2021-28875
Published 11-04-2021Last modified 03-08-2024
Vulnerability summary
CVE-2021-28875 is a high (CVSS 7.5) Unchecked Return Value vulnerability in rust-lang rust. EPSS estimates a 2.12% chance of exploitation in the next 30 days, higher than 81.6% of scored vulnerabilities. 1 public exploit is recorded.
CVSS score
7.5/10
010
High · v3.1 (NVD)EPSS score
2.12%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github
Advisory lineage
Upstream 0 · Downstream 2Timeline
- 11-04-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versionsHigh 7.5Preferred score · NVD (NIST)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HSourcesAll 3 agree
- OSV · UbuntuEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Medium 5.0Preferred score · NVD (NIST)
AV:N/AC:L/Au:N/C:N/I:N/A:PSourcesSingle source
EPSS trend
Probability
2.12%
Chance of exploitation in the next 30 days
Percentile
82%
Versus all other CVEs
30-day change
0.00 pp
From 2.12% on 19-09-2026
19-09-202619-10-2026
EPSS score2.12%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundRust
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Debian1 product
- rustc< 1.53.0+dfsg1-1
Rust-lang1 product
- rust< 1.50.0
Ubuntu1 product
- rustcAll versions (No fix recorded) | < 1.51.0+dfsg1+llvm-1~exp3ubuntu1~20.04.2
3 vendors · 3 products