PT-2021-24268 · Rdiff · Rdiff

Published

2021-02-03

·

Updated

2022-06-17

·

CVE-2021-45694

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions: rdiff crate versions through 0.1.2
Description: The issue arises when the rdiff crate uses the return value of a Read instance to set the length of its internal character vector. If the Read implementation claims to have 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. The rdiff crate performs a diff of two provided strings or files.
Recommendations: For versions through 0.1.2, as a temporary workaround, consider restricting the use of the rdiff crate until a patch is available. Avoid using the rdiff APIs that return uninitialized memory to minimize the risk of exploitation. At the moment, there is no information about a newer version that contains a fix for this issue.

Fix

Use of Uninitialized Resource

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2021-45694
GHSA-2RXC-8F9W-FJQ8
GHSA-Q579-9WP9-GFP2
RUSTSEC-2021-0094

Affected Products

Rdiff