{"id":"CVE-2021-44731","published":"2022-02-17T00:00:00Z","modified":"2024-08-04T04:32:12Z","title":"snapd could be made to escalate privileges and run programs as administrator","vendor":"Canonical Ltd.","product":"snapd","tier":"tail","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","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00952,"percentile":0.62206,"provenance":"source"},"cwes":[{"id":"CWE-362","name":"Concurrent Execution using Shared Resource with Improper Synchronization"}],"references":[{"url":"https://ubuntu.com/security/notices/USN-5292-1","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2022/02/18/2","tags":["mailing-list"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3QTBN7LLZISXIA4KU4UKDR27Q5PXDS2U/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XCGHG6LJAVJJ72TMART6A7N4Z6MSTGI7/","tags":["vendor-advisory"]},{"url":"https://www.debian.org/security/2022/dsa-5080","tags":["vendor-advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2022/02/23/1","tags":["mailing-list"]},{"url":"http://www.openwall.com/lists/oss-security/2022/02/23/2","tags":["mailing-list"]},{"url":"http://www.openwall.com/lists/oss-security/2022/11/30/2","tags":["mailing-list"]},{"url":"http://seclists.org/fulldisclosure/2022/Dec/4","tags":["mailing-list"]},{"url":"http://packetstormsecurity.com/files/170176/snap-confine-must_mkdir_and_open_with_perms-Race-Condition.html","tags":[]}],"priority":{"score":22.9,"factors":[{"name":"EPSS percentile","points":12.44},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.46}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2023-07-09","earliestUrl":"https://github.com/deeexcee-io/CVE-2021-44731-snap-confine-SUID","repos":[{"name":"deeexcee-io/CVE-2021-44731-snap-confine-SUID","url":"https://github.com/deeexcee-io/CVE-2021-44731-snap-confine-SUID","stars":4,"created":"2023-07-09"}]},"first":{"date":"2023-07-09","source":"PoC-in-GitHub","url":"https://github.com/deeexcee-io/CVE-2021-44731-snap-confine-SUID"},"provenance":"source"},"vendorSlug":"canonical","affectedVersions":[{"vendor":"Canonical Ltd.","product":"snapd","versions":[">= unspecified, <= 2.54.2"]}],"euvd":{"id":"EUVD-2021-31546","exploited":false,"provenance":"source"},"exploitRefs":["http://packetstormsecurity.com/files/170176/snap-confine-must_mkdir_and_open_with_perms-Race-Condition.html"]}