CVE-2021-4120

Summary

CVECVE-2021-4120
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2022-02-17 23:15:00 UTC
Updated2023-11-07 03:40:00 UTC
Descriptionsnapd 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

Risk And Classification

Problem Types: CWE-20

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Canonical Snapd All All All All
Operating System Canonical Ubuntu Linux 18.04 All All All
Operating System Canonical Ubuntu Linux 20.04 All All All
Operating System Canonical Ubuntu Linux 21.10 All All All
Operating System Fedoraproject Fedora 34 All All All
Operating System Fedoraproject Fedora 35 All All All

References

ReferenceSourceLinkTags
[SECURITY] Fedora 35 Update: snapd-2.54.3-1.fc35 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
Bug #1949368 “snapd fails to validate content interface settings...” : Bugs : snapd MISC bugs.launchpad.net
[SECURITY] Fedora 34 Update: snapd-2.54.3-1.fc34 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
USN-5292-1: snapd vulnerabilities | Ubuntu security notices | Ubuntu MISC ubuntu.com
[SECURITY] Fedora 34 Update: snapd-2.54.3-1.fc34 - package-announce - Fedora Mailing-Lists lists.fedoraproject.org
oss-security - CVE-2021-4120: Insufficient validation of snap content interface and layout paths MLIST www.openwall.com
[SECURITY] Fedora 35 Update: snapd-2.54.3-1.fc35 - package-announce - Fedora Mailing-Lists FEDORA lists.fedoraproject.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

LEGACY: Ian Johnson

Legacy QID Mappings

  • 180453 Debian Security Update for snapd (CVE-2021-4120)
  • 198668 Ubuntu Security Notification for snapd Vulnerabilities (USN-5292-1)
  • 198670 Ubuntu Security Notification for snapd Vulnerabilities (USN-5292-2)
  • 282412 Fedora Security Update for snapd (FEDORA-2022-5df8b52ba4)
  • 282413 Fedora Security Update for snapd (FEDORA-2022-82bea71e5a)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report