{"schemaVersion":3,"id":"CVE-2020-8631","aliases":["UBUNTU-CVE-2020-8631","DEBIAN-CVE-2020-8631"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2020-02-05T13:39:50.000Z","modified":"2024-08-04T10:03:46.363Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":2.1,"severity":"low","vector":"AV:L/AC:L/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00435,"percentile":0.36384,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00435},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00435,"percentile":0.36384}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00435,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00435,"percentile":0.36384}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-330","name":"Use of Insufficiently Random Values","description":"The product uses insufficiently random numbers or values in a security context that depends on unpredictable numbers.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/330.html"}],"affected":[{"vendor":"canonical","product":"cloud-init","name":"cloud-init","label":"cloud-init","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 19.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≤ 19.4","eol":null,"hubHref":"/vendor/canonical/cloud-init"},{"vendor":"debian","product":"cloud-init","name":"cloud-init","label":"cloud-init","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/cloud-init","purlType":"deb","versions":[{"text":"< 19.4-2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 19.4-2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"cloud-init","name":"cloud-init","label":"cloud-init","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/cloud-init","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 20.2-45-g5f7825e2-0ubuntu1~18.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 20.2-45-g5f7825e2-0ubuntu1~18.04.1","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"8.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"8.0","eol":{"isEol":true,"eolDate":"2020-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"8","label":"8 (Jessie)","eolFrom":"2020-06-30T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"8.11"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"opensuse","product":"leap","name":"leap","label":"leap","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"15.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"15.1","eol":{"isEol":true,"eolDate":"2021-02-02T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"15.1","label":"Leap 15.1","eolFrom":"2021-02-02T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":null},"product":{"name":"opensuse","label":"openSUSE","category":"os"}},"hubHref":"/vendor/opensuse/leap"}],"affectedCount":5,"eol":{"hasEol":true,"count":2},"references":[{"url":"https://github.com/canonical/cloud-init/pull/204","label":"github.com/canonical/cloud-init/pull/204","hostname":"github.com","tags":["X Refsource MISC","REPORT","Patch","Third Party Advisory"]},{"url":"https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1860795","label":"bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1860795","hostname":"bugs.launchpad.net","tags":["X Refsource MISC","Issue Tracking","Patch","Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/02/msg00021.html","label":"lists.debian.org/debian-lts-announce/2020/02/msg00021.html","hostname":"lists.debian.org","tags":["Mailing List","X Refsource MLIST","Third Party Advisory"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00042.html","label":"lists.opensuse.org/opensuse-security-announce/2020-03/msg00042.html","hostname":"lists.opensuse.org","tags":["Vendor Advisory","X Refsource SUSE","Mailing List","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2020-8631","label":"ubuntu.com/security/CVE-2020-8631","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2020-8631","label":"www.cve.org/CVERecord?id=CVE-2020-8631","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2020-8631","label":"security-tracker.debian.org/tracker/CVE-2020-8631","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-8631","label":"nvd.nist.gov/vuln/detail/CVE-2020-8631","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["DLA-2113-1","MGASA-2020-0295","OPENSUSE-SU-2020:0400-1","OPENSUSE-SU-2024:10688-1","RHSA-2020:3898","RHSA-2020:4650","SUSE-SU-2020:0585-1","SUSE-SU-2020:0751-1","SUSE-SU-2020:0818-1"],"duplicates":[],"related":["OPENSUSE-SU-2020:0400-1","OPENSUSE-SU-2024:10688-1","SUSE-SU-2020:0585-1","SUSE-SU-2020:0751-1","SUSE-SU-2020:0818-1"]},"timeline":[{"kind":"published","date":"2020-02-05T13:39:50.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-04T10:03:46.363Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":22,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T22:18:44.669Z","stale":false,"partial":false}}