7.5high
Use of Uninitialized Resource in ms3d
- Severity
- 7.5high CVSS:3.1 by NVD
- Exploit likelihood
- 1.58% (higher than 76% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- GHSA-9f5r-vqm5-m342RUSTSEC-2021-0016
Description
An issue was discovered in the ms3d crate before 0.1.3 for Rust. It might allow attackers to obtain sensitive information from uninitialized memory locations via IoReader::read.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| ms3d (crates.io) | before 0.1.3, from 0.0.0-0 before 0.1.3 | GitHub Advisory Database, RustSec Advisory Database |
| ms3d_project ms3d | before 0.1.3 | NVD |
All scores
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| RustSec Advisory Database | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Classification
What each source says
CVE List
An issue was discovered in the ms3d crate before 0.1.3 for Rust. It might allow attackers to obtain sensitive information from uninitialized memory locations via IoReader::read.
GitHub Advisory Database
Affected versions of this crate passes an uninitialized buffer to a user-provided Read implementation. Arbitrary Read implementations can read from the uninitialized buffer (memory exposure) and also can return incorrect number of bytes written to the buffer. Reading from uninitialized memory produces undefined values that can quickly invoke undefined behavior.
The flaw was fixed in commit 599313b by zero-initializing the buffer (via self.buf.resize(len, 0)) before passing it to Read.
RustSec Advisory Database
Affected versions of this crate passes an uninitialized buffer to a user-provided Read implementation.
Arbitrary Read implementations can read from the uninitialized buffer (memory exposure) and also can return incorrect number of bytes written to the buffer.
Reading from uninitialized memory produces undefined values that can quickly invoke undefined behavior.
The flaw was fixed in commit 599313b by zero-initializing the buffer (via self.buf.resize(len, 0)) before passing it to Read.
NVD (es)
Se detectó un problema en la crate ms3d versiones anteriores a 0.1.3 para Rust. Podría permitir a atacantes obtener información confidencial de ubicaciones de memoria no inicializadas por medio de la función IoReader::read
References
| https://rustsec.org/advisories/RUSTSEC-2021-0016.html | advisory, exploit, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-26952 | advisory | |
| https://github.com/andrewhickman/ms3d/issues/1 | report, web | |
| https://github.com/andrewhickman/ms3d/commit/599313b | web | |
| https://github.com/andrewhickman/ms3d | package | |
| https://crates.io/crates/ms3d | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-26952 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-9f5r-vqm5-m342 changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2021-0016 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2021-26952 changed 2026-06-17 | Public domain |