CVE-2021-26952
JSON

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 packageVersionsReported by
Unspecified productn/aCVE List
ms3d (crates.io)before 0.1.3, from 0.0.0-0 before 0.1.3GitHub Advisory Database, RustSec Advisory Database
ms3d_project ms3dbefore 0.1.3NVD

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
RustSec Advisory Database7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD5.0medium CVSS:2.0AV: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

Sources

SourceRecordLicence
CVE ListCVE-2021-26952 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-9f5r-vqm5-m342 changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2021-0016 changed 2023-11-08CC0-1.0
NVDCVE-2021-26952 changed 2026-06-17Public domain