# 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…

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-02)
- Published: 2020-02-05T13:39:50.000Z
- Modified: 2026-06-17T03:26:40.817Z
- Weaknesses: CWE-330
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- canonical cloud-init: up to 19.4
- opensuse leap: 15.1
- debian debian_linux: 8.0

## Every score

- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 2.1 Low `AV:L/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://github.com/canonical/cloud-init/pull/204> (patch, third-party-advisory)
- <https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1860795> (issue-tracking, patch, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2020/02/msg00021.html> (mailing-list, third-party-advisory)
- <http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00042.html> (mailing-list, third-party-advisory, vendor-advisory)

## Sources

- CVE List: [CVE-2020-8631](https://www.cve.org/CVERecord?id=CVE-2020-8631), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2020-8631](https://nvd.nist.gov/vuln/detail/CVE-2020-8631), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-8631 · Whole record: https://cve.day/CVE-2020-8631.json · Rebuilt by cve.day 2026-11-25T22:57:50.751Z
