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

- Severity: Low 3.8 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-02)
- Published: 2022-02-17T22:15:16.000Z
- Modified: 2026-06-17T04:04:45.717Z
- Weaknesses: CWE-276
- Assigned by: canonical

## 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

(As written by CVE List.)

## Affected

- Canonical Ltd. snapd: from unspecified up to 2.54.2
- canonical snapd: before 2.54.3
- canonical ubuntu_linux: 18.04; 20.04; 21.10

## Every score

- canonical: CVSS:3.1 3.8 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 2.1 Low `AV:L/AC:L/Au:N/C:P/I:N/A:N`

## References

- <https://ubuntu.com/security/notices/USN-5292-1> (patch, vendor-advisory)
- <https://github.com/snapcore/snapd/commit/6bcaeeccd16ed8298a301dd92f6907f88c24cc85> (patch, third-party-advisory)
- <https://github.com/snapcore/snapd/commit/7d2a966620002149891446a53cf114804808dcca> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2021-3155](https://www.cve.org/CVERecord?id=CVE-2021-3155), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-3155](https://nvd.nist.gov/vuln/detail/CVE-2021-3155), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-3155 · Whole record: https://cve.day/CVE-2021-3155.json · Rebuilt by cve.day 2026-11-25T22:58:06.997Z
