CVE-2024-1724
Snapd AppArmor Path Traversal Vulnerability
Description
In snapd versions prior to 2.62, when using AppArmor for enforcement of sandbox permissions, snapd failed to restrict writes to the $HOME/bin path. In Ubuntu, when this path exists, it is automatically added to the users PATH. An attacker who could convince a user to install a malicious snap which used the 'home' plug could use this vulnerability to install arbitrary scripts into the users PATH which may then be run by the user outside of the expected snap sandbox and hence allow them to escape confinement.
INFO
Published Date :
July 25, 2024, 7:15 p.m.
Last Modified :
Aug. 26, 2024, 4:44 p.m.
Source :
[email protected]
Remotely Exploitable :
No
Impact Score :
6.0
Exploitability Score :
1.5
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-2024-1724
.
URL | Resource |
---|---|
https://github.com/snapcore/snapd/commit/aa191f97713de8dc3ce3ac818539f0b976eb8ef6 | Patch |
https://github.com/snapcore/snapd/pull/13689 | Issue Tracking Patch |
https://gld.mcphail.uk/posts/explaining-cve-2024-1724/ | Exploit Technical Description 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).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-1724
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-1724
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.
-
Initial Analysis by [email protected]
Aug. 26, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H Changed Reference Type https://github.com/snapcore/snapd/commit/aa191f97713de8dc3ce3ac818539f0b976eb8ef6 No Types Assigned https://github.com/snapcore/snapd/commit/aa191f97713de8dc3ce3ac818539f0b976eb8ef6 Patch Changed Reference Type https://github.com/snapcore/snapd/pull/13689 No Types Assigned https://github.com/snapcore/snapd/pull/13689 Issue Tracking, Patch Changed Reference Type https://gld.mcphail.uk/posts/explaining-cve-2024-1724/ No Types Assigned https://gld.mcphail.uk/posts/explaining-cve-2024-1724/ Exploit, Technical Description, Third Party Advisory Added CWE NIST CWE-732 Added CPE Configuration OR *cpe:2.3:a:canonical:snapd:*:*:*:*:*:*:*:* versions up to (excluding) 2.62 -
CVE Modified by [email protected]
Jul. 25, 2024
Action Type Old Value New Value Added CVSS V3.1 Canonical Ltd. AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L -
CVE Received by [email protected]
Jul. 25, 2024
Action Type Old Value New Value Added Description In snapd versions prior to 2.62, when using AppArmor for enforcement of sandbox permissions, snapd failed to restrict writes to the $HOME/bin path. In Ubuntu, when this path exists, it is automatically added to the users PATH. An attacker who could convince a user to install a malicious snap which used the 'home' plug could use this vulnerability to install arbitrary scripts into the users PATH which may then be run by the user outside of the expected snap sandbox and hence allow them to escape confinement. Added Reference Canonical Ltd. https://github.com/snapcore/snapd/commit/aa191f97713de8dc3ce3ac818539f0b976eb8ef6 [No types assigned] Added Reference Canonical Ltd. https://gld.mcphail.uk/posts/explaining-cve-2024-1724/ [No types assigned] Added Reference Canonical Ltd. https://github.com/snapcore/snapd/pull/13689 [No types assigned] Added CWE Canonical Ltd. CWE-732
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-1724
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-2024-1724
weaknesses.