ghsa-4mh8-9689-38vr
Vulnerability from github
Published
2024-07-25 21:31
Modified
2024-08-07 15:10
Severity ?
Summary
snapd failed to restrict writes to the $HOME/bin path
Details
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": [ { "package": { "ecosystem": "Go", "name": "github.com/snapcore/snapd" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "2.62" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2024-1724" ], "database_specific": { "cwe_ids": [ "CWE-732" ], "github_reviewed": true, "github_reviewed_at": "2024-07-26T21:34:22Z", "nvd_published_at": "2024-07-25T19:15:09Z", "severity": "MODERATE" }, "details": "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 \u0027home\u0027 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.", "id": "GHSA-4mh8-9689-38vr", "modified": "2024-08-07T15:10:52Z", "published": "2024-07-25T21:31:20Z", "references": [ { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-1724" }, { "type": "WEB", "url": "https://github.com/snapcore/snapd/pull/13689" }, { "type": "WEB", "url": "https://github.com/snapcore/snapd/commit/aa191f97713de8dc3ce3ac818539f0b976eb8ef6" }, { "type": "PACKAGE", "url": "https://github.com/snapcore/snapd" }, { "type": "WEB", "url": "https://gld.mcphail.uk/posts/explaining-cve-2024-1724" }, { "type": "WEB", "url": "https://pkg.go.dev/vuln/GO-2024-3007" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L", "type": "CVSS_V3" } ], "summary": "snapd failed to restrict writes to the $HOME/bin path" }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.