CVE-2021-4120
published high CVSS 3.1 · 8.2snapd could be made to bypass intended access restrictions through snap content interfaces and layout paths
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Canonical Ltd. | — | snapdunspecified through 2.54.2 | Affected | Not stated | canonical |
| Ubuntu | bionic | snapd | Advisory build | 2.54.3+18.04 | USN-5292-1 |
| Ubuntu | esm | snapd | Advisory build | 2.54.3+14.04~esm1 | USN-5292-3 |
| Ubuntu | focal | snapd | Advisory build | 2.54.3+20.04.1 | USN-5292-2 |
| Ubuntu | xenial | snapd | Advisory build | 2.54.3+16.04~esm2 | USN-5292-3 |
| Ubuntu | bionic | golang-github-snapcore-snapd-dev | Advisory build | 2.54.3+18.04 | USN-5292-1 |
| Ubuntu | bionic | golang-github-ubuntu-core-snappy-dev | Advisory build | 2.54.3+18.04 | USN-5292-1 |
| Ubuntu | bionic | snap-confine | Advisory build | 2.54.3+18.04 | USN-5292-1 |
Show 29 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | bionic | snapd-xdg-open | Advisory build | 2.54.3+18.04 | USN-5292-1 |
| Ubuntu | bionic | ubuntu-core-launcher | Advisory build | 2.54.3+18.04 | USN-5292-1 |
| Ubuntu | bionic | ubuntu-core-snapd-units | Advisory build | 2.54.3+18.04 | USN-5292-1 |
| Ubuntu | bionic | ubuntu-snappy | Advisory build | 2.54.3+18.04 | USN-5292-1 |
| Ubuntu | bionic | ubuntu-snappy-cli | Advisory build | 2.54.3+18.04 | USN-5292-1 |
| Ubuntu | esm | golang-github-snapcore-snapd-dev | Advisory build | 2.54.3+14.04~esm1 | USN-5292-3 |
| Ubuntu | esm | golang-github-ubuntu-core-snappy-dev | Advisory build | 2.54.3+14.04~esm1 | USN-5292-3 |
| Ubuntu | esm | snap-confine | Advisory build | 2.54.3+14.04~esm1 | USN-5292-3 |
| Ubuntu | esm | snapd-xdg-open | Advisory build | 2.54.3+14.04~esm1 | USN-5292-3 |
| Ubuntu | esm | ubuntu-core-launcher | Advisory build | 2.54.3+14.04~esm1 | USN-5292-3 |
| Ubuntu | esm | ubuntu-core-snapd-units | Advisory build | 2.54.3+14.04~esm1 | USN-5292-3 |
| Ubuntu | esm | ubuntu-snappy | Advisory build | 2.54.3+14.04~esm1 | USN-5292-3 |
| Ubuntu | esm | ubuntu-snappy-cli | Advisory build | 2.54.3+14.04~esm1 | USN-5292-3 |
| Ubuntu | focal | golang-github-snapcore-snapd-dev | Advisory build | 2.54.3+20.04.1 | USN-5292-2 |
| Ubuntu | focal | golang-github-ubuntu-core-snappy-dev | Advisory build | 2.54.3+20.04.1 | USN-5292-2 |
| Ubuntu | focal | snap-confine | Advisory build | 2.54.3+20.04.1 | USN-5292-2 |
| Ubuntu | focal | snapd-xdg-open | Advisory build | 2.54.3+20.04.1 | USN-5292-2 |
| Ubuntu | focal | ubuntu-core-launcher | Advisory build | 2.54.3+20.04.1 | USN-5292-2 |
| Ubuntu | focal | ubuntu-core-snapd-units | Advisory build | 2.54.3+20.04.1 | USN-5292-2 |
| Ubuntu | focal | ubuntu-snappy | Advisory build | 2.54.3+20.04.1 | USN-5292-2 |
| Ubuntu | focal | ubuntu-snappy-cli | Advisory build | 2.54.3+20.04.1 | USN-5292-2 |
| Ubuntu | xenial | golang-github-snapcore-snapd-dev | Advisory build | 2.54.3+16.04~esm2 | USN-5292-3 |
| Ubuntu | xenial | golang-github-ubuntu-core-snappy-dev | Advisory build | 2.54.3+16.04~esm2 | USN-5292-3 |
| Ubuntu | xenial | snap-confine | Advisory build | 2.54.3+16.04~esm2 | USN-5292-3 |
| Ubuntu | xenial | snapd-xdg-open | Advisory build | 2.54.3+16.04~esm2 | USN-5292-3 |
| Ubuntu | xenial | ubuntu-core-launcher | Advisory build | 2.54.3+16.04~esm2 | USN-5292-3 |
| Ubuntu | xenial | ubuntu-core-snapd-units | Advisory build | 2.54.3+16.04~esm2 | USN-5292-3 |
| Ubuntu | xenial | ubuntu-snappy | Advisory build | 2.54.3+16.04~esm2 | USN-5292-3 |
| Ubuntu | xenial | ubuntu-snappy-cli | Advisory build | 2.54.3+16.04~esm2 | USN-5292-3 |
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
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.2 / 10
- Severity
- high
- Provider
- canonical · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Canonical Ltd. | snapd | unspecified through 2.54.2 (affected · custom) | canonical · cna |
Weaknesses
1- CWE-20 CWE-20 Improper Input Validation
References
5- [oss-security] 20220218 CVE-2021-4120: Insufficient validation of snap content interface and layout paths http://www.openwall.com/lists/oss-security/2022/02/18/2
- https://bugs.launchpad.net/snapd/+bug/1949368
- FEDORA-2022-82bea71e5a https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3QTBN7LLZISXIA4KU4UKDR27Q5PXDS2U/
- FEDORA-2022-5df8b52ba4 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XCGHG6LJAVJJ72TMART6A7N4Z6MSTGI7/
- https://ubuntu.com/security/notices/USN-5292-1
Provider assertions
2canonical · cna
snapd could be made to bypass intended access restrictions through snap content interfaces and layout paths
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 68bce5e922ecbd060850e1fc0f52377b1eb9e49b1f1ca2182ba99f0f232acef3
- Ingested
- 23 Sep 2026, 07:57:18 UTC
- Source record
- Official CVE record