# CVE-2021-3155: snapd created ~/snap with too-wide permissions

- Priority: **Routine**
- Reason: Not severe (CVSS 3.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2022-02-17 · Modified: 2024-08-03
- Aliases: UBUNTU-CVE-2021-3155, DEBIAN-CVE-2021-3155
- Record: https://cvemate.com/vulnerability/CVE-2021-3155 · JSON: https://cvemate.com/vulnerability/CVE-2021-3155/json

## Description

```text
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
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.26%, percentile 18.917%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- canonical ltd. snapd: ≥ unspecified, ≤ 2.54.2
- canonical snapd: \< 2.54.3
- canonical ubuntu\_linux: 18.04 \| 20.04 \| 21.10
- debian snapd (Debian): \< 2.54-1
- ubuntu snapd (Ubuntu): \< 2.54.3+16.04~esm2 \| \< 2.54.3+18.04 \| \< 2.54.3+20.04.1

## References

- <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/CVE-2021-3155>
- <https://www.cve.org/CVERecord?id=CVE-2021-3155>
- <https://ubuntu.com/security/notices/USN-5292-3>
- <https://ubuntu.com/security/notices/USN-5292-2>
- <https://security-tracker.debian.org/tracker/CVE-2021-3155>

---

Data as of 2026-12-05T02:35:44.917Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
