8.2

CVE-2021-4120: snapd could be made to bypass intended access restrictions through snap content interfaces and layout paths

Modified
AliasesUBUNTU-CVE-2021-4120DEBIAN-CVE-2021-4120
Published 17-02-2022Last modified 03-08-2024

Vulnerability summary

CVE-2021-4120 is a high (CVSS 8.2) Improper Input Validation vulnerability in canonical ltd. snapd. EPSS estimates a 0.44% chance of exploitation in the next 30 days, higher than 39.7% of scored vulnerabilities. 2 public exploits are recorded.

Priority
Prioritisepublic exploit

Public exploit (reference, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
8.2/10
010
High · v3.1 (CVE.org)
EPSS score
0.44%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits2reference

Advisory lineage

Upstream 0 · Downstream 3 · Related 3

Timeline

  1. 17-02-2022
    PublishedVulnerability first disclosed.
  2. 03-08-2024
    Last modifiedVulnerability information updated.

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

CVSS metrics

5 scores · 4 sources · 2 versions

EPSS trend

Probability

0.44%

Chance of exploitation in the next 30 days

Percentile

40%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.44% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

2 found
  • referenceUnverified

    Exploit Reference (bugs.launchpad.net)

    Maturity: unknown

  • referenceUnverified

    Exploit Reference (openwall.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.

Canonical2 products
Canonical ltd.1 product
  • snapd≥ unspecified, ≤ 2.54.2
Debian1 product
  • snapd< 2.54.3-1
Fedoraproject1 product
Ubuntu1 product
  • snapd< 2.54.3+14.04~esm1 | < 2.54.3+16.04~esm2 | < 2.54.3+18.04 | < 2.54.3+20.04.1

5 vendors · 6 products

References

12 links
Show all 12 references