SecurityContext

CVE-2021-4120: snapd - Insecure Deserialization

  • Cve: CVE-2021-4120
  • Name: snapd - Insecure Deserialization
  • 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
  • Impact: Malicious snaps can escape confinement by injecting arbitrary AppArmor rules, potentially leading to privilege escalation or system compromise.
  • Remediation: Update to snapd versions 2.54.3+18.04, 2.54.3+20.04, or 2.54.3+21.10.1.
  • Vulnerability type: insecure_deserialization
  • Vulnerability impact: privilege_escalation
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.8
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00437
  • Epss percentile: 0.38448
  • Assignee: [email protected]
  • Published at: 2022-02-17T23:15:07Z
  • Age in days: 1741
  • Modified at: 2026-06-17T04:19:04Z
  • Patch available: yes
  • Public exploits total: 2
  • References total: 5
  • Products total: 3
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-4120
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-20Improper Input Validation

Public exploits

UrlSourceAdded date
http://www.openwall.com/lists/oss-security/2022/02/18/2nvd2022-02-17
https://bugs.launchpad.net/snapd/+bug/1949368nvd2022-02-17

References

Same in every row:

  • Source: nvd
UrlTags
https://ubuntu.com/security/notices/USN-5292-1Patch, Vendor Advisory
http://www.openwall.com/lists/oss-security/2022/02/18/2Exploit, Mailing List, Third Party Advisory
https://bugs.launchpad.net/snapd/+bug/1949368Exploit, Issue Tracking, Third Party Advisory
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/

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
canonical:snapd<= 2.54.2/v1/products/canonical/snapd
fedoraproject:fedora= 35, = 34/v1/products/fedoraproject/fedora
canonical:ubuntu_linux= 21.10, = 20.04, = 18.04/v1/products/canonical/ubuntu_linux

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 2
  • Public exploit first date: 2022-02-17
  • Authentication required: yes
  • Exposed hosts: 21216412
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports