CVE-2024-1724: canonical snap
Vulnerability summary
CVE-2024-1724 is a high (CVSS 8.2) vulnerability in canonical snap. EPSS estimates a 0.31% chance of exploitation in the next 30 days, higher than 21.9% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 2 · Related 2Timeline
- 25-07-2024PublishedVulnerability first disclosed.
- 01-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- CVE.orgCNA6.3MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated8.2HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.2HighCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
- OSV · GoEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:LDiffers
EPSS trend
Probability
0.31%
Chance of exploitation in the next 30 days
Percentile
22%
Versus all other CVEs
30-day change
0.00 pp
From 0.31% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (gld.mcphail.uk)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Debian1 product
- snapdAll versions (No fix recorded) | < 2.62-1
Github.com/snapcore1 product
- snapd< 2.62 | All versions (No fix recorded)
Ubuntu1 product
- snapd< 2.61.4ubuntu0.16.04.1+esm1 | < 2.61.4ubuntu0.18.04.1+esm1 | < 2.63+20.04ubuntu0.1 | < 2.63+22.04ubuntu0.1 | < 2.63+24.04ubuntu0.1
4 vendors · 5 products
References
13 links- gld.mcphail.uk/posts/explaining-cve-2024-1724/REPORTExploitTechnical DescriptionThird Party Advisory
- github.com/snapcore/snapdPACKAGE