Vulnerability database / CVE-2021-4120
CVE-2021-4120
HIGH 7.8 CVSS 3.1 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
Published 17 Feb 2022
Last modified 17 Jun 2026 Assigned by security@ubuntu.com NVD status Modified Weakness
CWE-20 Sources
NVD JSON Scores
Source Scored by Version Score Vector / decision
NVD
security@ubuntu.com (Secondary)
CVSS 3.1
HIGH 8.2
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:HNVD
nvd@nist.gov (Primary)
CVSS 3.1
HIGH 7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD
nvd@nist.gov (Primary)
CVSS 2.0
MEDIUM 4.6
AV:L/AC:L/Au:N/C:P/I:P/A:P
Affected
Source Vendor / ecosystem Product / package Affected versions Fixed in
NVD
canonical
snapdcpe:2.3:a:canonical:snapd:*:*:*:*:*:*:*:*
<= 2.54.2
NVD
canonical
ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
= 18.04
NVD
canonical
ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:*
= 20.04
NVD
canonical
ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:21.10:*:*:*:*:*:*:*
= 21.10
NVD
fedoraproject
fedoracpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
= 34
NVD
fedoraproject
fedoracpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
= 35
References
History
25 Nov 2026 20:34 UTC · NVD: first stored (published 17 Feb 2022)