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

Medium 5.5 Published Updated

Local attackers can read world-readable logs to obtain random passwords, enabling unauthorized login as other users.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2021-3429?

CVE-2021-3429 is a medium-severity vulnerability in Canonical Ltd. cloud-init, published on 19 Apr 2023. It can only be exploited from the same machine or local network, with no action from the victim.

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.

Weakness: CWE-532

Which versions are affected by CVE-2021-3429?

It affects 1 product.

Linux distribution packages (4)
cloud-init Red Hat:enterprise_linux:8::appstreamAll versions0:20.3-10.el8_4.5
cloud-init Red Hat:rhel_eus:8.1::appstreamAll versions0:18.5-7.el8_1.6
cloud-init Red Hat:rhel_eus:8.2::appstreamAll versions0:18.5-12.el8_2.10
cloud-init Rocky Linux:8All versions0:20.3-10.el8_4.5

Products include Canonical Cloud-Init.

How do I fix CVE-2021-3429?

Upgrade to a fixed version.

Is CVE-2021-3429 being exploited?

There is no known exploitation of CVE-2021-3429 in the wild and no public exploit code.

Sources

Also known as CLEANSTART-2024-OZ46983, DEBIAN-CVE-2021-3429, DLA-2601-1, GHSA-jj89-4799-j2qv, MGASA-2021-0494, OESA-2021-1372 and 5 more.

Is CVE-2021-3429 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free