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

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2022-02-17 · Modified: 2024-08-03
- Aliases: UBUNTU-CVE-2021-4120, DEBIAN-CVE-2021-4120
- Record: https://cvemate.com/vulnerability/CVE-2021-4120 · JSON: https://cvemate.com/vulnerability/CVE-2021-4120/json

## Description

```text
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
```

## Signals

- CVSS: 8.2 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
- EPSS: 0.437%, percentile 39.711%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 2 (reference)

## Affected

- canonical ltd. snapd: ≥ unspecified, ≤ 2.54.2
- canonical snapd: ≤ 2.54.2
- canonical ubuntu\_linux: 18.04 \| 20.04 \| 21.10
- debian snapd (Debian): \< 2.54.3-1
- ubuntu snapd (Ubuntu): \< 2.54.3+14.04~esm1 \| \< 2.54.3+16.04~esm2 \| \< 2.54.3+18.04 \| \< 2.54.3+20.04.1
- fedoraproject fedora: 34 \| 35

## References

- <https://ubuntu.com/security/notices/USN-5292-1>
- <https://bugs.launchpad.net/snapd/+bug/1949368>
- <http://www.openwall.com/lists/oss-security/2022/02/18/2>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3QTBN7LLZISXIA4KU4UKDR27Q5PXDS2U/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XCGHG6LJAVJJ72TMART6A7N4Z6MSTGI7/>
- <https://ubuntu.com/security/CVE-2021-4120>
- <https://www.openwall.com/lists/oss-security/2022/02/18/2>
- <https://github.com/snapcore/snapd/commit/f3f669d720ed8b0bcb73da7789843bf43b5c16cf>
- <https://www.cve.org/CVERecord?id=CVE-2021-4120>
- <https://ubuntu.com/security/notices/USN-5292-3>
- <https://ubuntu.com/security/notices/USN-5292-2>
- <https://security-tracker.debian.org/tracker/CVE-2021-4120>

---

Data as of 2026-12-05T02:36:55.441Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
