CVE-2024-1724: snapd - Sandbox Escape
- Cve: CVE-2024-1724
- Name: snapd - Sandbox Escape
- 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.
- Impact: Attackers can install malicious scripts into user PATH, potentially leading to privilege escalation or arbitrary code execution outside sandbox.
- Remediation: Update snapd to version 2.62 or later.
- Vulnerability type: sandbox_escape
- Vulnerability impact: privilege_escalation
- Requirement type: user_interaction
- Requirements: Attacker needs user to install malicious snap
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.2
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
- Epss score: 0.00306
- Epss percentile: 0.23723
- Assignee: [email protected]
- Published at: 2024-07-25T19:15:09Z
- Age in days: 852
- Modified at: 2026-06-17T07:04:52Z
- Patch available: yes
- Public exploits total: 1
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 2
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-1724
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-732 | Incorrect Permission Assignment for Critical Resource |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://gld.mcphail.uk/posts/explaining-cve-2024-1724/ | nvd | 2024-07-25 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| 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 |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| canonical:snapd | < 2.62 | no | nvd | /v1/products/canonical/snapd |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| canonical/snapd | fix | yes | /v1/repositories/canonical/snapd |
| snapcore/snapd | commit, package, pull | yes | /v1/repositories/snapcore/snapd |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2024-07-25
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts