CVE-2021-45694
JSON

7.5high

Window may read from uninitialized memory locations in rdiff

Severity
7.5high CVSS:3.1 by NVD
Exploit likelihood
1.09% (higher than 66% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-2rxc-8f9w-fjq8GHSA-q579-9wp9-gfp2RUSTSEC-2021-0094

Description

An issue was discovered in the rdiff crate through 2021-02-03 for Rust. Window may read from uninitialized memory locations.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
rdiff (crates.io)up to 0.1.2, from 0.0.0-0GitHub Advisory Database, RustSec Advisory Database
rdiff_project rdiffup to 0.1.2NVD

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
GitHubhigh rating
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 rdiff crate through 2021-02-03 for Rust. Window may read from uninitialized memory locations.

GitHub Advisory Database

An issue was discovered in the rdiff crate through version 0.1.2 for Rust. Window may read from uninitialized memory locations.

GitHub Advisory Database

rdiff performs a diff of two provided strings or files. As part of its reading code it uses the return value of a Read instance to set the length of its internal character vector.

If the Read implementation claims that it has read more bytes than the length of the provided buffer, the length of the vector will be set to longer than its capacity. This causes rdiff APIs to return uninitialized memory in its API methods.

NVD (es)

Se ha detectado un problema en la crate rdiff versiones hasta 03-02-2021 para Rust. Window puede leer desde ubicaciones de memoria no inicializadas

References

Sources

SourceRecordLicence
CVE ListCVE-2021-45694 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-2rxc-8f9w-fjq8 changed 2023-11-08CC-BY-4.0
GitHub Advisory DatabaseGHSA-q579-9wp9-gfp2 changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2021-0094 changed 2023-11-08CC0-1.0
NVDCVE-2021-45694 changed 2026-06-17Public domain