CVE-2024-1724

snapd allows $HOME/bin symlink

Published Jul 25, 2024 CVSS 3.1 · 6.3 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-2247 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.
Github GHSA Github GHSA GHSA-4mh8-9689-38vr snapd failed to restrict writes to the $HOME/bin path
Ubuntu USN Ubuntu USN USN-6940-1 snapd vulnerabilities
Ubuntu USN Ubuntu USN USN-6940-2 snapd vulnerabilities
History
Type Values Removed Values Added
First Time appeared Canonical
Canonical snapd
CPEs cpe:2.3:a:canonical:snapd:*:*:*:*:*:*:*:*
Vendors & Products Canonical
Canonical snapd
Weaknesses

Sources

Status
PUBLISHED
Assigner
canonical
Published
Updated
Aug 1, 2024, 6:48 PM
Reserved
Feb 21, 2024, 7:46 PM
Status
Modified
Published
Jul 25, 2024, 7:15 PM
Modified
Jun 17, 2026, 7:04 AM
Severity
Moderate
Public date
Jul 25, 2024, 12:00 AM