Vulnerabilities · 2024 · Canonical
CVE-2024-1724
Canonical Snapd vulnerability
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.
Affected products
Snapd. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Canonical Snapd runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/snapcore/snapd/commit/aa191f97713de8dc3ce3ac818539f0b976eb8ef6 · Patch
- github.com/snapcore/snapd/pull/13689 · Patch
- gld.mcphail.uk/posts/explaining-cve-2024-1724/ · Exploit
- nvd.nist.gov/vuln/detail/CVE-2024-1724
- gld.mcphail.uk/posts/explaining-cve-2024-1724
- pkg.go.dev/vuln/GO-2024-3007
- github.com/advisories/GHSA-4mh8-9689-38vr
- nvd.nist.gov/vuln/detail/CVE-2024-1724
- cve.org/CVERecord?id=CVE-2024-1724
More vulnerabilities in Canonical products
CVE-2025-54293CVE-2025-54292CVE-2025-54291CVE-2025-54290CVE-2025-54289CVE-2025-54288CVE-2025-54286CVE-2025-53513All 4,095
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.