Medium severity · published Apr 19, 2023
CVE-2021-3429
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…
5.5
CVSS
0.2%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 12% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CL
Cloud-init · Canonical
before 21.2 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2021-3429
CVE.org
https://www.cve.org/CVERecord?id=CVE-2021-3429
Patch
https://github.com/canonical/cloud-init/commit/b794d426b9ab43ea9d6371477466070d86e10668
More from Cloud-init
8.8
CVE-2024-6174
When a non-x86 platform is detected, cloud-init grants root access to a hardcoded url with a local IP address
8.8
CVE-2012-6639
An privilege elevation vulnerability exists in Cloud-init before 0.7.0 when requests to an untrusted system are submitted for EC2 instance data
7.1
CVE-2018-10896
The default cloud-init configuration, in cloud-init 0.6.2 and newer, included "ssh_deletekeys: 0", disabling cloud-init's deletion of ssh host keys
5.5
CVE-2023-1786
Sensitive data could be exposed in logs of cloud-init before version 23.1.2
5.5
CVE-2022-2084
Sensitive data could be exposed in world readable logs of cloud-init before version 22.3 when schema failures are reported
