Vulnerability · Published Apr 19, 2023 · Assigned by canonical
CVE-2021-3429sensitive data exposure in cloud-init logs
Medium 5.5
In plain English
A medium-severity sensitive data in logs in cloud-init from Canonical Ltd.. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 12% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)5.5Medium
Exploit odds (30 days)0.2%top 87.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | cloud-init | 21.1-r1 | ALPINE-CVE-2021-3429 |
| Alpine:v3.21 | cloud-init | 21.1-r1 | ALPINE-CVE-2021-3429 |
| Alpine:v3.22 | cloud-init | 21.1-r1 | ALPINE-CVE-2021-3429 |
| Alpine:v3.23 | cloud-init | 21.1-r1 | ALPINE-CVE-2021-3429 |
| Alpine:v3.24 | cloud-init | 21.1-r1 | ALPINE-CVE-2021-3429 |
| Debian:12 | cloud-init | 20.4.1-2 | DEBIAN-CVE-2021-3429 |
| Debian:13 | cloud-init | 20.4.1-2 | DEBIAN-CVE-2021-3429 |
| Debian:14 | cloud-init | 20.4.1-2 | DEBIAN-CVE-2021-3429 |
| Rocky Linux:8 | cloud-init | 0:20.3-10.el8_4.5 | RLSA-2021:3081 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Canonical Ltd. | cloud-init | 0 – before 21.2 |
Weakness: CWE-532 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N