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.

Severity (CVSS 3.1)6.3Medium
Exploit odds (30 days)0.3%top 76.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12snapdno fix listedDEBIAN-CVE-2024-1724
Debian:13snapd2.62-1DEBIAN-CVE-2024-1724
Debian:14snapd2.62-1DEBIAN-CVE-2024-1724
Gogithub.com/snapcore/snapd2.62GHSA-4mh8-9689-38vr
Gogithub.com/snapcore/snapdno fix listedGO-2024-3007
Ubuntu:22.04:LTSsnapd2.63+22.04ubuntu0.1USN-6940-1
Ubuntu:22.04:LTSsnapd2.63+22.04ubuntu0.1UBUNTU-CVE-2024-1724
Ubuntu:24.04:LTSsnapd2.63+24.04ubuntu0.1UBUNTU-CVE-2024-1724
Ubuntu:24.04:LTSsnapd2.63+24.04ubuntu0.1USN-6940-1

Affected products (as reported)

VendorProductVersions
Canonical snap 0 – before 2.62

Weakness: CWE-732 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L

References