CVE-2021-45694
Window may read from uninitialized memory locations in rdiff
An issue was discovered in the rdiff crate through 2021-02-03 for Rust. Window may read from uninitialized memory locations.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used 7.5
An issue was discovered in the rdiff crate through 2021-02-03 for Rust. Window may read from uninitialized memory locations.
- Record
CVE-2021-45694- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:P/I:N/A:N - Weakness
- CWE-908
- Updated
- 2026-11-02
CVE ListNo score
An issue was discovered in the rdiff crate through 2021-02-03 for Rust. Window may read from uninitialized memory locations.
- Record
CVE-2021-45694- Updated
- 2026-11-02
EUVDEUVD-2022-0427No score
An issue was discovered in the rdiff crate through 2021-02-03 for Rust. Window may read from uninitialized memory locations.
- Record
EUVD-2022-0427- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-2rxc-8f9w-fjq8 7.5
Window may read from uninitialized memory locations in rdiff
An issue was discovered in the rdiff crate through version 0.1.2 for Rust. Window may read from uninitialized memory locations.
- Record
GHSA-2rxc-8f9w-fjq8- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-908
- Updated
- 2026-11-02
GitHub AdvisoriesGHSA-q579-9wp9-gfp2No score
Window can read out of bounds if Read instance returns more bytes than buffer size
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.
- Record
GHSA-q579-9wp9-gfp2- Updated
- 2026-11-02
OSVGHSA-2rxc-8f9w-fjq8 7.5
Window may read from uninitialized memory locations in rdiff
An issue was discovered in the rdiff crate through version 0.1.2 for Rust. Window may read from uninitialized memory locations.
- Record
GHSA-2rxc-8f9w-fjq8- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-908
- Updated
- 2026-11-02
OSVGHSA-q579-9wp9-gfp2No score
Window can read out of bounds if Read instance returns more bytes than buffer size
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.
- Record
GHSA-q579-9wp9-gfp2- Updated
- 2026-11-02
OSVRUSTSEC-2021-0094No score
Window can read out of bounds if Read instance returns more bytes than buffer size
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.
- Record
RUSTSEC-2021-0094- Updated
- 2026-11-02
Affected products
Affected packages
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-45694 is a high vulnerability (CVSS 7.5) in Rdiff Project Rdiff, published February 3, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.09%, the 65th percentile. No source names a fixed version.
References
rustsec.org/advisories/RUSTSEC-2021-0094.html
raw.githubusercontent.com/rustsec/advisory-db/main/crates/rdiff/RUSTSEC-2021-0094.md
nvd.nist.gov/vuln/detail/CVE-2021-45694
github.com/dyule/rdiff/issues/3
github.com/advisories/GHSA-2rxc-8f9w-fjq8
github.com/advisories/GHSA-q579-9wp9-gfp2
github.com/dyule/rdiff
crates.io/crates/rdiff