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 package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| rdiff (crates.io) | up to 0.1.2, from 0.0.0-0 | GitHub Advisory Database, RustSec Advisory Database |
| rdiff_project rdiff | up to 0.1.2 | 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 |
| GitHub | high rating | |
| 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 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
| https://rustsec.org/advisories/RUSTSEC-2021-0094.html | advisory, third-party-advisory, web | |
| https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/rdiff/RUSTSEC-2021-0094.md | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-45694 | advisory | |
| https://github.com/dyule/rdiff/issues/3 | report, web | |
| https://github.com/dyule/rdiff | package | |
| https://crates.io/crates/rdiff | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-45694 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-2rxc-8f9w-fjq8 changed 2023-11-08 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-q579-9wp9-gfp2 changed 2023-11-08 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2021-0094 changed 2023-11-08 | CC0-1.0 |
| NVD | CVE-2021-45694 changed 2026-06-17 | Public domain |