SecurityContext

CVE-2021-3429: cloud-init - Information Disclosure

  • Cve: CVE-2021-3429
  • Name: cloud-init - Information Disclosure
  • 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.
  • Impact: Local users can retrieve passwords from logs and access other user accounts, leading to privilege escalation or unauthorized access.
  • Remediation: Update to version 21.2 or later to prevent password logging in world-readable files.
  • Vulnerability type: broken_access_control
  • Vulnerability impact: information_disclosure, privilege_escalation
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.5
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
  • Epss score: 0.00219
  • Epss percentile: 0.12378
  • Assignee: [email protected]
  • Published at: 2023-04-19T22:15:10Z
  • Age in days: 1315
  • Modified at: 2026-06-17T04:05:04Z
  • Patch available: yes
  • References total: 1
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-3429
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-532Insertion of Sensitive Information into Log File

References

UrlSourceTags
https://github.com/canonical/cloud-init/commit/b794d426b9ab43ea9d6371477466070d86e10668nvdPatch

Products

ProductAffectedPlatform boundSourcesUrl
canonical:cloud-init< 21.2nonvd/v1/products/canonical/cloud-init

Projects

RepositoryLink kindsIndexedUrl
canonical/cloud-initcommit, fixyes/v1/repositories/canonical/cloud-init

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts