CVEfocus › CVE database › CVE-2024-29069

CVE-2024-29069snapd will follow archived symlinks when unpacking a filesystem

CVSS 4.8 MediumEPSS 0.3% (higher than 18% of CVEs)Published 2024-07-25Updated 2024-08-02Assigner: canonical

In snapd versions prior to 2.62, snapd failed to properly check the destination of symbolic links when extracting a snap. The snap format is a squashfs file-system image and so can contain symbolic links and other file types. Various file entries within the snap squashfs image (such as icons and desktop files etc) are directly read by snapd when it is extracted. An attacker who could convince a user to install a malicious snap which contained symbolic links at these paths could then cause snapd to write out the contents of the symbolic link destination into a world-readable directory. This in-turn could allow an unprivileged user to gain access to privileged information.

CWE-610

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-29069
Ubuntu 22.04snapdFixed2.63+22.04ubuntu0.1UBUNTU-CVE-2024-29069
Ubuntu 20.04snapdFixed2.63+20.04ubuntu0.1UBUNTU-CVE-2024-29069
Ubuntu 18.04snapdFix pending2.61.4ubuntu0.18.04.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2024-29069
Ubuntu 16.04snapdFix pending2.61.4ubuntu0.16.04.1+esm1 (Ubuntu Pro)UBUNTU-CVE-2024-29069
Debian 14snapdFixed2.62-1DEBIAN-CVE-2024-29069
Debian 13snapdFixed2.62-1DEBIAN-CVE-2024-29069
Debian 12snapdFix pendingDEBIAN-CVE-2024-29069
Go librarygithub.com/snapcore/snapdFixed2.62GHSA-69p6-gp5x-j269

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.