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

- Severity: High 7.8 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.95%, higher than 62% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 4 links below, marked "exploit"
- Published: 2022-02-17T00:00:00.000Z
- Modified: 2026-06-17T04:12:46.470Z
- Weaknesses: CWE-362
- Assigned by: canonical

## Description

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

(As written by CVE List.)

## Affected

- Canonical Ltd. snapd: from unspecified up to 2.54.2
- canonical snapd: up to 2.54.2
- canonical ubuntu_linux: 18.04; 20.04; 21.10
- fedoraproject fedora: 34; 35
- debian debian_linux: 10.0; 11.0

## Every score

- canonical: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.9 Medium `AV:L/AC:M/Au:N/C:C/I:C/A:C`

## References

- <http://www.openwall.com/lists/oss-security/2022/02/23/1> (exploit, mailing-list, third-party-advisory)
- <http://www.openwall.com/lists/oss-security/2022/11/30/2> (exploit, mailing-list, third-party-advisory)
- <http://seclists.org/fulldisclosure/2022/Dec/4> (exploit, mailing-list, third-party-advisory)
- <http://packetstormsecurity.com/files/170176/snap-confine-must_mkdir_and_open_with_perms-Race-Condition.html> (exploit, third-party-advisory, vdb-entry)
- <https://ubuntu.com/security/notices/USN-5292-1> (patch, vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2022/02/18/2> (mailing-list, third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3QTBN7LLZISXIA4KU4UKDR27Q5PXDS2U/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XCGHG6LJAVJJ72TMART6A7N4Z6MSTGI7/> (vendor-advisory)
- <https://www.debian.org/security/2022/dsa-5080> (issue-tracking, third-party-advisory, vendor-advisory)
- <http://www.openwall.com/lists/oss-security/2022/02/23/2> (mailing-list, third-party-advisory)

## Sources

- CVE List: [CVE-2021-44731](https://www.cve.org/CVERecord?id=CVE-2021-44731), CVE Terms of Use, modified 2024-08-04
- NVD: [CVE-2021-44731](https://nvd.nist.gov/vuln/detail/CVE-2021-44731), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-44731 · Whole record: https://cve.day/CVE-2021-44731.json · Rebuilt by cve.day 2026-11-25T22:24:36.710Z
