CVEfocus › CVE database › CVE-2024-1724

CVE-2024-1724snapd allows $HOME/bin symlink

CVSS 6.3 MediumEPSS 0.3% (higher than 14% of CVEs)Published 2024-07-25Updated 2024-08-01Assigner: canonical

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.

CWE-732

What to do

Fixed builds are available from Debian, Go, Ubuntu: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

6Fixed
3Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04snapdFixed2.63+24.04ubuntu0.1UBUNTU-CVE-2024-1724
Ubuntu 22.04snapdFixed2.63+22.04ubuntu0.1UBUNTU-CVE-2024-1724
Ubuntu 20.04snapdFixed2.63+20.04ubuntu0.1UBUNTU-CVE-2024-1724
Ubuntu 18.04snapdFix pending2.61.4ubuntu0.18.04.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2024-1724
Ubuntu 16.04snapdFix pending2.61.4ubuntu0.16.04.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2024-1724
Debian 14snapdFixed2.62-1DEBIAN-CVE-2024-1724
Debian 13snapdFixed2.62-1DEBIAN-CVE-2024-1724
Debian 12snapdFix pendingDEBIAN-CVE-2024-1724
Go librarygithub.com/snapcore/snapdFixed2.62GHSA-4mh8-9689-38vr

What the vendor says

As published in the CVE record by canonical, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.