Uninitialized Memory Exposure Affecting rdiff package, versions *


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.15% (52nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RUST-RDIFF-1569215
  • published24 Aug 2021
  • disclosed3 Feb 2021
  • creditUnknown

Introduced: 3 Feb 2021

CVE-2021-45694  (opens in a new tab)
CWE-201  (opens in a new tab)

How to fix?

There is no fixed version for rdiff.

Overview

rdiff is an A library for tracking changes to a file over time.

Affected versions of this package are vulnerable to Uninitialized Memory Exposure. 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.

References

CVSS Scores

version 3.1