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 rand_str in cloudinit/util.py calls the random.choice function.
What to do
Fixed builds are available from Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | cloud-init | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | cloud-init | Fixed | 20.2-45-g5f7825e2-0ubuntu1~18.04.1 | UBUNTU-CVE-2020-8631 |
| Ubuntu 16.04 | cloud-init | Will not fix This CVE has been patched in Xenial ESM. The patch, however, has been added only to the updates pocket, and since cloud-init is only used during first boot… | UBUNTU-CVE-2020-8631 | |
| Ubuntu 14.04 | cloud-init | Will not fix This CVE has been patched in Xenial ESM. The patch, however, has been added only to the updates pocket, and since cloud-init is only used during first boot… | ||
| Debian 14 | cloud-init | Fixed | 19.4-2 | DEBIAN-CVE-2020-8631 |
| Debian 13 | cloud-init | Fixed | 19.4-2 | DEBIAN-CVE-2020-8631 |
| Debian 12 | cloud-init | Fixed | 19.4-2 | DEBIAN-CVE-2020-8631 |
| Red Hat Enterprise Linux 8 | cloud-init | Fixed | 0:19.4-11.el8 | RHSA-2020:4650 |
| Red Hat Enterprise Linux 7 | cloud-init | Fixed | 0:19.4-7.el7 | RHSA-2020:3898 |
| Red Hat Enterprise Linux 6 | cloud-init | Will not fix Out of support scope |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
References
- https://github.com/canonical/cloud-init/pull/204
- https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1860795
- https://lists.debian.org/debian-lts-announce/2020/02/msg00021.html
- http://lists.opensuse.org/opensuse-security-announce/2020-03/msg00042.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.