CVE-2024-1724 in Canonical Snapd
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' p...
Affects 1 product from 1 vendor. Facts below cite their sources.
Requires local access, low complexity, low privileges required, requires user interaction, can impact systems beyond the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Canonical | Snapd | < 2.62 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2024-1724 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-186038-H |
| CVSS vector | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
| Published | 2024-07-25 |
| Last modified | 2024-11-21 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-732: Incorrect Permission Assignment for Critical Resource
Software sets permissions on critical resources allowing unintended actors to read or modify them.
Related attack patterns (CAPEC)
CAPEC-60 Reusing Session IDs (aka Session Replay) via CWE-732
CAPEC-61 Session Fixation via CWE-732
CAPEC-127 Directory Indexing via CWE-732
CAPEC-206 Signing Malicious Code via CWE-732
CAPEC-642 Replace Binaries via CWE-732
Show all 11
CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs via CWE-732
CAPEC-17 Using Malicious Files via CWE-732
CAPEC-62 Cross Site Request Forgery via CWE-732
CAPEC-180 Exploiting Incorrectly Configured Access Control Security Levels via CWE-732
CAPEC-234 Hijacking a privileged process via CWE-732
CAPEC-122 Privilege Abuse via CWE-732
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
CVE-2024-1724 affects snapd versions prior to 2.62, where AppArmor fails to restrict writes to the $HOME/bin path, allowing an attacker to install malicious scripts into the user's PATH via a malicious snap using the 'home' plug.
An attacker can exploit this vulnerability by convincing a user to install a malicious snap that utilizes the 'home' plug. Once installed, the snap can write arbitrary scripts to the $HOME/bin directory, which is included in the user's PATH, potentially leading to privilege escalation or unauthorized actions.
Questions
What is CVE-2024-1724?
CVE-2024-1724 affects snapd versions prior to 2.62, where AppArmor fails to restrict writes to the $HOME/bin path, allowing an attacker to install malicious scripts into the user's PATH via a malicious snap using the 'home' plug.
What is the CVSS score for CVE-2024-1724?
CVE-2024-1724 has CVSS 8.2 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H. EPSS: 0.3%.
Is CVE-2024-1724 actively exploited?
No confirmed active exploitation of CVE-2024-1724 as of 2026-05-30.
How do I remediate CVE-2024-1724?
Priority: HIGH.
What systems are affected by CVE-2024-1724?
CVE-2024-1724 affects Canonical Snapd.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Canonical","product":"Snapd","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2024-11-21.