CVE-2020-8631: cloud-init - Weak Randomness
- Cve: CVE-2020-8631
- Name: cloud-init - Weak Randomness
- 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.
- Impact: Attackers can predict passwords generated by cloud-init, leading to unauthorized access and potential system compromise.
- Remediation: Update to a version that uses a cryptographically secure random number generator or implement a stronger randomness source.
- Vulnerability type: weak_cryptography
- Vulnerability impact: information_disclosure, privilege_escalation
- Requirements: Attacker must observe or influence password generation process
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.5
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.00435
- Epss percentile: 0.38506
- Assignee: [email protected]
- Published at: 2020-02-05T14:15:11Z
- Age in days: 2484
- Modified at: 2026-06-17T03:26:40Z
- Patch available: yes
- References total: 4
- Products total: 3
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-8631
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirement type, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-330 | Use of Insufficiently Random Values |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1860795 | Issue Tracking, Patch, Third Party Advisory |
| https://github.com/canonical/cloud-init/pull/204 | Patch, Third Party Advisory |
| http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00042.html | Mailing List, Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2020/02/msg00021.html | Mailing List, Third Party Advisory |
Products
Same in every row:
- Platform bound: no
- Sources: nvd
| Product | Affected | Url |
|---|---|---|
| canonical:cloud-init | <= 19.4 | /v1/products/canonical/cloud-init |
| debian:debian_linux | = 8.0 | /v1/products/debian/debian_linux |
| opensuse:leap | = 15.1 | /v1/products/opensuse/leap |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| canonical/cloud-init | pull | yes | /v1/repositories/canonical/cloud-init |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Exposed hosts: 4739835
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports