Every CVESearch/Get API key

CVE-2021-45694

Window may read from uninitialized memory locations in rdiff

7.5 High

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

1.09%Up 0.5 points since Dec 27, 2021
90%50%10%1%

What each source reports

NVD Score used7.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 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS 2.0
5.0 MediumAV: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-fjq87.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 HighCVSS: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-fjq87.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 HighCVSS: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

Affected packages
PackageAffectedFixed
rdiff
crates.io
through 0.1.2None known
rdiff
crates.io
0.0.0-0 and laterNone known

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE 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

MoveEnter Open