Vulnerability Details : CVE-2021-28875
Potential exploit
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.
Vulnerability category: Overflow
Products affected by CVE-2021-28875
- cpe:2.3:a:rust-lang:rust:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-28875
0.17%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 34 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-28875
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:N/I:N/A:P |
10.0
|
2.9
|
NIST | |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
3.9
|
3.6
|
NIST |
CWE ids for CVE-2021-28875
-
The product does not check the return value from a method or function, which can prevent it from detecting unexpected states and conditions.Assigned by: nvd@nist.gov (Primary)
References for CVE-2021-28875
-
https://security.gentoo.org/glsa/202210-09
Rust: Multiple Vulnerabilities (GLSA 202210-09) — Gentoo securityThird Party Advisory
-
https://github.com/rust-lang/rust/issues/80894
Heap buffer overflow in `read_to_end_with_reservation()` · Issue #80894 · rust-lang/rust · GitHubExploit;Issue Tracking;Patch;Third Party Advisory
-
https://github.com/rust-lang/rust/pull/80895
Fix handling of malicious Readers in read_to_end by sfackler · Pull Request #80895 · rust-lang/rust · GitHubPatch;Third Party Advisory
Jump to