All reports
Medium

cloud-init: Too short random password length in cc_set_password in config/cc_set_passwords.py

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2020-8632

Probability of exploitation in the next 30 days: 0.38%

FIRST EPSS · 2026-11-21

Description

In cloud-init through 19.4, rand_user_password in cloudinit/config/cc_set_passwords.py has a small default pwlen value, which makes it easier for attackers to guess passwords.

A flaw was found in cloud-init, where it uses short passwords when generating a random password in new instances. Depending on the instance configuration, a remote or local attacker may abuse this vulnerability to guess the password of the victim user.