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

EcosystemPackageFixed inAdvisory
Alpine:v3.20cloud-init21.1-r1ALPINE-CVE-2021-3429
Alpine:v3.21cloud-init21.1-r1ALPINE-CVE-2021-3429
Alpine:v3.22cloud-init21.1-r1ALPINE-CVE-2021-3429
Alpine:v3.23cloud-init21.1-r1ALPINE-CVE-2021-3429
Alpine:v3.24cloud-init21.1-r1ALPINE-CVE-2021-3429
Debian:12cloud-init20.4.1-2DEBIAN-CVE-2021-3429
Debian:13cloud-init20.4.1-2DEBIAN-CVE-2021-3429
Debian:14cloud-init20.4.1-2DEBIAN-CVE-2021-3429
Rocky Linux:8cloud-init0:20.3-10.el8_4.5RLSA-2021:3081

Affected products (as reported)

VendorProductVersions
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

References