Vulnerability · Published Jul 25, 2024 · Assigned by canonical
CVE-2024-29069snapd will follow archived symlinks when unpacking a filesystem
Medium 4.8
In plain English
A medium-severity security flaw in snapd from Canonical. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 14% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | snapd | no fix listed | DEBIAN-CVE-2024-29069 |
| Debian:13 | snapd | 2.62-1 | DEBIAN-CVE-2024-29069 |
| Debian:14 | snapd | 2.62-1 | DEBIAN-CVE-2024-29069 |
| Go | github.com/snapcore/snapd | 2.62 | GHSA-69p6-gp5x-j269 |
| Go | github.com/snapcore/snapd | no fix listed | GO-2024-3009 |
| Ubuntu:22.04:LTS | snapd | 2.63+22.04ubuntu0.1 | USN-6940-1 |
| Ubuntu:22.04:LTS | snapd | 2.63+22.04ubuntu0.1 | UBUNTU-CVE-2024-29069 |
| Ubuntu:24.04:LTS | snapd | 2.63+24.04ubuntu0.1 | UBUNTU-CVE-2024-29069 |
| Ubuntu:24.04:LTS | snapd | 2.63+24.04ubuntu0.1 | USN-6940-1 |
Affected products (as reported)
Weakness: CWE-610 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L