What’s Vulnerable › Vulnerabilities
CVE-2021-3155: snapd created ~/snap with too-wide permissions
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-02-17 · updated 2026-06-17
- Weakness: CWE-276
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
Affected products
- Canonical Ltd. snapd: before 2.54.3 — fixed in 2.54.3
- Canonical Ubuntu Linux: 18.04, 20.04, 21.10
How to fix
Upgrade to a fixed version: Canonical Ltd. snapd 2.54.3. Check the vendor advisory for mitigations.
References
- https://github.com/snapcore/snapd/commit/6bcaeeccd16ed8298a301dd92f6907f88c24cc85
- https://github.com/snapcore/snapd/commit/7d2a966620002149891446a53cf114804808dcca
- https://ubuntu.com/security/notices/USN-5292-1
- https://github.com/snapcore/snapd/commit/6bcaeeccd16ed8298a301dd92f6907f88c24cc85
- https://github.com/snapcore/snapd/commit/7d2a966620002149891446a53cf114804808dcca
- https://ubuntu.com/security/notices/USN-5292-1
Get alerted when CVE-2021-3155 or the next vulnerability affects your stack