CVE-2020-36512
JSON

9.8critical

InputStream::read_exact : `Read` on uninitialized buffer causes UB

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
1.23% (higher than 69% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-hmx9-jm3v-33hvGHSA-v938-qcc9-rwv8RUSTSEC-2020-0154

Description

An issue was discovered in the buffoon crate through 2020-12-31 for Rust. InputStream::read_exact may read from uninitialized memory locations.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
buffoon (crates.io)up to 0.5.0, from 0.0.0-0GitHub Advisory Database, RustSec Advisory Database
buffoon_project buffoon0.5.0NVD

All scores

GitHubhigh rating
GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

An issue was discovered in the buffoon crate through 2020-12-31 for Rust. InputStream::read_exact may read from uninitialized memory locations.

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.

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.

NVD (es)

Se ha detectado un problema en la crate buffoon versiones hasta 31-12-2020 para Rust. La función InputStream::read_exact puede leer desde ubicaciones de memoria no inicializadas

References

Sources

SourceRecordLicence
CVE ListCVE-2020-36512 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-hmx9-jm3v-33hv changed 2023-11-08CC-BY-4.0
GitHub Advisory DatabaseGHSA-v938-qcc9-rwv8 changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2020-0154 changed 2023-11-08CC0-1.0
NVDCVE-2020-36512 changed 2026-06-17Public domain