Vulnerability Details : CVE-2021-26951
An issue was discovered in the calamine crate before 0.17.0 for Rust. It allows attackers to overwrite heap-memory locations because Vec::set_len is used without proper memory claiming, and this uninitialized memory is used for a user-provided Read operation, as demonstrated by Sectors::get.
Vulnerability category: Memory Corruption
Exploit prediction scoring system (EPSS) score for CVE-2021-26951
Probability of exploitation activity in the next 30 days: 0.48%
Percentile, the proportion of vulnerabilities that are scored at or less: ~ 73 % EPSS Score History EPSS FAQ
CVSS scores for CVE-2021-26951
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source |
---|---|---|---|---|---|
7.5
|
HIGH | AV:N/AC:L/Au:N/C:P/I:P/A:P |
10.0
|
6.4
|
NIST |
9.8
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
3.9
|
5.9
|
NIST |
CWE ids for CVE-2021-26951
-
The product writes data past the end, or before the beginning, of the intended buffer.Assigned by: nvd@nist.gov (Primary)
-
The product uses or accesses a resource that has not been initialized.Assigned by: nvd@nist.gov (Primary)
References for CVE-2021-26951
-
https://rustsec.org/advisories/RUSTSEC-2021-0015.html
RUSTSEC-2021-0015: calamine: `Sectors::get` accesses unclaimed/uninitialized memory › RustSec Advisory DatabaseExploit;Vendor Advisory
Products affected by CVE-2021-26951
- cpe:2.3:a:calamine_project:calamine:*:*:*:*:*:rust:*:*