CVE-2024-1724
snapd allows $HOME/bin symlink
Reported by canonical · Published July 25, 2024
github.com/snapcore/snapd is fixed in 2.62 (Go Modules)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| github.com/snapcore/snapd | Go Modules | 2.62 |
| snapd | canonical | 2.62 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Canonical | snap | 0 |
| canonical | snapd | 0 |
| Canonical | snap | 0 |
| github.com | snapcore/snapd | 0 |
Timeline
- Jul 2, 2024 PoC Published (4 in total, the first dated here)
- Jul 25, 2024 CVE Published
- Jul 26, 2024 EPSS Score (30 in total, the first dated here)
- Oct 4, 2024 Coalition ESS Score (6 in total, the first dated here)
- Mar 10, 2026 Security Advisory (5 in total, the first dated here)
- Jun 17, 2026 CVE Updated
- Aug 10, 2026 Distribution Patch (2 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2024-1724
vulnetix vdb fixes CVE-2024-1724
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-1724/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart