CVEfocus › CVE database › CVE-2021-3429

CVE-2021-3429sensitive data exposure in cloud-init logs

CVSS 5.5 MediumEPSS 0.2% (higher than 7% of CVEs)Published 2023-04-19Updated 2025-02-05Assigner: canonical

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.

CWE-532

What to do

Fixed builds are available from Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

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

20Fixed
1Fix pending
2Will not fix
1Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 20.04cloud-initFixed21.1-19-gbad84ad4-0ubuntu1~20.04.1UBUNTU-CVE-2021-3429
Ubuntu 18.04cloud-initFixed21.1-19-gbad84ad4-0ubuntu1~18.04.1UBUNTU-CVE-2021-3429
Ubuntu 16.04cloud-initFixed21.1-19-gbad84ad4-0ubuntu1~16.04.1UBUNTU-CVE-2021-3429
Ubuntu 14.04cloud-initFix pending
Debian 14cloud-initFixed20.4.1-2DEBIAN-CVE-2021-3429
Debian 13cloud-initFixed20.4.1-2DEBIAN-CVE-2021-3429
Debian 12cloud-initFixed20.4.1-2DEBIAN-CVE-2021-3429
Red Hat Enterprise Linux 9cloud-initNot affected
Red Hat Enterprise Linux 8cloud-initFixed0:20.3-10.el8_4.5RHSA-2021:3081
Red Hat Enterprise Linux 7cloud-initWill not fix
Out of support scope
Red Hat Enterprise Linux 6cloud-initWill not fix
Out of support scope
Rocky Linux 8cloud-initFixed0:20.3-10.el8_4.5RLSA-2021:3081
Alpine Linux 3.24cloud-initFixed21.1-r1ALPINE-CVE-2021-3429
Alpine Linux 3.23cloud-initFixed21.1-r1ALPINE-CVE-2021-3429
Alpine Linux 3.22cloud-initFixed21.1-r1ALPINE-CVE-2021-3429
Alpine Linux 3.21cloud-initFixed21.1-r1ALPINE-CVE-2021-3429
Alpine Linux 3.20cloud-initFixed21.1-r1ALPINE-CVE-2021-3429
Alpine Linux 3.19cloud-initFixed21.1-r1ALPINE-CVE-2021-3429
Alpine Linux 3.18cloud-initFixed21.1-r1ALPINE-CVE-2021-3429
Alpine Linux 3.17cloud-initFixed21.1-r1ALPINE-CVE-2021-3429
Alpine Linux 3.16cloud-initFixed21.1-r1ALPINE-CVE-2021-3429
Alpine Linux 3.15cloud-initFixed21.1-r1ALPINE-CVE-2021-3429
Alpine Linux 3.14cloud-initFixed21.1-r1ALPINE-CVE-2021-3429
Alpine Linux 3.13cloud-initFixed20.4.1-r1ALPINE-CVE-2021-3429

What the vendor says

As published in the CVE record by canonical, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

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.