# CVE-2021-44731: snapd could be made to escalate privileges and run programs as administrator

- 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-04
- Aliases: UBUNTU-CVE-2021-44731, DEBIAN-CVE-2021-44731
- Record: https://cvemate.com/vulnerability/CVE-2021-44731 · JSON: https://cvemate.com/vulnerability/CVE-2021-44731/json

## Description

```text
A race condition existed in the snapd 2.54.2 snap-confine binary when preparing a private mount namespace for a snap. This could allow a local attacker to gain root privileges by bind-mounting their own contents inside the snap's private mount namespace and causing snap-confine to execute arbitrary code 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
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
- EPSS: 0.952%, percentile 62.51%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 4 (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
- debian debian\_linux: 10.0 \| 11.0
- fedoraproject fedora: 34 \| 35

## References

- <https://ubuntu.com/security/notices/USN-5292-1>
- <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://www.debian.org/security/2022/dsa-5080>
- <http://www.openwall.com/lists/oss-security/2022/02/23/1>
- <http://www.openwall.com/lists/oss-security/2022/02/23/2>
- <http://www.openwall.com/lists/oss-security/2022/11/30/2>
- <http://seclists.org/fulldisclosure/2022/Dec/4>
- <http://packetstormsecurity.com/files/170176/snap-confine-must_mkdir_and_open_with_perms-Race-Condition.html>
- <https://ubuntu.com/security/CVE-2021-44731>
- <https://www.openwall.com/lists/oss-security/2022/02/17/2>
- <https://github.com/snapcore/snapd/commit/f3f669d720ed8b0bcb73da7789843bf43b5c16cf>
- <https://www.cve.org/CVERecord?id=CVE-2021-44731>
- <https://ubuntu.com/security/notices/USN-5292-3>
- <https://ubuntu.com/security/notices/USN-5292-2>
- <https://security-tracker.debian.org/tracker/CVE-2021-44731>

---

Data as of 2026-12-05T02:36:47.008Z. 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
