CVE-2020-8631

CVE-2020-8631 is a medium-severity vulnerability in Canonical Cloud-init with a CVSS 3.x base score of 5.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-330.

Key facts

Description

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.

Frequently asked questions

What is CVE-2020-8631?
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.
How severe is CVE-2020-8631?
CVE-2020-8631 has a CVSS 3.x base score of 5.5, rated medium severity. It is exploitable over local access with low attack complexity, requires low privileges and no user interaction. Impact on confidentiality is high, integrity none, and availability none.
Is CVE-2020-8631 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (35th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2020-8631?
CVE-2020-8631 primarily affects Canonical Cloud-init. In total, 3 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
How do I fix CVE-2020-8631?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
When was CVE-2020-8631 published?
CVE-2020-8631 was published on 2020-02-05 and last updated on 2026-06-17.

References

Affected products (3)

More vulnerabilities in Canonical Cloud-init

All CVEs affecting Canonical Cloud-init →

Other CWE-330 (Use of Insufficiently Random Values) vulnerabilities

Browse all CWE-330 (Use of Insufficiently Random Values) vulnerabilities →