{"id":"CVE-2021-44731","aliases":["CVE-2021-44731"],"related":[],"kind":"vulnerability","state":"published","title":"snapd could be made to escalate privileges and run programs as administrator","summary":"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","summarySource":"cvelist","descriptions":[{"lang":"en","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","source":"cvelist"},{"lang":"es","text":"Se presentaba una condición de carrera en snapd versión 2.54.2 en el binario snap-confine cuando era preparado un espacio de nombres de montaje privado para un snap. Esto podía permitir a un atacante local alcanzar privilegios de root al montar su propio contenido dentro del espacio de nombres de montaje privado del snap y causar que snap-confine ejecutara código arbitrario y por lo tanto obtuviera una escalada de privilegios. Corregido en snapd versiones 2.54.3+18.04, 2.54.3+20.04 y 2.54.3+21.10.1","source":"nvd"}],"published":"2022-02-17T00:00:00.000Z","modified":"2026-06-17T04:12:46.470Z","severity":{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:M/Au:N/C:C/I:C/A:C","score":6.9,"rating":"MEDIUM"}],"cwes":["CWE-362"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"2.54.2","status":"affected"}],"vendor":"Canonical Ltd.","product":"snapd","source":"cvelist"},{"ranges":[{"status":"affected","lastAffected":"2.54.2"}],"vendor":"canonical","product":"snapd","cpe":"cpe:2.3:a:canonical:snapd:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"18.04"},{"status":"affected","version":"20.04"},{"status":"affected","version":"21.10"}],"vendor":"canonical","product":"ubuntu_linux","cpe":"cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"34"},{"status":"affected","version":"35"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"},{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://ubuntu.com/security/notices/USN-5292-1","tags":["patch","vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2022/02/18/2","tags":["mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3QTBN7LLZISXIA4KU4UKDR27Q5PXDS2U/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XCGHG6LJAVJJ72TMART6A7N4Z6MSTGI7/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://www.debian.org/security/2022/dsa-5080","tags":["issue-tracking","third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2022/02/23/1","tags":["exploit","mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2022/02/23/2","tags":["mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"http://www.openwall.com/lists/oss-security/2022/11/30/2","tags":["exploit","mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"http://seclists.org/fulldisclosure/2022/Dec/4","tags":["exploit","mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"http://packetstormsecurity.com/files/170176/snap-confine-must_mkdir_and_open_with_perms-Race-Condition.html","tags":["exploit","third-party-advisory","vdb-entry","x-transferred"],"sources":["cvelist","nvd"]}],"credits":["Qualys Research Team"],"assigner":"canonical","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-44731","url":"https://www.cve.org/CVERecord?id=CVE-2021-44731","licence":"CVE Terms of Use","modified":"2024-08-04T04:32:12.887Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-44731","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-44731","licence":"Public domain","modified":"2026-06-17T04:12:46.470Z"}],"updatedAt":"2026-11-25T22:24:36.710Z","epss":{"score":0.00952,"percentile":0.62335,"date":"2026-12-01T12:00:22.000Z"}}