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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-04-19 · Modified: 2025-02-05
- Aliases: MGASA-2021-0494, RHSA-2021:3081, RHSA-2021:3177, RHSA-2021:3371, UBUNTU-CVE-2021-3429, DEBIAN-CVE-2021-3429, DLA-2601-1, ALPINE-CVE-2021-3429
- Record: https://cvemate.com/vulnerability/CVE-2021-3429 · JSON: https://cvemate.com/vulnerability/CVE-2021-3429/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.219%, percentile 13.133%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine cloud-init (Alpine Linux): \< 20.4.1-r1 \| \< 21.1-r1
- canonical ltd. cloud-init: \< 21.2
- canonical cloud-init: \< 21.2
- debian cloud-init (Debian): \< 20.4.1-2 \| \< 0.7.9-2+deb9u1
- ubuntu cloud-init (Ubuntu): \< 21.1-19-gbad84ad4-0ubuntu1~16.04.1 \| \< 21.1-19-gbad84ad4-0ubuntu1~18.04.1 \| \< 21.1-19-gbad84ad4-0ubuntu1~20.04.1
- mageia cloud-init (Mageia): \< 20.2-2.1.mga8
- redhat cloud-init (Red Hat): \< 0:20.3-10.el8\_4.5 \| \< 0:18.5-7.el8\_1.6 \| \< 0:18.5-12.el8\_2.10

## References

- <https://github.com/canonical/cloud-init/commit/b794d426b9ab43ea9d6371477466070d86e10668>
- <https://advisories.mageia.org/MGASA-2021-0494.html>
- <https://bugs.mageia.org/show_bug.cgi?id=28991>
- <https://www.debian.org/lts/security/2021/dla-2601>
- <https://github.com/canonical/cloud-init/releases/tag/21.2>
- <https://access.redhat.com/errata/RHSA-2021:3081>
- <https://access.redhat.com/security/updates/classification/#moderate>
- <https://bugzilla.redhat.com/show_bug.cgi?id=1940967>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_3081.json>
- <https://access.redhat.com/security/cve/CVE-2021-3429>
- <https://www.cve.org/CVERecord?id=CVE-2021-3429>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-3429>
- <https://access.redhat.com/errata/RHSA-2021:3177>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_3177.json>
- <https://access.redhat.com/errata/RHSA-2021:3371>
- <https://security.access.redhat.com/data/csaf/v2/advisories/2021/rhsa-2021_3371.json>
- <https://ubuntu.com/security/CVE-2021-3429>
- <https://security-tracker.debian.org/tracker/CVE-2021-3429>
- <https://security.alpinelinux.org/vuln/CVE-2021-3429>

---

Data as of 2026-12-05T02:35:59.757Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
