CVE-2021-3155

snapd created ~/snap with too-wide permissions

MEDIUM
5.5
CVSS Score
Published: February 17, 2022 at 10:15 PM UTC
Updated: June 17, 2026 at 04:04 AM UTC
2 products affected across 2 vendorsUbuntu LinuxSnapd

Using snapd by Canonical Ltd.?

Get instant alerts when new vulnerabilities affect snapd - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%

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

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≤ 2.54.2v < 2.54.3
Affected range stops below 2.54.3, so it looks safe — our inference, not a vendor statement

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-276

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card