
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2021-4120 is a security vulnerability discovered in snapd that was disclosed and fixed in February 2022. The vulnerability affects snapd versions prior to 2.54.3 and stems from insufficient validation of snap content interface and layout paths. This vulnerability was independently discovered by Ian Johnson from the snapd team (OSS Security).
The vulnerability occurs when snapd fails to perform sufficient validation of snap content interface and layout paths, which allows snaps to inject arbitrary AppArmor policy rules via malformed content interface and layout declarations. The vulnerability has a CVSS v3.1 score of 8.2 (AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H), indicating high severity. The issue specifically involves snapd's inadequate validation of input strings used in content interface plugs/slots, allowing installation of snaps with strict confinement but malformed content interface slots (OSS Security, Launchpad Bug).
The vulnerability enables local attackers to bypass intended access restrictions by injecting arbitrary AppArmor policy rules. This could result in a complete escape from strict snap confinement, potentially allowing attackers to gain elevated privileges and access to restricted system resources (Ubuntu Security).
The vulnerability was fixed in snapd version 2.54.3. Users should update to snapd versions 2.54.3+18.04, 2.54.3+20.04, or 2.54.3+21.10.1 depending on their Ubuntu version. For Fedora users, the fix is available in snapd-2.54.3-1 for both Fedora 34 and 35. A standard system update will make all the necessary changes (Ubuntu Security, Fedora Update).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."