{"id":"CVE-2021-3155","state":"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","publishedAt":"2022-02-17T22:15:16.000Z","updatedAt":"2024-08-03T16:45:51.372Z","severity":{"score":3.8,"label":"Low","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","source":"canonical"},"assigner":"canonical","products":["Canonical Ltd. snapd"],"affected":[{"vendor":"Canonical Ltd.","product":"snapd","versions":[{"version":"unspecified","status":"affected","lessThanOrEqual":"2.54.2","versionType":"custom"}]}],"references":["https://ubuntu.com/security/notices/USN-5292-1","https://github.com/snapcore/snapd/commit/6bcaeeccd16ed8298a301dd92f6907f88c24cc85","https://github.com/snapcore/snapd/commit/7d2a966620002149891446a53cf114804808dcca"],"weaknesses":["CWE-276"],"ingestedAt":"2026-10-29T19:48:55.807Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/3xxx/CVE-2021-3155.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-3155","state":"PUBLISHED","datePublished":"2022-02-17T22:15:16.000Z","dateUpdated":"2024-08-03T16:45:51.372Z","assignerShortName":"canonical","assignerOrgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc","dateReserved":"2021-01-15T00:00:00.000Z"},"containers":{"cna":{"title":"snapd created ~/snap with too-wide permissions","descriptions":[{"lang":"en","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"}],"affected":[{"vendor":"Canonical Ltd.","product":"snapd","versions":[{"version":"unspecified","status":"affected","lessThanOrEqual":"2.54.2","versionType":"custom"}]}],"references":[{"url":"https://ubuntu.com/security/notices/USN-5292-1","tags":["x_refsource_MISC"]},{"url":"https://github.com/snapcore/snapd/commit/6bcaeeccd16ed8298a301dd92f6907f88c24cc85","tags":["x_refsource_MISC"]},{"url":"https://github.com/snapcore/snapd/commit/7d2a966620002149891446a53cf114804808dcca","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"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"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-276","description":"CWE-276 Incorrect Default Permissions","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"canonical","dateUpdated":"2022-02-17T22:15:16.000Z","orgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc"},"credits":[{"lang":"en","value":"James Troup"}],"source":{"discovery":"USER"},"x_generator":{"engine":"Vulnogram 0.0.9"},"x_legacyV4Record":{"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":[{"name":"https://ubuntu.com/security/notices/USN-5292-1","refsource":"MISC","url":"https://ubuntu.com/security/notices/USN-5292-1"},{"name":"https://github.com/snapcore/snapd/commit/6bcaeeccd16ed8298a301dd92f6907f88c24cc85","refsource":"MISC","url":"https://github.com/snapcore/snapd/commit/6bcaeeccd16ed8298a301dd92f6907f88c24cc85"},{"name":"https://github.com/snapcore/snapd/commit/7d2a966620002149891446a53cf114804808dcca","refsource":"MISC","url":"https://github.com/snapcore/snapd/commit/7d2a966620002149891446a53cf114804808dcca"}]},"source":{"discovery":"USER"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://ubuntu.com/security/notices/USN-5292-1","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/snapcore/snapd/commit/6bcaeeccd16ed8298a301dd92f6907f88c24cc85","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/snapcore/snapd/commit/7d2a966620002149891446a53cf114804808dcca","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T16:45:51.372Z"}}]}}}