CVE-2021-3155
snapd created ~/snap with too-wide permissions
Reported by canonical · Published February 17, 2022
snapd 2.54.2 and earlier created ~/snap directories in user home directories without specifying owner-only permissions. This could allow a local attacker to read information that should have been private. Fixed in snapd versions 2.54.3+18.04, 2.54.3+20.04 and 2.54.3+21.10.1
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| snapd | Ubuntu:18.04:LTS | 2.54.3+18.04 |
| snapd | canonical | 2.54.3 |
| snapd | Canonical Ltd. | 2.54.2 |
| snapd | Ubuntu:20.04:LTS | 2.54.3+20.04.1 |
| snapd | Ubuntu:Pro:16.04:LTS | 2.54.3+16.04~esm2 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Canonical Ltd. | snapd | unspecified |
| Canonical Ltd. | snapd | * |
Timeline
- Feb 17, 2022 CVE Published
- Feb 18, 2022 EPSS Score (30 in total, the first dated here)
- Oct 15, 2025 CVE Updated
- Mar 7, 2026 Distribution Patch (3 in total, the first dated here)
- Mar 7, 2026 Security Advisory (4 in total, the first dated here)
- Aug 2, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2021-3155
vulnetix vdb fixes CVE-2021-3155
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-3155/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart