Medium
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2021-3429
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:18 UTC · Revision 1
Source evidence
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.
osv:CVE-2021-3429
Complete source record
{
"id": "72ac85d8cfc3924f6c5a5f1d7fab4eadc88591857a062a6affc3c805aa638f91",
"url": "https://osv.dev/vulnerability/CVE-2021-3429",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2021-3429",
"summary": "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.",
"evidence": "osv:CVE-2021-3429",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2021-3429",
"aliases": [
"CVE-2021-3429"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/canonical/cloud-init",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "13877549527812959f59e4add685bc42d350edd8"
},
{
"fixed": "b794d426b9ab43ea9d6371477466070d86e10668"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:canonical:cloud-init:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "21.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "b794d426b9ab43ea9d6371477466070d86e10668"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"19.1",
"21.1",
"20.4",
"20.3",
"20.2",
"20.1",
"19.4",
"19.3",
"19.2",
"18.5",
"18.4",
"18.3",
"18.2",
"18.1",
"17.2",
"17.1",
"0.7.9",
"0.7.5",
"0.7.8",
"0.6.3",
"0.6.2",
"0.7.7",
"0.7.6",
"0.7.4",
"0.7.3",
"0.7.2",
"0.7.1",
"0.7.0",
"0.6.1",
"0.6.0",
"0.5.16pre1",
"0.5.15",
"0.5.14",
"0.5.13",
"0.5.12",
"0.5.11",
"0.5.10",
"0.5.8",
"0.5.6",
"0.5.5",
"0.5.4",
"0.5.3",
"0.5.2",
"0.5.1",
"0.5.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3429.json"
}
}
],
"modified": "2026-10-20T10:53:48.654266763Z",
"provider": "osv",
"references": [
"https://github.com/canonical/cloud-init/commit/b794d426b9ab43ea9d6371477466070d86e10668"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2021-3429",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 384656,
"published_at": "2023-04-19T22:15:10.137+00:00"
}