CVE-2024-1724
HIGH 8.2CVSS 3.1snapd failed to restrict writes to the $HOME/bin path
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.
- Published
- 25 Jul 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security@ubuntu.com
- NVD status
- Modified
- Weakness
- CWE-732
- Also known as
- GHSA-4mh8-9689-38vrGO-2024-3007
- Sources
- NVDJSONOSV GHSA-4mh8-9689-38vrJSONOSV GO-2024-3007JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
| NVD | security@ubuntu.com (Secondary) | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.3 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | canonical | snapdcpe:2.3:a:canonical:snapd:*:*:*:*:*:*:*:* |
< 2.62 | 2.62 |
| OSV | Go | github.com/snapcore/snapd | < 2.62 | 2.62 |
| OSV | Go | github.com/snapcore/snapd | all versions |
References
- https://github.com/snapcore/snapd/commit/aa191f97713de8dc3ce3ac818539f0b976eb8ef6 · Patch, WEB, FIX
- https://github.com/snapcore/snapd/pull/13689 · Issue Tracking, Patch, WEB, FIX
- https://gld.mcphail.uk/posts/explaining-cve-2024-1724/ · Exploit, Technical Description, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-1724 · ADVISORY
- https://github.com/snapcore/snapd · PACKAGE
- https://pkg.go.dev/vuln/GO-2024-3007 · WEB
- https://github.com/advisories/GHSA-4mh8-9689-38vr · ADVISORY
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 25 Jul 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Aug 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 25 Jul 2024)