Use of insufficiently random values in cloud-init (Ubuntu package) - CVE-2020-8631

 

Use of insufficiently random values in cloud-init (Ubuntu package) - CVE-2020-8631

Published: March 23, 2021


Vulnerability identifier: #VU51627
CSH Severity: Low
CVSS v4: 2 [CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2020-8631
CWE-ID: CWE-330
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to predict passwords.

The vulnerability exists due to cloud-init relies on Mersenne Twister for a random password, which uses the random.choice() function in rand_str() in cloudinit/util.py. A local user can guess randomly generated passwords and gain unauthorized access.


Affected software

cloud-init (Ubuntu package)
cloud-init
cloud-init-help
cloud-init (Red Hat package)
Amazon Linux AMI
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
openEuler

How to mitigate CVE-2020-8631

Install updates from vendor's website.

cloud-init (Ubuntu package) - update to 20.1
cloud-init - update to 19.4-2
cloud-init-help - update to 19.4-2
cloud-init (Red Hat package) - update to 19.4-11.el8

External References

Related Security Bulletins