{"schemaVersion":3,"id":"CVE-2021-3155","aliases":["UBUNTU-CVE-2021-3155","DEBIAN-CVE-2021-3155"],"status":"published","duplicateOf":null,"title":null,"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","dates":{"published":"2022-02-17T22:15:16.000Z","modified":"2024-08-03T16:45:51.372Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":3.8,"severity":"low","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":3.8,"severity":"low","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","exploitability":5.1,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":4.6,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.5,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":2.1,"severity":"low","vector":"AV:L/AC:L/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0026,"percentile":0.16571,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.0026},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0026,"percentile":0.16571}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0026,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0026,"percentile":0.16571}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-276","name":"Incorrect Default Permissions","description":"During installation, installed file permissions are set to allow anyone to modify those files.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/276.html"}],"affected":[{"vendor":"canonical ltd.","product":"snapd","name":"snapd","label":"snapd","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ unspecified, ≤ 2.54.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ unspecified, ≤ 2.54.2","eol":null,"hubHref":"/vendor/canonical_ltd/snapd"},{"vendor":"canonical","product":"snapd","name":"snapd","label":"snapd","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.54.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.54.3","eol":null,"hubHref":"/vendor/canonical/snapd"},{"vendor":"canonical","product":"ubuntu_linux","name":"ubuntu linux","label":"ubuntu_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"18.04","noFixRecorded":false,"fixedIn":null},{"text":"20.04","noFixRecorded":false,"fixedIn":null},{"text":"21.10","noFixRecorded":false,"fixedIn":null}],"versionsText":"18.04 | 20.04 | 21.10","eol":{"isEol":true,"eolDate":"2023-05-31T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"18.04","label":"18.04 'Bionic Beaver' (LTS)","eolFrom":"2023-05-31T00:00:00.000Z","isLts":true,"isMaintained":true,"latestVersion":"18.04.6"},"product":{"name":"ubuntu","label":"Ubuntu","category":"os"}},"hubHref":"/vendor/canonical/ubuntu_linux"},{"vendor":"debian","product":"snapd","name":"snapd","label":"snapd","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/snapd","purlType":"deb","versions":[{"text":"< 2.54-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.54-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"snapd","name":"snapd","label":"snapd","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/snapd","purlType":"deb","versions":[{"text":"< 2.54.3+16.04~esm2","noFixRecorded":false,"fixedIn":null},{"text":"< 2.54.3+18.04","noFixRecorded":false,"fixedIn":null},{"text":"< 2.54.3+20.04.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.54.3+16.04~esm2 | < 2.54.3+18.04 | < 2.54.3+20.04.1","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://ubuntu.com/security/notices/USN-5292-1","label":"ubuntu.com/security/notices/USN-5292-1","hostname":"ubuntu.com","tags":["X Refsource MISC","Advisory","Patch","Vendor Advisory"]},{"url":"https://github.com/snapcore/snapd/commit/6bcaeeccd16ed8298a301dd92f6907f88c24cc85","label":"github.com/snapcore/snapd/commit/6bcaeeccd16ed8298a301dd92f6907f88c24cc85","hostname":"github.com","tags":["X Refsource MISC","Patch","Third Party Advisory"]},{"url":"https://github.com/snapcore/snapd/commit/7d2a966620002149891446a53cf114804808dcca","label":"github.com/snapcore/snapd/commit/7d2a966620002149891446a53cf114804808dcca","hostname":"github.com","tags":["X Refsource MISC","Patch","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-3155","label":"ubuntu.com/security/CVE-2021-3155","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3155","label":"www.cve.org/CVERecord?id=CVE-2021-3155","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-5292-3","label":"ubuntu.com/security/notices/USN-5292-3","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-5292-2","label":"ubuntu.com/security/notices/USN-5292-2","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-3155","label":"security-tracker.debian.org/tracker/CVE-2021-3155","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["USN-5292-1","USN-5292-2","USN-5292-3"],"duplicates":[],"related":["USN-5292-1","USN-5292-2","USN-5292-3"]},"timeline":[{"kind":"published","date":"2022-02-17T22:15:16.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T16:45:51.372Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":22,"level":"low","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T06:18:30.393Z","stale":false,"partial":false}}