8.2

CVE-2021-4120: canonical ltd. snapd Improper Input Validation

CVSS: 8.2v3.1HighModified
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 36.5% of scored vulnerabilities. 2 public exploits are recorded.

Overall risk
43/100
0100
Medium · default modelHow is this calculated?
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 listedIn no KEV catalog
RansomwareNone recordedNo known 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

37%

Versus all other CVEs

30-day change

0.00 pp

From 0.44% on 18-09-2026

18-09-202618-10-2026
EPSS score
0.44%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

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

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