CVE-2021-44731snapd could be made to escalate privileges and run programs as administrator
- 7.8HighCVSS base score
- 0.95%Exploitation in 30 daysEPSS · top 38% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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
Timeline
ID reserved
By canonical
- 2 months later
· 2 months later
Published
- 2 years later
· 2 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| canonicalCNA (assigner) | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVDNVD · Modified | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.95% · top 38% of all CVEs (16 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.8.
Affected products
- affected unspecified – ≤ 2.54.2
References
References10
- https://ubuntu.com/security/notices/USN-5292-1 (opens in a new tab)x_transferred
- [oss-security] 20220218 CVE-2021-4120: Insufficient validation of snap content interface and layout paths (opens in a new tab)mailing-listx_transferred
- FEDORA-2022-82bea71e5a (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2022-5df8b52ba4 (opens in a new tab)vendor-advisoryx_transferred
- DSA-5080 (opens in a new tab)vendor-advisoryx_transferred
- [oss-security] 20220223 Re: CVE-2021-44731: Race condition in snap-confine's setup_private_mount() (opens in a new tab)mailing-listx_transferred
- [oss-security] 20220223 Re: CVE-2021-44731: Race condition in snap-confine's setup_private_mount() (opens in a new tab)mailing-listx_transferred
- [oss-security] 20221130 Race condition in snap-confine's must_mkdir_and_open_with_perms() (CVE-2022-3328) (opens in a new tab)mailing-listx_transferred
- 20221208 Race condition in snap-confine's must_mkdir_and_open_with_perms() (CVE-2022-3328) (opens in a new tab)mailing-listx_transferred
- http://packetstormsecurity.com/files/170176/snap-confine-must_mkdir_and_open_with_perms-Race-Condition.html (opens in a new tab)x_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-31546 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-44731)Record last updated .