CVE-2020-8631 in Canonical Cloud-Init and 2 more products
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.
Affects 3 products from 3 vendors. Facts below cite their sources.
Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Canonical | Cloud-Init | ≤ 19.4 |
| Debian | Debian Linux | 8.0 |
| Opensuse | Leap | 15.1 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2020-8631 |
|---|---|
| BreachSpider ID | BS-2020-GLOBAL-196328-M |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| Published | 2020-02-05 |
| Last modified | 2024-11-21 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-330: CWE-330
Related attack patterns (CAPEC)
CAPEC-59 Session Credential Falsification through Prediction via CWE-330
CAPEC-485 Signature Spoofing by Key Recreation via CWE-330
CAPEC-112 Brute Force via CWE-330
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2020-8631 affects cloud-init versions through 19.4, where the use of Mersenne Twister for generating random passwords can be exploited to predict these passwords.
An attacker can exploit the predictable nature of the Mersenne Twister random number generator used in cloud-init to predict the random passwords generated by the rand_str function in cloudinit/util.py. This can lead to unauthorized access if the predicted passwords are used for authentication.
Questions
What is CVE-2020-8631?
CVE-2020-8631 affects cloud-init versions through 19.4, where the use of Mersenne Twister for generating random passwords can be exploited to predict these passwords.
What is the CVSS score for CVE-2020-8631?
CVE-2020-8631 has CVSS 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N. EPSS: 0.4%.
Is CVE-2020-8631 actively exploited?
No confirmed active exploitation of CVE-2020-8631 as of 2026-05-30.
How do I remediate CVE-2020-8631?
Priority: MEDIUM.
What systems are affected by CVE-2020-8631?
CVE-2020-8631 affects Canonical Cloud-Init; Debian Debian Linux; Opensuse Leap.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Canonical","product":"Cloud-Init","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2024-11-21.