CVE-2021-44730
published high CVSS 3.1 · 7.8snapd could be made to escalate privileges and run programs as administrator
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 |
| Debian | bullseye | snapd | Advisory build | 2.49-1+deb11u1 | DSA-5080-1 |
| Ubuntu | bionic | snapd | Advisory build | 2.54.3+18.04 | USN-5292-1 |
| Debian | buster | snapd | Advisory build | 2.37.4-1+deb10u1 | DSA-5080-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 |
Show 31 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| 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 |
| 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 did not properly validate the location of the snap-confine binary. A local attacker who can hardlink this binary to another location to cause snap-confine to execute other arbitrary binaries and hence gain privilege escalation. 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
- 7.8 / 10
- Severity
- high
- Provider
- canonical · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/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-59 CWE-59 Improper Link Resolution Before File Access ('Link Following')
References
6- [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
- [oss-security] 20220223 Re: CVE-2021-44731: Race condition in snap-confine's setup_private_mount() http://www.openwall.com/lists/oss-security/2022/02/23/1
- 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
- DSA-5080 https://www.debian.org/security/2022/dsa-5080
Provider assertions
2canonical · cna
snapd could be made to escalate privileges and run programs as administrator
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- d90905e522b471a06626929eb6a27cbe08fbed864839672e790eba3d5ba688c8
- Ingested
- 23 Sep 2026, 07:56:43 UTC
- Source record
- Official CVE record