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

- Severity: Medium 5.5 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2023-04-19T21:42:02.402Z
- Modified: 2026-06-17T04:05:04.447Z
- Weaknesses: CWE-532
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: canonical

## 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.

(As written by CVE List.)

## Affected

- cloud-init: before 21.2
- canonical cloud-init: before 21.2

## Every score

- canonical: 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`
- CISA-ADP: 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`
- NVD: 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`

## References

- <https://github.com/canonical/cloud-init/commit/b794d426b9ab43ea9d6371477466070d86e10668> (patch)

## Sources

- CVE List: [CVE-2021-3429](https://www.cve.org/CVERecord?id=CVE-2021-3429), CVE Terms of Use, modified 2025-02-05
- NVD: [CVE-2021-3429](https://nvd.nist.gov/vuln/detail/CVE-2021-3429), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3429 · Whole record: https://cve.day/CVE-2021-3429.json · Rebuilt by cve.day 2026-11-25T22:58:08.413Z
