{"id":"CVE-2021-3155","aliases":["DEBIAN-CVE-2021-3155","EUVD-2021-26499","GHSA-7x7f-q6wr-wc4w","UBUNTU-CVE-2021-3155","USN-5292-1","USN-5292-2","USN-5292-3"],"status":"published","title":"snapd created ~/snap with too-wide permissions","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","severity":{"version":"3.1","score":3.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","level":"low","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.0026,"percentile":0.17858,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-276"],"published":"2021-01-13T00:00:00Z","modified":"2026-10-23T18:03:13Z","fixes":[{"ecosystem":"Debian:12","package":"snapd","fixed_in":["2.54-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"snapd","fixed_in":["2.54-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"snapd","fixed_in":["2.54-1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:16.04:LTS","package":"snapd","fixed_in":["2.54.3+16.04~esm2"],"sources":["osv"]},{"ecosystem":"Ubuntu:18.04:LTS","package":"snapd","fixed_in":["2.54.3+18.04"],"sources":["osv"]},{"ecosystem":"Ubuntu:20.04:LTS","package":"snapd","fixed_in":["2.54.3+20.04.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"snapd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.54-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"snapd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.54-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"snapd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.54-1"}]}]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"snapd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.54.3+16.04~esm2"}]}],"versions":["1.9","1.9.1.1","1.9.2","2.0","2.0.1","2.0.2","2.0.3","2.0.5","2.0.8","2.0.9","2.0.10","2.11+0.16.04","2.12+0.16.04","2.13","2.14.2~16.04","2.15.2ubuntu1","2.16ubuntu3","2.17.1ubuntu1","2.20.1ubuntu1","2.21","2.22.2","2.22.3","2.22.6","2.23.1","2.24.1","2.25","2.26.10","2.27.5","2.28.5","2.29.4.2","2.32.3.2","2.32.9","2.33.1ubuntu2","2.34.2","2.34.2ubuntu0.1","2.37.4","2.37.4ubuntu0.1","2.38","2.39.2","2.39.2ubuntu0.2","2.40","2.42.1","2.45.1","2.45.1ubuntu0.2","2.46.1","2.47.1","2.48","2.48.3"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"snapd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.54.3+18.04"}]}],"versions":["2.28.5+17.10","2.29.4.1+18.04","2.29.4.2+18.04","2.31.1+18.04","2.32+18.04~pre5","2.32+18.04~pre6","2.32+18.04","2.32.3.2+18.04","2.32.5+18.04","2.32.8+18.04","2.32.9+18.04","2.33.1+18.04ubuntu2","2.34.2+18.04","2.34.2+18.04.1","2.37.1+18.04","2.37.1.1+18.04","2.37.4+18.04","2.37.4+18.04.1","2.38+18.04","2.39.2+18.04","2.40+18.04","2.42.1+18.04","2.45.1+18.04","2.45.1+18.04.2","2.46.1+18.04","2.47.1+18.04","2.48+18.04","2.48.3+18.04","2.49.2+18.04","2.51.1+18.04","2.54.2+18.04ubuntu1"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"snapd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.54.3+20.04.1"}]}],"versions":["2.41+19.10.1","2.42.1+20.04","2.43.3+git1.8109f8","2.44~pre1+20.04","2.44+20.04","2.44.2+20.04","2.44.3+20.04","2.45.1+20.04","2.45.1+20.04.2","2.46.1+20.04","2.47.1+20.04","2.48+20.04","2.48.3+20.04","2.49.2+20.04","2.51.1+20.04ubuntu2","2.54.2+20.04ubuntu2","2.54.3+20.04"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"snapd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.54.3+18.04"}]}],"versions":["2.28.5+17.10","2.29.4.1+18.04","2.29.4.2+18.04","2.31.1+18.04","2.32+18.04~pre5","2.32+18.04~pre6","2.32+18.04","2.32.3.2+18.04","2.32.5+18.04","2.32.8+18.04","2.32.9+18.04","2.33.1+18.04ubuntu2","2.34.2+18.04","2.34.2+18.04.1","2.37.1+18.04","2.37.1.1+18.04","2.37.4+18.04","2.37.4+18.04.1","2.38+18.04","2.39.2+18.04","2.40+18.04","2.42.1+18.04","2.45.1+18.04","2.45.1+18.04.2","2.46.1+18.04","2.47.1+18.04","2.48+18.04","2.48.3+18.04","2.49.2+18.04","2.51.1+18.04","2.54.2+18.04ubuntu1"],"bundled":4},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"snapd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.54.3+20.04"}]}],"versions":["2.41+19.10.1","2.42.1+20.04","2.43.3+git1.8109f8","2.44~pre1+20.04","2.44+20.04","2.44.2+20.04","2.44.3+20.04","2.45.1+20.04","2.45.1+20.04.2","2.46.1+20.04","2.47.1+20.04","2.48+20.04","2.48.3+20.04","2.49.2+20.04","2.51.1+20.04ubuntu2","2.54.2+20.04ubuntu2"],"bundled":4},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"snapd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.54.3+20.04.1"}]}],"versions":["2.41+19.10.1","2.42.1+20.04","2.43.3+git1.8109f8","2.44~pre1+20.04","2.44+20.04","2.44.2+20.04","2.44.3+20.04","2.45.1+20.04","2.45.1+20.04.2","2.46.1+20.04","2.47.1+20.04","2.48+20.04","2.48.3+20.04","2.49.2+20.04","2.51.1+20.04ubuntu2","2.54.2+20.04ubuntu2","2.54.3+20.04"],"bundled":4},{"source":"osv","ecosystem":"Ubuntu:Pro:14.04:LTS","package":"snapd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.54.3+14.04~esm1"}]}],"versions":["2.21~14.04.2","2.22.2~14.04","2.22.3~14.04","2.22.6~14.04","2.23.1~14.04","2.24.1~14.04","2.25~14.04","2.26.10~14.04","2.27.5~14.04","2.28.5~14.04","2.29.4.2~14.04","2.32.3.2~14.04","2.32.9~14.04","2.33.1~14.04","2.34.2~14.04","2.34.2~14.04.1","2.37.4~14.04.1","2.38~14.04"],"bundled":4},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"snapd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.54.3+16.04~esm2"}]}],"versions":["1.9","1.9.1.1","1.9.2","2.0","2.0.1","2.0.2","2.0.3","2.0.5","2.0.8","2.0.9","2.0.10","2.11+0.16.04","2.12+0.16.04","2.13","2.14.2~16.04","2.15.2ubuntu1","2.16ubuntu3","2.17.1ubuntu1","2.20.1ubuntu1","2.21","2.22.2","2.22.3","2.22.6","2.23.1","2.24.1","2.25","2.26.10","2.27.5","2.28.5","2.29.4.2","2.32.3.2","2.32.9","2.33.1ubuntu2","2.34.2","2.34.2ubuntu0.1","2.37.4","2.37.4ubuntu0.1","2.38","2.39.2","2.39.2ubuntu0.2","2.40","2.42.1","2.45.1","2.45.1ubuntu0.2","2.46.1","2.47.1","2.48","2.48.3"],"bundled":4}],"products":[{"vendor":"canonical","product":"snapd"},{"vendor":"canonical","product":"ubuntu_linux"},{"vendor":"canonical ltd.","product":"snapd"}],"references":[{"url":"https://ubuntu.com/security/notices/USN-5292-1","tags":["x_refsource_MISC","x_transferred","Patch","Vendor Advisory","fix","advisory"]},{"url":"https://github.com/snapcore/snapd/commit/6bcaeeccd16ed8298a301dd92f6907f88c24cc85","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://github.com/snapcore/snapd/commit/7d2a966620002149891446a53cf114804808dcca","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3155"},{"url":"https://github.com/advisories/GHSA-7x7f-q6wr-wc4w"},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3155","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-3155","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3155","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-5292-3","tags":["advisory"]},{"url":"https://ubuntu.com/security/notices/USN-5292-2","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-4120","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-44730","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2021-44731","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-3155","title":"snapd created ~/snap with too-wide permissions","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","status":"published","published":"2022-02-17T22:15:16Z","modified":"2024-08-03T16:45:51.372Z","cvss":[{"version":"3.1","score":3.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","level":"low","assessor":"cna"}],"cwes":["CWE-276"],"updated_at":"2026-11-02T14:33:04.020035Z"}],"euvd":[{"id":"EUVD-2021-26499","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","status":"published","published":"2022-02-17T22:15:16Z","modified":"2024-08-03T16:45:51Z","cvss":[{"version":"3.1","score":3.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","level":"low"}],"updated_at":"2026-11-03T03:25:13.531128Z"}],"ghsa":[{"id":"GHSA-7x7f-q6wr-wc4w","title":"snapd 2.54.2 and earlier created ~/snap directories in user home directories without specifying...","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","status":"published","published":"2022-02-19T00:01:40Z","modified":"2023-02-03T05:06:23Z","cwes":["CWE-276"],"updated_at":"2026-11-02T14:53:53.812094Z"}],"nvd":[{"id":"CVE-2021-3155","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","status":"published","published":"2022-02-17T23:15:07.337Z","modified":"2026-06-17T04:04:45.717Z","cvss":[{"version":"3.1","score":3.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","level":"low","assessor":"secondary"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"primary"},{"version":"2.0","score":2.1,"vector":"AV:L/AC:L/Au:N/C:P/I:N/A:N","level":"low","assessor":"primary"}],"cwes":["CWE-276"],"updated_at":"2026-11-02T14:07:04.6896Z"}],"osv":[{"id":"CVE-2021-3155","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","status":"published","published":"2022-02-17T23:15:07.337Z","modified":"2026-10-20T10:54:40.190813358Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:19.483607Z"},{"id":"DEBIAN-CVE-2021-3155","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","status":"published","published":"2022-02-17T23:15:07.337Z","modified":"2026-10-23T18:03:13.580741162Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:45:34.94143Z"},{"id":"UBUNTU-CVE-2021-3155","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","status":"published","published":"2021-01-13T00:00:00Z","modified":"2026-02-04T03:01:24.421585Z","cvss":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","level":"medium"},{"version":"3.1","score":3.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","level":"low"}],"updated_at":"2026-11-02T15:54:27.332852Z"},{"id":"USN-5292-1","title":"snapd vulnerabilities","description":"James Troup discovered that snap did not properly manage the permissions for\nthe snap directories. A local attacker could possibly use this issue to expose\nsensitive information. (CVE-2021-3155)\n\nIan Johnson discovered that snapd did not properly validate content interfaces\nand layout paths. A local attacker could possibly use this issue to inject\narbitrary AppArmor policy rules, resulting in a bypass of intended access\nrestrictions. (CVE-2021-4120)\n\nThe Qualys Research Team discovered that snapd did not properly validate the\nlocation of the snap-confine binary. A local attacker could possibly use this\nissue to execute other arbitrary binaries and escalate privileges.\n(CVE-2021-44730)\n\nThe Qualys Research Team discovered that a race condition existed in the snapd\nsnap-confine binary when preparing a private mount namespace for a snap. A\nlocal attacker could possibly use this issue to escalate privileges and\nexecute arbitrary code. (CVE-2021-44731)\n","status":"published","published":"2022-02-17T17:24:49Z","modified":"2026-02-10T04:42:29Z","updated_at":"2026-11-02T16:58:15.683829Z"},{"id":"USN-5292-2","title":"snapd vulnerabilities","description":"USN-5292-1 fixed vulnerabilities in snapd. This update provides the\ncorresponding update for the riscv64 architecture.\n\nOriginal advisory details:\n\n James Troup discovered that snap did not properly manage the permissions for\n the snap directories. A local attacker could possibly use this issue to expose\n sensitive information. (CVE-2021-3155)\n \n Ian Johnson discovered that snapd did not properly validate content interfaces\n and layout paths. A local attacker could possibly use this issue to inject\n arbitrary AppArmor policy rules, resulting in a bypass of intended access\n restrictions. (CVE-2021-4120)\n \n The Qualys Research Team discovered that snapd did not properly validate the\n location of the snap-confine binary. A local attacker could possibly use this\n issue to execute other arbitrary binaries and escalate privileges.\n (CVE-2021-44730)\n \n The Qualys Research Team discovered that a race condition existed in the snapd\n snap-confine binary when preparing a private mount namespace for a snap. A\n local attacker could possibly use this issue to escalate privileges and\n execute arbitrary code. (CVE-2021-44731)\n","status":"published","published":"2022-02-18T01:07:38Z","modified":"2026-02-10T04:42:29Z","updated_at":"2026-11-02T16:58:15.683829Z"},{"id":"USN-5292-3","title":"snapd vulnerabilities","description":"USN-5292-1 fixed several vulnerabilities in snapd. This update provides the\ncorresponding update for Ubuntu 14.04 ESM and Ubuntu 16.04 ESM.\n\nOriginal advisory details:\n\n James Troup discovered that snap did not properly manage the permissions for\n the snap directories. A local attacker could possibly use this issue to expose\n sensitive information. (CVE-2021-3155)\n \n Ian Johnson discovered that snapd did not properly validate content interfaces\n and layout paths. A local attacker could possibly use this issue to inject\n arbitrary AppArmor policy rules, resulting in a bypass of intended access\n restrictions. (CVE-2021-4120)\n \n The Qualys Research Team discovered that snapd did not properly validate the\n location of the snap-confine binary. A local attacker could possibly use this\n issue to execute other arbitrary binaries and escalate privileges.\n (CVE-2021-44730)\n \n The Qualys Research Team discovered that a race condition existed in the snapd\n snap-confine binary when preparing a private mount namespace for a snap. A\n local attacker could possibly use this issue to escalate privileges and\n execute arbitrary code. (CVE-2021-44731)\n","status":"published","published":"2022-02-18T02:21:20Z","modified":"2026-06-29T13:49:35.695684972Z","updated_at":"2026-11-02T16:58:15.683829Z"}]}}
