CVE-2021-3155 in Canonical Ubuntu Linux and 1 more product
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
Affects 2 products from 1 vendor. Facts below cite their sources.
Requires local access, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, no integrity impact, no availability impact.
Affected products and versions
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2021-3155 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-306627-M |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
| Published | 2022-02-17 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-276: Incorrect Default Permissions
Software sets overly permissive default access rights during installation or resource creation.
Related attack patterns (CAPEC)
CAPEC-81 Web Server Logs Tampering via CWE-276
CAPEC-127 Directory Indexing via CWE-276
CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs via CWE-276
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2021-3155 affects snapd versions 2.54.2 and earlier, where ~/snap directories are created without owner-only permissions, potentially allowing local attackers to access private information.
A local attacker can exploit this vulnerability by accessing the improperly permissioned ~/snap directories to read sensitive information that should be private to the user.
Questions
What is CVE-2021-3155?
CVE-2021-3155 affects snapd versions 2.54.2 and earlier, where ~/snap directories are created without owner-only permissions, potentially allowing local attackers to access private information.
What is the CVSS score for CVE-2021-3155?
CVE-2021-3155 has CVSS 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N. EPSS: 0.3%.
Is CVE-2021-3155 actively exploited?
No confirmed active exploitation of CVE-2021-3155 as of 2026-09-25.
How do I remediate CVE-2021-3155?
Priority: MEDIUM.
What systems are affected by CVE-2021-3155?
CVE-2021-3155 affects Canonical Ubuntu Linux, Snapd.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Canonical","product":"Ubuntu Linux","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.