8.2
HIGH
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.

Remotely Exploitable :

No

Impact Score :

6.0

Exploitability Score :

1.5
Affected Products

The following products are affected by CVE-2024-1724 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 snapd
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
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.
CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability