{"cve":"CVE-2024-1724","nvd":{"published":"2024-07-25T19:15:09.913","modified":"2026-06-17T07:04:52.453","status":"Modified","description":"In snapd versions prior to 2.62, when using AppArmor for enforcement of \nsandbox permissions, snapd failed to restrict writes to the $HOME/bin\npath. In Ubuntu, when this path exists, it is automatically added to\nthe users PATH. An attacker who could convince a user to install a\nmalicious snap which used the 'home' plug could use this vulnerability\nto install arbitrary scripts into the users PATH which may then be run\nby the user outside of the expected snap sandbox and hence allow them\nto escape confinement.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","score":8.2},"cwes":["CWE-732"],"references":["https://github.com/snapcore/snapd/commit/aa191f97713de8dc3ce3ac818539f0b976eb8ef6","https://github.com/snapcore/snapd/pull/13689","https://gld.mcphail.uk/posts/explaining-cve-2024-1724/","https://github.com/snapcore/snapd/commit/aa191f97713de8dc3ce3ac818539f0b976eb8ef6","https://github.com/snapcore/snapd/pull/13689"],"products":["canonical:snapd"],"source":"nvd","synced_at":"2026-10-19T21:52:42.518321223+00:00"},"epss":{"cve":"CVE-2024-1724","score":0.00306,"percentile":0.23385,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-4mh8-9689-38vr","url":"https://osv.dev/vulnerability/GHSA-4mh8-9689-38vr","summary":"snapd failed to restrict writes to the $HOME/bin path","modified":"2026-09-10T03:50:16.240747968Z","packages":[{"ecosystem":"Go","name":"github.com/snapcore/snapd","purl":"pkg:golang/github.com/snapcore/snapd","ranges":["<2.62"],"fixed":["2.62"]}]},{"id":"GO-2024-3007","url":"https://osv.dev/vulnerability/GO-2024-3007","summary":"snapd failed to restrict writes to the $HOME/bin path in github.com/snapcore/snapd","modified":"2024-08-06T22:27:08.054502Z","packages":[{"ecosystem":"Go","name":"github.com/snapcore/snapd","purl":"pkg:golang/github.com/snapcore/snapd","ranges":["all versions"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}