CVE-2021-28875
rust: heap-based buffer overflow in read_to_end() because it does not validate the return value from Read in an unsafe context
Severity Score
7.5
*CVSS v3.1
Exploit Likelihood
*EPSS
Affected Versions
*CPE
Public Exploits
1
*Multiple Sources
Exploited in Wild
-
*KEV
Decision
-
*SSVC
Descriptions
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.
En la biblioteca estándar de Rust versiones anteriores a 1.50.0, la función read_to_end() no comprueba el valor de retorno de Read en un contexto no seguro. Este bug podría conllevar a un desbordamiento de búfer
*Credits:
N/A
CVSS Scores
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
Attack Vector
Attack Complexity
Authentication
Confidentiality
Integrity
Availability
* Common Vulnerability Scoring System
SSVC
- Decision:-
Exploitation
Automatable
Tech. Impact
* Organization's Worst-case Scenario
Timeline
- 2021-03-19 CVE Reserved
- 2021-04-11 CVE Published
- 2023-12-26 EPSS Updated
- 2024-08-03 CVE Updated
- 2024-08-03 First Exploit
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer
- CWE-252: Unchecked Return Value
CAPEC
References (5)
URL | Tag | Source |
---|
URL | Date | SRC |
---|---|---|
https://github.com/rust-lang/rust/issues/80894 | 2024-08-03 |
URL | Date | SRC |
---|---|---|
https://github.com/rust-lang/rust/pull/80895 | 2022-11-03 |
URL | Date | SRC |
---|---|---|
https://security.gentoo.org/glsa/202210-09 | 2022-11-03 | |
https://access.redhat.com/security/cve/CVE-2021-28875 | 2021-08-10 | |
https://bugzilla.redhat.com/show_bug.cgi?id=1949194 | 2021-08-10 |