Medium
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-8631
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:31 UTC · Revision 1
Source evidence
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.
osv:CVE-2020-8631
Complete source record
{
"id": "a3cb3d8a7bed6c66ff5173d169d2a003519d2461ccb7667132eb357525491e5f",
"url": "https://osv.dev/vulnerability/CVE-2020-8631",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-8631",
"summary": "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.",
"evidence": "osv:CVE-2020-8631",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2020-8631",
"aliases": [
"CVE-2020-8631"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/canonical/cloud-init",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "a1063b89e32fa698382bb9617632c0b5f206cdb4"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:canonical:cloud-init:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "19.4"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"19.1",
"19.4",
"19.3",
"19.2",
"18.5",
"18.4",
"18.3",
"18.2",
"18.1",
"17.2",
"17.1",
"0.7.9",
"0.7.5",
"0.7.8",
"0.6.3",
"0.6.2",
"0.7.7",
"0.7.6",
"0.7.4",
"0.7.3",
"0.7.2",
"0.7.1",
"0.7.0",
"0.6.1",
"0.6.0",
"0.5.16pre1",
"0.5.15",
"0.5.14",
"0.5.13",
"0.5.12",
"0.5.11",
"0.5.10",
"0.5.8",
"0.5.6",
"0.5.5",
"0.5.4",
"0.5.3",
"0.5.2",
"0.5.1",
"0.5.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-8631.json"
}
}
],
"modified": "2026-10-20T10:54:25.647056159Z",
"provider": "osv",
"references": [
"https://lists.debian.org/debian-lts-announce/2020/02/msg00021.html",
"https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1860795",
"https://github.com/canonical/cloud-init/pull/204"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "8.0"
},
{
"last_affected": "8.0"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*"
],
"vendor_product": "opensuse:leap",
"extracted_events": [
{
"range": [
{
"introduced": "15.1"
},
{
"last_affected": "15.1"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2020-8631",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 385348,
"published_at": "2020-02-05T14:15:11.607+00:00"
}