# CVE-2024-1724: snapd allows $HOME/bin symlink

- Severity: Medium 6.3 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.31%, higher than 25% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-07-25T19:05:23.299Z
- Modified: 2026-09-10T03:50:16.240Z
- Also known as: GHSA-4mh8-9689-38vr, GO-2024-3007
- Weaknesses: CWE-732
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: canonical

## 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.

(As written by CVE List.)

## Affected

- snapd: before 2.62
- canonical snapd: before 2.62
- github.com/snapcore/snapd (Go): before 2.62; all versions

## Every score

- canonical: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L`
- GitHub: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L`
- NVD: CVSS:3.1 8.2 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H`

## References

- <https://gld.mcphail.uk/posts/explaining-cve-2024-1724/> (exploit, technical-description, third-party-advisory)
- <https://github.com/snapcore/snapd/commit/aa191f97713de8dc3ce3ac818539f0b976eb8ef6> (fix, patch, web)
- <https://github.com/snapcore/snapd/pull/13689> (fix, issue-tracking, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-1724> (advisory)
- <https://github.com/snapcore/snapd> (package)
- <https://gld.mcphail.uk/posts/explaining-cve-2024-1724> (web)
- <https://pkg.go.dev/vuln/GO-2024-3007> (web)
- <https://github.com/advisories/GHSA-4mh8-9689-38vr> (advisory)

## Sources

- CVE List: [CVE-2024-1724](https://www.cve.org/CVERecord?id=CVE-2024-1724), CVE Terms of Use, modified 2024-08-01
- GitHub Advisory Database: [GHSA-4mh8-9689-38vr](https://github.com/advisories/GHSA-4mh8-9689-38vr), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2024-3007](https://pkg.go.dev/vuln/GO-2024-3007), CC-BY-4.0, modified 2024-08-06
- NVD: [CVE-2024-1724](https://nvd.nist.gov/vuln/detail/CVE-2024-1724), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-1724 · Whole record: https://cve.day/CVE-2024-1724.json · Rebuilt by cve.day 2026-11-25T22:58:43.209Z
