CVE-2021-3429sensitive data exposure in cloud-init logs
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.
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
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 20.04 | cloud-init | Fixed | 21.1-19-gbad84ad4-0ubuntu1~20.04.1 | UBUNTU-CVE-2021-3429 |
| Ubuntu 18.04 | cloud-init | Fixed | 21.1-19-gbad84ad4-0ubuntu1~18.04.1 | UBUNTU-CVE-2021-3429 |
| Ubuntu 16.04 | cloud-init | Fixed | 21.1-19-gbad84ad4-0ubuntu1~16.04.1 | UBUNTU-CVE-2021-3429 |
| Ubuntu 14.04 | cloud-init | Fix pending | ||
| Debian 14 | cloud-init | Fixed | 20.4.1-2 | DEBIAN-CVE-2021-3429 |
| Debian 13 | cloud-init | Fixed | 20.4.1-2 | DEBIAN-CVE-2021-3429 |
| Debian 12 | cloud-init | Fixed | 20.4.1-2 | DEBIAN-CVE-2021-3429 |
| Red Hat Enterprise Linux 9 | cloud-init | Not affected | ||
| Red Hat Enterprise Linux 8 | cloud-init | Fixed | 0:20.3-10.el8_4.5 | RHSA-2021:3081 |
| Red Hat Enterprise Linux 7 | cloud-init | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | cloud-init | Will not fix Out of support scope | ||
| Rocky Linux 8 | cloud-init | Fixed | 0:20.3-10.el8_4.5 | RLSA-2021:3081 |
| Alpine Linux 3.24 | cloud-init | Fixed | 21.1-r1 | ALPINE-CVE-2021-3429 |
| Alpine Linux 3.23 | cloud-init | Fixed | 21.1-r1 | ALPINE-CVE-2021-3429 |
| Alpine Linux 3.22 | cloud-init | Fixed | 21.1-r1 | ALPINE-CVE-2021-3429 |
| Alpine Linux 3.21 | cloud-init | Fixed | 21.1-r1 | ALPINE-CVE-2021-3429 |
| Alpine Linux 3.20 | cloud-init | Fixed | 21.1-r1 | ALPINE-CVE-2021-3429 |
| Alpine Linux 3.19 | cloud-init | Fixed | 21.1-r1 | ALPINE-CVE-2021-3429 |
| Alpine Linux 3.18 | cloud-init | Fixed | 21.1-r1 | ALPINE-CVE-2021-3429 |
| Alpine Linux 3.17 | cloud-init | Fixed | 21.1-r1 | ALPINE-CVE-2021-3429 |
| Alpine Linux 3.16 | cloud-init | Fixed | 21.1-r1 | ALPINE-CVE-2021-3429 |
| Alpine Linux 3.15 | cloud-init | Fixed | 21.1-r1 | ALPINE-CVE-2021-3429 |
| Alpine Linux 3.14 | cloud-init | Fixed | 21.1-r1 | ALPINE-CVE-2021-3429 |
| Alpine Linux 3.13 | cloud-init | Fixed | 20.4.1-r1 | ALPINE-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.
- Canonical Ltd. cloud-init: affected: before 21.2; fixed in
21.2
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.