7.8
HIGH
CVE-2021-44731
Snapd Privilege Escalation Race Condition Vulnerability
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

INFO

Published Date :

Feb. 17, 2022, 11:15 p.m.

Last Modified :

Nov. 21, 2024, 6:31 a.m.

Remotely Exploitable :

No

Impact Score :

6.0

Exploitability Score :

1.1
Public PoC/Exploit Available at Github

CVE-2021-44731 has a 2 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

Affected Products

The following products are affected by CVE-2021-44731 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Canonical ubuntu_linux
2 Canonical snapd
1 Fedoraproject fedora
1 Debian debian_linux
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2021-44731.

URL Resource
http://packetstormsecurity.com/files/170176/snap-confine-must_mkdir_and_open_with_perms-Race-Condition.html Exploit Third Party Advisory VDB Entry
http://seclists.org/fulldisclosure/2022/Dec/4 Exploit Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/02/18/2 Mailing List Third Party Advisory
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/02/23/2 Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/30/2 Exploit Mailing List Third Party Advisory
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://ubuntu.com/security/notices/USN-5292-1 Patch Vendor Advisory
https://www.debian.org/security/2022/dsa-5080 Issue Tracking 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
http://seclists.org/fulldisclosure/2022/Dec/4 Exploit Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/02/18/2 Mailing List Third Party Advisory
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/02/23/2 Mailing List Third Party Advisory
http://www.openwall.com/lists/oss-security/2022/11/30/2 Exploit Mailing List Third Party Advisory
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://ubuntu.com/security/notices/USN-5292-1 Patch Vendor Advisory
https://www.debian.org/security/2022/dsa-5080 Issue Tracking Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Local Privilege Escalation Exploit for CVE-2021-44731

Shell

Updated: 10 months, 3 weeks ago
1 stars 2 fork 2 watcher
Born at : July 9, 2023, 10:06 a.m. This repo has been linked 1 different CVEs too.

工具书单

Perl Shell

