CVE-2024-29069snapd will follow archived symlinks when unpacking a filesystem
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 24.04 | snapd | Fixed | 2.63+24.04ubuntu0.1 | UBUNTU-CVE-2024-29069 |
| Ubuntu 22.04 | snapd | Fixed | 2.63+22.04ubuntu0.1 | UBUNTU-CVE-2024-29069 |
| Ubuntu 20.04 | snapd | Fixed | 2.63+20.04ubuntu0.1 | UBUNTU-CVE-2024-29069 |
| Ubuntu 18.04 | snapd | Fix pending | 2.61.4ubuntu0.18.04.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-29069 |
| Ubuntu 16.04 | snapd | Fix pending | 2.61.4ubuntu0.16.04.1+esm1 (Ubuntu Pro) | UBUNTU-CVE-2024-29069 |
| Debian 14 | snapd | Fixed | 2.62-1 | DEBIAN-CVE-2024-29069 |
| Debian 13 | snapd | Fixed | 2.62-1 | DEBIAN-CVE-2024-29069 |
| Debian 12 | snapd | Fix pending | DEBIAN-CVE-2024-29069 | |
| Go library | github.com/snapcore/snapd | Fixed | 2.62 | GHSA-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.
- Canonical snapd: affected: before 2.62; fixed in
2.62
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.