CVE-2021-3155: snapd created ~/snap with too-wide permissions
Vulnerability summary
CVE-2021-3155 is a medium (CVSS 5.5) Incorrect Default Permissions vulnerability in canonical ltd. snapd. EPSS estimates a 0.26% chance of exploitation in the next 30 days, higher than 18.9% of scored vulnerabilities.
Not severe (CVSS 3.8, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 3 · Related 3Timeline
- 17-02-2022PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
Description
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
CVSS metrics
5 scores · 4 sources · 2 versions- CVE.orgCNA3.8LowCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated3.8LowCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:NDiffers
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.26%
Chance of exploitation in the next 30 days
Percentile
19%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.26% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Canonical2 products
- snapd< 2.54.3
- ubuntu_linuxEOL18.04 | 20.04 | 21.10
Canonical ltd.1 product
- snapd≥ unspecified, ≤ 2.54.2
Debian1 product
- snapd< 2.54-1
Ubuntu1 product
- snapd< 2.54.3+16.04~esm2 | < 2.54.3+18.04 | < 2.54.3+20.04.1
4 vendors · 5 products
References
8 links- github.com/snapcore/snapd/commit/6bcaeeccd16ed8298a301dd92f6907f88c24cc85X Refsource MISCPatchThird Party Advisory
- github.com/snapcore/snapd/commit/7d2a966620002149891446a53cf114804808dccaX Refsource MISCPatchThird Party Advisory