Vulnerability Name:

CVE-2021-4120 (CCN-219982)

Assigned:2021-12-14
Published:2022-02-17
Updated:2022-03-01
Summary: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
CVSS v3 Severity:7.8 High (CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H)
6.8 Medium (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
8.2 High (CCN CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H)
7.1 High (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Local
Attack Complexity (AC): Low
Privileges Required (PR): Low
User Interaction (UI): Required
Scope:Scope (S): Changed
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
CVSS v2 Severity:4.6 Medium (CVSS v2 Vector: AV:L/AC:L/Au:N/C:P/I:P/A:P)
Exploitability Metrics:Access Vector (AV): Local
Access Complexity (AC): Low
Authentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): Partial
6.8 Medium (CCN CVSS v2 Vector: AV:L/AC:L/Au:S/C:C/I:C/A:C)
Exploitability Metrics:Access Vector (AV): Local
Access Complexity (AC): Low
Athentication (Au): Single_Instance
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
Vulnerability Type:CWE-20
Vulnerability Consequences:Bypass Security
References:Source: MITRE
Type: CNA
CVE-2021-4120

Source: MLIST
Type: Exploit, Mailing List, Third Party Advisory
[oss-security] 20220218 CVE-2021-4120: Insufficient validation of snap content interface and layout paths

Source: MISC
Type: Exploit, Issue Tracking, Third Party Advisory
https://bugs.launchpad.net/snapd/+bug/1949368

Source: XF
Type: UNKNOWN
snapcore-cve20214120-sec-bypass(219982)

Source: CCN
Type: snapd GIT Repository
New security update release 2.54.3

Source: FEDORA
Type: Mailing List, Third Party Advisory
FEDORA-2022-82bea71e5a

Source: FEDORA
Type: Mailing List, Third Party Advisory
FEDORA-2022-5df8b52ba4

Source: CCN
Type: oss-sec Mailing List, Fri, 18 Feb 2022 12:22:57 +1030
CVE-2021-4120: Insufficient validation of snap content interface and layout paths

Source: MISC
Type: Patch, Vendor Advisory
https://ubuntu.com/security/notices/USN-5292-1

Vulnerable Configuration:Configuration 1:
  • cpe:/a:canonical:snapd:*:*:*:*:*:*:*:* (Version <= 2.54.2)

  • Configuration 2:
  • cpe:/o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*
  • OR cpe:/o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:*
  • OR cpe:/o:canonical:ubuntu_linux:21.10:*:*:*:*:*:*:*

  • Configuration 3:
  • cpe:/o:fedoraproject:fedora:34:*:*:*:*:*:*:*
  • OR cpe:/o:fedoraproject:fedora:35:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    BACK
    canonical snapd *
    canonical ubuntu linux 18.04
    canonical ubuntu linux 20.04
    canonical ubuntu linux 21.10
    fedoraproject fedora 34
    fedoraproject fedora 35