ID CVE-2020-8631
Summary cloud-init through 19.4 relies on Mersenne Twister for a random password, which makes it easier for attackers to predict passwords, because rand_str in cloudinit/util.py calls the random.choice function.
References
Vulnerable Configurations
  • cpe:2.3:a:canonical:cloud-init:0.5.0:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.5.0:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.5.1:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.5.1:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.5.2:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.5.2:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.5.3:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.5.3:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.5.4:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.5.4:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.5.5:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.5.5:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.5.6:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.5.6:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.5.8:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.5.8:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.5.10:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.5.10:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.5.11:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.5.11:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.5.12:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.5.12:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.5.13:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.5.13:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.5.14:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.5.14:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.5.15:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.5.15:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.6.0:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.6.0:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.6.1:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.6.1:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.6.2:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.6.2:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.6.3:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.6.3:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.7.0:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.7.0:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.7.1:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.7.1:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.7.2:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.7.2:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.7.3:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.7.3:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.7.4:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.7.4:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.7.5:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.7.5:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.7.6:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.7.6:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.7.7:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.7.7:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.7.8:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.7.8:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:0.7.9:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:0.7.9:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:17.1:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:17.1:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:17.2:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:17.2:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:18.1:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:18.1:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:18.2:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:18.2:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:18.3:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:18.3:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:18.4:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:18.4:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:19.1:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:19.1:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:19.2:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:19.2:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:19.3:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:19.3:*:*:*:*:*:*:*
  • cpe:2.3:a:canonical:cloud-init:19.4:*:*:*:*:*:*:*
    cpe:2.3:a:canonical:cloud-init:19.4:*:*:*:*:*:*:*
  • cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*
    cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*
  • cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
    cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
CVSS
Base: 2.1 (as of 22-12-2021 - 18:18)
Impact:
Exploitability:
CWE CWE-330
CAPEC
  • Brute Force
    In this attack, some asset (information, functionality, identity, etc.) is protected by a finite secret value. The attacker attempts to gain access to this asset by using trial-and-error to exhaustively explore all the possible secret values in the hope of finding the secret (or a value that is functionally equivalent) that will unlock the asset. Examples of secrets can include, but are not limited to, passwords, encryption keys, database lookup keys, and initial values to one-way functions. The key factor in this attack is the attackers' ability to explore the possible secret space rapidly. This, in turn, is a function of the size of the secret space and the computational power the attacker is able to bring to bear on the problem. If the attacker has modest resources and the secret space is large, the challenge facing the attacker is intractable. While the defender cannot control the resources available to an attacker, they can control the size of the secret space. Creating a large secret space involves selecting one's secret from as large a field of equally likely alternative secrets as possible and ensuring that an attacker is unable to reduce the size of this field using available clues or cryptanalysis. Doing this is more difficult than it sounds since elimination of patterns (which, in turn, would provide an attacker clues that would help them reduce the space of potential secrets) is difficult to do using deterministic machines, such as computers. Assuming a finite secret space, a brute force attack will eventually succeed. The defender must rely on making sure that the time and resources necessary to do so will exceed the value of the information. For example, a secret space that will likely take hundreds of years to explore is likely safe from raw-brute force attacks.
  • Session Credential Falsification through Prediction
    This attack targets predictable session ID in order to gain privileges. The attacker can predict the session ID used during a transaction to perform spoofing and session hijacking.
  • Signature Spoofing by Key Recreation
    An attacker obtains an authoritative or reputable signer's private signature key by exploiting a cryptographic weakness in the signature algorithm or pseudorandom number generation and then uses this key to forge signatures from the original signer to mislead a victim into performing actions that benefit the attacker.
Access
VectorComplexityAuthentication
LOCAL LOW NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL NONE NONE
cvss-vector via4 AV:L/AC:L/Au:N/C:P/I:N/A:N
redhat via4
rpms
  • cloud-init-0:19.4-7.el7
  • cloud-init-0:19.4-11.el8
refmap via4
misc
mlist [debian-lts-announce] 20200221 [SECURITY] [DLA 2113-1] cloud-init security update
suse openSUSE-SU-2020:0400
Last major update 22-12-2021 - 18:18
Published 05-02-2020 - 14:15
Last modified 22-12-2021 - 18:18
Back to Top