Insecure Randomness Affecting github.com/rclone/rclone/cmd/rcd package, versions >=1.49.0 <1.53.3


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

EPSS
0.14% (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 Learn

Learn about Insecure Randomness vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-GITHUBCOMRCLONERCLONECMDRCD-1303390
  • published11 Jun 2021
  • disclosed10 Jun 2021
  • creditUnknown

Introduced: 10 Jun 2021

CVE-2020-28924  (opens in a new tab)
CWE-330  (opens in a new tab)

How to fix?

Upgrade github.com/rclone/rclone/cmd/rcd to version 1.53.3 or higher.

Overview

github.com/rclone/rclone/cmd/rcd is a package part of rclone - "rsync for cloud storage".

Affected versions of this package are vulnerable to Insecure Randomness. Due to the use of a weak random number generator, the password generator has been producing weak passwords with much less entropy than advertised. The suggested passwords depend deterministically on the time the second rclone was started. This limits the entropy of the passwords enormously. These passwords are often used in the crypt backend for encryption of data. It would be possible to make a dictionary of all possible passwords with about 38 million entries per password length. This would make decryption of secret material possible with a plausible amount of effort.

NOTE: all passwords generated by affected versions should be changed.

CVSS Scores

version 3.1