cve.bz

CVE-2021-3155 canonical: Incorrect Default Permissions

5.5 mediumEPSS 0.3%Fix available

Medium (5.5) in canonical. EPSS 0.3% estimated probability of exploitation activity in the next 30 days.

On this page
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

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
0.3% (unchanged from 0.3% a week ago; 0.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 18th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-276 Incorrect Default Permissions
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-3155 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3155?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3155?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-3155 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Canonical Ltd. snapdthrough 2.54.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14snapd2.54-1DEBIAN-CVE-2021-3155
Ubuntu18.04:LTSsnapd2.54.3+18.04UBUNTU-CVE-2021-3155 USN-5292-1
Ubuntu20.04:LTSsnapd2.54.3+20.04.1UBUNTU-CVE-2021-3155 USN-5292-1 USN-5292-2
UbuntuPro:14.04:LTSsnapd2.54.3+14.04~esm1USN-5292-3
UbuntuPro:16.04:LTSsnapd2.54.3+16.04~esm2UBUNTU-CVE-2021-3155 USN-5292-3

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Attack patterns (CAPEC)

  • CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs Likelihood: High · Severity: High
  • CAPEC-81 Web Server Logs Tampering Likelihood: Medium · Severity: High
  • CAPEC-127 Directory Indexing Likelihood: High · Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON