Vulnerability · Published Jul 25, 2024 · Assigned by canonical
CVE-2024-1724snapd allows $HOME/bin symlink
Medium 6.3
In plain English
A medium-severity incorrect permission assignment in snap from Canonical. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 23% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | snapd | no fix listed | DEBIAN-CVE-2024-1724 |
| Debian:13 | snapd | 2.62-1 | DEBIAN-CVE-2024-1724 |
| Debian:14 | snapd | 2.62-1 | DEBIAN-CVE-2024-1724 |
| Go | github.com/snapcore/snapd | 2.62 | GHSA-4mh8-9689-38vr |
| Go | github.com/snapcore/snapd | no fix listed | GO-2024-3007 |
| Ubuntu:22.04:LTS | snapd | 2.63+22.04ubuntu0.1 | USN-6940-1 |
| Ubuntu:22.04:LTS | snapd | 2.63+22.04ubuntu0.1 | UBUNTU-CVE-2024-1724 |
| Ubuntu:24.04:LTS | snapd | 2.63+24.04ubuntu0.1 | UBUNTU-CVE-2024-1724 |
| Ubuntu:24.04:LTS | snapd | 2.63+24.04ubuntu0.1 | USN-6940-1 |
Affected products (as reported)
Weakness: CWE-732 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L