cve.bz

CVE-2020-8631 Use of Insufficiently Random Values

5.5 mediumEPSS 0.4%Fix available

Medium (5.5). EPSS 0.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 39th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-330 Use of Insufficiently Random Values
OWASP Top 10
A04:2025 Cryptographic Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-8631 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-8631?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-8631?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-8631 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
canonical:cloud-initthrough 19.4
opensuse:leap15.1
debian:debian_linux8.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8cloud-init0.7.6~bzr976-2+deb8u1DLA-2113-1
Debian12, 13, 14cloud-init19.4-2DEBIAN-CVE-2020-8631
Ubuntu18.04:LTScloud-init20.2-45-g5f7825e2-0ubuntu1~18.04.1UBUNTU-CVE-2020-8631
UbuntuPro:16.04:LTScloud-initno fix listedUBUNTU-CVE-2020-8631
Red Hatenterprise_linux:7::servercloud-init0:19.4-7.el7RHSA-2020:3898
Red Hatenterprise_linux:8::appstreamcloud-init0:19.4-11.el8RHSA-2020:4650
SUSELinux Enterprise Module for Public Cloud 12cloud-init19.4-37.39.1SUSE-SU-2020:0818-1
SUSELinux Enterprise Module for Public Cloud 15cloud-init19.4-5.24.1SUSE-SU-2020:0585-1
SUSELinux Enterprise Module for Public Cloud 15 SP1cloud-init19.4-8.17.1SUSE-SU-2020:0751-1
openSUSELeap 15.1cloud-init19.4-lp151.2.15.1openSUSE-SU-2020:0400-1
openSUSETumbleweedcloud-init21.2-1.2openSUSE-SU-2024:10688-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7cloud-init-0:19.4-7.el7Fixed 2020-09-29RHSA-2020:3898
Red Hat Enterprise Linux 8cloud-init-0:19.4-11.el8Fixed 2020-11-04RHSA-2020:4650
Red Hat Enterprise Linux 6cloud-initOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-8631.

Attack patterns (CAPEC)

  • CAPEC-59 Session Credential Falsification through Prediction Likelihood: High · Severity: High
  • CAPEC-112 Brute Force Severity: High
  • CAPEC-485 Signature Spoofing by Key Recreation Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON