CVE-2021-4120

snapd could be made to bypass intended access restrictions through snap content interfaces and layout paths

HIGH
7.8
CVSS Score
Published: February 17, 2022 at 10:15 PM UTC
Updated: June 17, 2026 at 04:19 AM UTC
3 products affected across 3 vendorsFedoraUbuntu 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
HIGH7.8
Exploit prediction
EPSS 0.4%

Description

snapd 2.54.2 fails to perform sufficient validation of snap content interface and layout paths, resulting in the ability for snaps to inject arbitrary AppArmor policy rules via malformed content interface and layout declarations and hence escape strict snap confinement. 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.

CVSS

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

Quick Info

StatusMODIFIED
CWE
CWE-20

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