7.5

CVE-2021-28875: rust-lang rust Unchecked Return Value

Modified
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 82.5% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.1 (NVD)
EPSS score
2.12%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 2

Timeline

  1. 11-04-2021
    PublishedVulnerability first disclosed.
  2. 03-08-2024
    Last 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 versions

EPSS trend

Probability

2.12%

Chance of exploitation in the next 30 days

Percentile

83%

Versus all other CVEs

30-day change

No change 0.00 pp

From 2.12% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Rust

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Debian1 product
  • rustc< 1.53.0+dfsg1-1
Rust-lang1 product
Ubuntu1 product
  • rustcAll versions (No fix recorded) | < 1.51.0+dfsg1+llvm-1~exp3ubuntu1~20.04.2

3 vendors · 3 products

References

7 links