{"api_version":"1","generated_at":"2026-04-23T06:18:59+00:00","cve":"CVE-2021-3155","urls":{"html":"https://cve.report/CVE-2021-3155","api":"https://cve.report/api/cve/CVE-2021-3155.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-3155","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-3155"},"summary":{"title":"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","state":"PUBLIC","assigner":"security@ubuntu.com","published_at":"2022-02-17 23:15:00","updated_at":"2022-02-25 21:32:00"},"problem_types":["CWE-276"],"metrics":[],"references":[{"url":"https://github.com/snapcore/snapd/commit/6bcaeeccd16ed8298a301dd92f6907f88c24cc85","name":"https://github.com/snapcore/snapd/commit/6bcaeeccd16ed8298a301dd92f6907f88c24cc85","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"Merge pull request #9897 from anonymouse64/bugfix/lp-1910298-part-1 · snapcore/snapd@6bcaeec · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://ubuntu.com/security/notices/USN-5292-1","name":"https://ubuntu.com/security/notices/USN-5292-1","refsource":"MISC","tags":["Patch","Vendor Advisory"],"title":"USN-5292-1: snapd vulnerabilities | Ubuntu security notices | Ubuntu","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/snapcore/snapd/commit/7d2a966620002149891446a53cf114804808dcca","name":"https://github.com/snapcore/snapd/commit/7d2a966620002149891446a53cf114804808dcca","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"Merge pull request #10992 from MiguelPires/fix-snap-perm · snapcore/snapd@7d2a966 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-3155","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3155","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[{"source":"LEGACY","value":"James Troup","lang":""}],"nvd_cpes":[{"cve_year":"2021","cve_id":"3155","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"canonical","cpe5":"snapd","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3155","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"18.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3155","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"20.04","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"lts","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"3155","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"canonical","cpe5":"ubuntu_linux","cpe6":"21.10","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-3155","qid":"182790","title":"Debian Security Update for snapd (CVE-2021-3155)"},{"cve":"CVE-2021-3155","qid":"198668","title":"Ubuntu Security Notification for snapd Vulnerabilities (USN-5292-1)"},{"cve":"CVE-2021-3155","qid":"198670","title":"Ubuntu Security Notification for snapd Vulnerabilities (USN-5292-2)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security@ubuntu.com","ID":"CVE-2021-3155","STATE":"PUBLIC","TITLE":"snapd created ~/snap with too-wide permissions"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"snapd","version":{"version_data":[{"version_affected":"<=","version_value":"2.54.2"}]}}]},"vendor_name":"Canonical Ltd."}]}},"credit":[{"lang":"eng","value":"James Troup"}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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"}]},"generator":{"engine":"Vulnogram 0.0.9"},"impact":{"cvss":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"NONE","baseScore":3.8,"baseSeverity":"LOW","confidentialityImpact":"LOW","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-276 Incorrect Default Permissions"}]}]},"references":{"reference_data":[{"refsource":"MISC","url":"https://ubuntu.com/security/notices/USN-5292-1","name":"https://ubuntu.com/security/notices/USN-5292-1"},{"refsource":"MISC","url":"https://github.com/snapcore/snapd/commit/6bcaeeccd16ed8298a301dd92f6907f88c24cc85","name":"https://github.com/snapcore/snapd/commit/6bcaeeccd16ed8298a301dd92f6907f88c24cc85"},{"refsource":"MISC","url":"https://github.com/snapcore/snapd/commit/7d2a966620002149891446a53cf114804808dcca","name":"https://github.com/snapcore/snapd/commit/7d2a966620002149891446a53cf114804808dcca"}]},"source":{"discovery":"USER"}},"nvd":{"publishedDate":"2022-02-17 23:15:00","lastModifiedDate":"2022-02-25 21:32:00","problem_types":["CWE-276"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":5.5,"baseSeverity":"MEDIUM"},"exploitabilityScore":1.8,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:L/AC:L/Au:N/C:P/I:N/A:N","accessVector":"LOCAL","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"NONE","availabilityImpact":"NONE","baseScore":2.1},"severity":"LOW","exploitabilityScore":3.9,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:canonical:snapd:*:*:*:*:*:*:*:*","versionEndExcluding":"2.54.3","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:*","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:canonical:ubuntu_linux:21.10:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"3155","Ordinal":"199967","Title":"CVE-2021-3155","CVE":"CVE-2021-3155","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"3155","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}