cve.bz

CVE-2021-3429 canonical cloud-init

5.5 mediumEPSS 0.2%Fix available

Medium (5.5) in canonical cloud-init. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
When instructing cloud-init to set a random password for a new user account, versions before 21.2 would write that password to the world-readable log file /var/log/cloud-init-output.log. This could allow a local user to log in as another user.

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.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 12th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-02-05. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-532 Insertion of Sensitive Information into Log File
OWASP Top 10
A09:2025 Logging & Alerting 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-2021-3429 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3429?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3429?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-2021-3429 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 CNA's record in the CVE List.

ProductAffected
Canonical Ltd. cloud-initbefore 21.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9cloud-init0.7.9-2+deb9u1DLA-2601-1
Debian12, 13, 14cloud-init20.4.1-2DEBIAN-CVE-2021-3429
Ubuntu16.04:LTScloud-init21.1-19-gbad84ad4-0ubuntu1~16.04.1UBUNTU-CVE-2021-3429
Ubuntu18.04:LTScloud-init21.1-19-gbad84ad4-0ubuntu1~18.04.1UBUNTU-CVE-2021-3429
Ubuntu20.04:LTScloud-init21.1-19-gbad84ad4-0ubuntu1~20.04.1UBUNTU-CVE-2021-3429
Red Hatenterprise_linux:8::appstreamcloud-init0:20.3-10.el8_4.5RHSA-2021:3081
Red Hatrhel_eus:8.1::appstreamcloud-init0:18.5-7.el8_1.6RHSA-2021:3177
Red Hatrhel_eus:8.2::appstreamcloud-init0:18.5-12.el8_2.10RHSA-2021:3371
SUSELinux Enterprise Module for Public Cloud 12cloud-init20.2-37.57.1SUSE-SU-2023:2164-1
SUSELinux Enterprise Module for Public Cloud 15 SP1, Linux Enterprise Module for Public Cloud 15 SP2, Linux Enterprise Module for Public Cloud 15 SP3 and 2 morecloud-init23.1-150100.8.66.1SUSE-FU-2023:3283-1
openSUSELeap 15.4, Leap 15.5cloud-init23.1-150100.8.66.1SUSE-FU-2023:3283-1
openSUSETumbleweedcloud-init23.1-2.1openSUSE-SU-2024:13053-1
Rocky Linux8cloud-init0:20.3-10.el8_4.5RLSA-2021:3081
Alpinev3.13cloud-init20.4.1-r1ALPINE-CVE-2021-3429
Alpinev3.14, v3.15, v3.16 and 8 morecloud-init21.1-r1ALPINE-CVE-2021-3429

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; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

By default the randomly password generated by "chpasswd" must be changed on the first login of the user. That means that once a user accesses the system for the first time, the random password in the log file cannot be used anymore. However it is possible to configure an extended validity period for the random password, thus the actual impact of this password leak may vary based on the environment and how the systems are configured through cloud-init.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8cloud-init-0:20.3-10.el8_4.5Fixed 2021-08-10RHSA-2021:3081
Red Hat Enterprise Linux 8.1 Extended Update Supportcloud-init-0:18.5-7.el8_1.6Fixed 2021-08-17RHSA-2021:3177
Red Hat Enterprise Linux 8.2 Extended Update Supportcloud-init-0:18.5-12.el8_2.10Fixed 2021-08-31RHSA-2021:3371
Red Hat Enterprise Linux 6cloud-initOut of support scope
Red Hat Enterprise Linux 7cloud-initOut of support scope
Red Hat Enterprise Linux 9cloud-initNot affected

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-2021-3429.

Attack patterns (CAPEC)

  • CAPEC-215 Fuzzing for application mapping Likelihood: High · Severity: Low

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

References

Check your stackJSON