CVE-2024-1724Canonical Snapd
High 8.2
Follow: this CVE · Canonical · Canonical Snapd We alert you by email or Slack (account required).
- Priority
- 49
- CVSS 3.1
- 8.2
- EPSS
- 0.3% probability of exploitation in 30 days · percentile 14
- Auth required
- Yes
- Published
- Jul 25, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-732
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Snapd.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/snapcore/snapd |
< 2.62 |
2.62 |
go get github.com/snapcore/snapd@v2.62 |
| Go | github.com/snapcore/snapd |
all |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-4mh8-9689-38vr, GO-2024-3007). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| canonical | snapd | < 2.62 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Issue Tracking Patch
- gld.mcphail.uk Exploit Technical Description Third Party Advisory