GitHub Advisoryadvisory · crates.io
GHSA-9f5r-vqm5-m342 Use of Uninitialized Resource in ms3d
HIGH
Official page ↗
- Aliases
- CVE-2021-26952
- Ecosystem
- crates.io
- Packages
- ms3d
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-908
- Reviewed
- 2021-08-19
Affected packages
• crates.io ms3d: < 0.1.3 → fixed in 0.1.3
Description
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.
Related
Alias · CVE (1)
- CVE-2021-26952 An issue was discovered in the ms3d crate before 0.1.3 for Rust. vulnerability
Weakness · CWE (1)
- CWE-908 Use of Uninitialized Resource weakness