snapd allows $HOME/bin symlink
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2024-1724
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 02:22 UTC · Revision 1
Source evidence
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.
osv:CVE-2024-1724
Complete source record
{
"id": "88dfea917c85e942a468fc98141486c0c181096959fd601b6b91d60b4fd2712b",
"url": "https://osv.dev/vulnerability/CVE-2024-1724",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "snapd allows $HOME/bin symlink",
"summary": "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.",
"evidence": "osv:CVE-2024-1724",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2024-1724",
"aliases": [
"CVE-2024-1724",
"GHSA-4mh8-9689-38vr",
"GO-2024-3007"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/canonical/snapd",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "b749eda44d9f849855587dbd392571adac32e928"
},
{
"fixed": "aa191f97713de8dc3ce3ac818539f0b976eb8ef6"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:canonical:snapd:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.62"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "aa191f97713de8dc3ce3ac818539f0b976eb8ef6"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"untagged-ec50ee5bfb45daefc236",
"2.15.2",
"2.15",
"2.14.2.16.04",
"2.14.1",
"2.14",
"2.13",
"2.12",
"2.11",
"2.0.10",
"2.0.9",
"2.0.8",
"2.0.7",
"2.0.6",
"2.0.5",
"2.0.4",
"2.0.3",
"2.0",
"1.9.4",
"1.9.3",
"1.9.2",
"1.9.1",
"1.9",
"ppa",
"1.7.3+20160310ubuntu1",
"1.7.3+20160308ubuntu1",
"1.7.3+20160303ubuntu4",
"1.7.3+20160303ubuntu3",
"1.7.3+20160303ubuntu2",
"1.7.3+20160303ubuntu1",
"1.7.3+20160225ubuntu1",
"1.7.2+20160223ubuntu1",
"1.7.2+20160204ubuntu1",
"1.7.2+20160113ubuntu1",
"1.7.2ubuntu1",
"1.7ubuntu1",
"1.6ubuntu1",
"1.5ubuntu1",
"1.4ubuntu1",
"1.3ubuntu1",
"1.2-0ubuntu1",
"1.1.2-0ubuntu1",
"1.1.1-0ubuntu1",
"1.1-0ubuntu1",
"1.0.1-0ubuntu1",
"1.0-0ubuntu1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-1724.json"
}
}
],
"modified": "2026-10-28T02:30:25.396074333Z",
"provider": "osv",
"references": [
"https://github.com/snapcore/snapd/",
"https://gld.mcphail.uk/posts/explaining-cve-2024-1724/",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/1xxx/CVE-2024-1724.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-1724",
"https://github.com/snapcore/snapd/commit/aa191f97713de8dc3ce3ac818539f0b976eb8ef6",
"https://github.com/snapcore/snapd/pull/13689"
],
"provider_metadata": {
"cwe_ids": [
"CWE-732"
],
"cna_assigner": "canonical",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/1xxx/CVE-2024-1724.json"
}
},
"related_cves": [
{
"value": "CVE-2024-1724",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 491862,
"published_at": "2024-07-25T19:05:23.299+00:00"
}