{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-1724","id":"CVE-2024-1724","title":"snapd allows $HOME/bin symlink","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 w","descriptionLong":"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.","published":"2024-07-25T19:05:23.299Z","updated":"2026-10-28T02:30:25.396074333Z","reserved":"2024-02-21T19:46:47.236Z","status":"Modified","rejected":false,"assigner":"canonical","metric":{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","rating":"medium","source":"canonical"},"metrics":[{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","rating":"medium","source":"canonical"},{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","rating":"medium","source":"ubuntu.com"},{"version":"3.1","score":8.2,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","rating":"medium","source":"OSV"},{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","rating":"medium","source":"GitHub"}],"rating":"medium","products":["Canonical snap"],"affectedProducts":[{"vendor":"Canonical","product":"snap","defaultStatus":"unaffected","versions":[{"status":"affected","version":"0","lessThan":"2.62","versionType":"custom"}],"platforms":["Linux"]}],"packages":[{"ecosystem":"Go","name":"github.com/snapcore/snapd","purl":"pkg:golang/github.com/snapcore/snapd","ranges":["<2.62","all versions"],"fixed":["2.62"],"advisory":"GHSA-4mh8-9689-38vr"}],"cwes":["CWE-732"],"aliases":["GHSA-4mh8-9689-38vr","GO-2024-3007"],"references":[{"url":"https://github.com/snapcore/snapd/commit/aa191f97713de8dc3ce3ac818539f0b976eb8ef6","tags":["x_transferred","Patch","fix","web"]},{"url":"https://gld.mcphail.uk/posts/explaining-cve-2024-1724/","tags":["x_transferred","Exploit","Technical Description","Third Party Advisory","web"]},{"url":"https://github.com/snapcore/snapd/pull/13689","tags":["x_transferred","Issue Tracking","Patch","fix","web"]},{"url":"https://github.com/snapcore/snapd/","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/1xxx/CVE-2024-1724.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-1724","tags":["advisory"]},{"url":"https://github.com/snapcore/snapd","tags":["package"]},{"url":"https://gld.mcphail.uk/posts/explaining-cve-2024-1724","tags":["web"]},{"url":"https://pkg.go.dev/vuln/GO-2024-3007","tags":["web"]},{"url":"https://github.com/advisories/GHSA-4mh8-9689-38vr","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.00306,"epssPercentile":0.23813,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-1724","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-1724","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-1724","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-4mh8-9689-38vr","ok":true,"note":"GHSA-4mh8-9689-38vr"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-1724","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}