VDB

CVE-2021-4120

CVE-2021-4120 PUBLISHED CVSS 8.2 HIGH

Reported by canonical · Published February 17, 2022

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

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
snapdcanonical2.54.2
snapdCanonical Ltd.2.54.2

Risk scores

CVSS 3.1
8.2
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H

Affected products

VendorProductVersions
Canonical Ltd.snapdunspecified
Canonical Ltd.snapd*

Timeline

  • Feb 17, 2022 CVE Published
  • Feb 18, 2022 EPSS Score (30 in total, the first dated here)
  • Aug 3, 2024 CVE Updated
  • Mar 10, 2026 Distribution Patch
  • Mar 10, 2026 Security Advisory (2 in total, the first dated here)
  • Jul 20, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-4120
vulnetix vdb fixes CVE-2021-4120

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-4120/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›