Updated: 1 year, 10 months ago
0 stars 0 fork 0 watcher
Born at : Feb. 7, 2023, 6:29 a.m. This repo has been linked 20 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2021-44731 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2021-44731 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference http://packetstormsecurity.com/files/170176/snap-confine-must_mkdir_and_open_with_perms-Race-Condition.html
    Added Reference http://seclists.org/fulldisclosure/2022/Dec/4
    Added Reference http://www.openwall.com/lists/oss-security/2022/02/18/2
    Added Reference http://www.openwall.com/lists/oss-security/2022/02/23/1
    Added Reference http://www.openwall.com/lists/oss-security/2022/02/23/2
    Added Reference http://www.openwall.com/lists/oss-security/2022/11/30/2
    Added Reference https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3QTBN7LLZISXIA4KU4UKDR27Q5PXDS2U/
    Added Reference https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XCGHG6LJAVJJ72TMART6A7N4Z6MSTGI7/
    Added Reference https://ubuntu.com/security/notices/USN-5292-1
    Added Reference https://www.debian.org/security/2022/dsa-5080
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Nov. 07, 2023

    Action Type Old Value New Value
    Added Reference Canonical Ltd. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3QTBN7LLZISXIA4KU4UKDR27Q5PXDS2U/ [No types assigned]
    Added Reference Canonical Ltd. https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XCGHG6LJAVJJ72TMART6A7N4Z6MSTGI7/ [No types assigned]
    Removed Reference Canonical Ltd. https://lists.fedoraproject.org/archives/list/[email protected]/message/XCGHG6LJAVJJ72TMART6A7N4Z6MSTGI7/
    Removed Reference Canonical Ltd. https://lists.fedoraproject.org/archives/list/[email protected]/message/3QTBN7LLZISXIA4KU4UKDR27Q5PXDS2U/
  • Modified Analysis by [email protected]

    Feb. 03, 2023

    Action Type Old Value New Value
    Changed Reference Type http://packetstormsecurity.com/files/170176/snap-confine-must_mkdir_and_open_with_perms-Race-Condition.html No Types Assigned http://packetstormsecurity.com/files/170176/snap-confine-must_mkdir_and_open_with_perms-Race-Condition.html Exploit, Third Party Advisory, VDB Entry
    Changed Reference Type http://seclists.org/fulldisclosure/2022/Dec/4 No Types Assigned http://seclists.org/fulldisclosure/2022/Dec/4 Exploit, Mailing List, Third Party Advisory
  • CVE Modified by [email protected]

    Dec. 09, 2022

    Action Type Old Value New Value
    Added Reference http://packetstormsecurity.com/files/170176/snap-confine-must_mkdir_and_open_with_perms-Race-Condition.html [No Types Assigned]
  • CVE Modified by [email protected]

    Dec. 09, 2022

    Action Type Old Value New Value
    Added Reference http://seclists.org/fulldisclosure/2022/Dec/4 [No Types Assigned]
  • Modified Analysis by [email protected]

    Dec. 07, 2022

    Action Type Old Value New Value
    Changed Reference Type http://www.openwall.com/lists/oss-security/2022/02/23/1 Mailing List, Third Party Advisory http://www.openwall.com/lists/oss-security/2022/02/23/1 Exploit, Mailing List, Third Party Advisory
    Changed Reference Type http://www.openwall.com/lists/oss-security/2022/11/30/2 No Types Assigned http://www.openwall.com/lists/oss-security/2022/11/30/2 Exploit, Mailing List, Third Party Advisory
  • CVE Modified by [email protected]

    Dec. 01, 2022

    Action Type Old Value New Value
    Added Reference http://www.openwall.com/lists/oss-security/2022/11/30/2 [No Types Assigned]
  • Initial Analysis by [email protected]

    Mar. 01, 2022

    Action Type Old Value New Value
    Added CVSS V2 NIST (AV:L/AC:M/Au:N/C:C/I:C/A:C)
    Added CVSS V3.1 NIST AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H
    Changed Reference Type http://www.openwall.com/lists/oss-security/2022/02/18/2 No Types Assigned http://www.openwall.com/lists/oss-security/2022/02/18/2 Mailing List, Third Party Advisory
    Changed Reference Type http://www.openwall.com/lists/oss-security/2022/02/23/1 No Types Assigned http://www.openwall.com/lists/oss-security/2022/02/23/1 Mailing List, Third Party Advisory
    Changed Reference Type http://www.openwall.com/lists/oss-security/2022/02/23/2 No Types Assigned http://www.openwall.com/lists/oss-security/2022/02/23/2 Mailing List, Third Party Advisory
    Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/3QTBN7LLZISXIA4KU4UKDR27Q5PXDS2U/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/3QTBN7LLZISXIA4KU4UKDR27Q5PXDS2U/ Mailing List, Third Party Advisory
    Changed Reference Type https://lists.fedoraproject.org/archives/list/[email protected]/message/XCGHG6LJAVJJ72TMART6A7N4Z6MSTGI7/ No Types Assigned https://lists.fedoraproject.org/archives/list/[email protected]/message/XCGHG6LJAVJJ72TMART6A7N4Z6MSTGI7/ Mailing List, Third Party Advisory
    Changed Reference Type https://ubuntu.com/security/notices/USN-5292-1 No Types Assigned https://ubuntu.com/security/notices/USN-5292-1 Patch, Vendor Advisory
    Changed Reference Type https://www.debian.org/security/2022/dsa-5080 No Types Assigned https://www.debian.org/security/2022/dsa-5080 Issue Tracking, Third Party Advisory
    Added CWE NIST CWE-362
    Added CPE Configuration OR *cpe:2.3:a:canonical:snapd:*:*:*:*:*:*:*:* versions up to (including) 2.54.2
    Added CPE Configuration OR *cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:20.04:*:*:*:lts:*:*:* *cpe:2.3:o:canonical:ubuntu_linux:21.10:*:*:*:*:*:*:*
    Added CPE Configuration OR *cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:* *cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
    Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* *cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
  • CVE Modified by [email protected]

    Feb. 24, 2022

    Action Type Old Value New Value
    Added Reference http://www.openwall.com/lists/oss-security/2022/02/23/2 [No Types Assigned]
    Added Reference http://www.openwall.com/lists/oss-security/2022/02/23/1 [No Types Assigned]
  • CVE Modified by [email protected]

    Feb. 21, 2022

    Action Type Old Value New Value
    Added Reference https://www.debian.org/security/2022/dsa-5080 [No Types Assigned]
  • CVE Modified by [email protected]

    Feb. 20, 2022

    Action Type Old Value New Value
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/XCGHG6LJAVJJ72TMART6A7N4Z6MSTGI7/ [No Types Assigned]
    Added Reference https://lists.fedoraproject.org/archives/list/[email protected]/message/3QTBN7LLZISXIA4KU4UKDR27Q5PXDS2U/ [No Types Assigned]
  • CVE Modified by [email protected]

    Feb. 18, 2022

    Action Type Old Value New Value
    Added Reference http://www.openwall.com/lists/oss-security/2022/02/18/2 [No Types Assigned]
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2021-44731 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2021-44731 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.05 }} 0.00%

score

0.19628

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability