CVE-2024-29069

snapd will follow archived symlinks when unpacking a filesystem

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

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-2278 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.
Github GHSA Github GHSA GHSA-69p6-gp5x-j269 snapd failed to properly check the destination of symbolic links when extracting a snap
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
Weaknesses CWE-59
CPEs cpe:2.3:a:canonical:snapd:*:*:*:*:*:*:*:*
Vendors & Products Canonical
Canonical snapd
Weaknesses

Sources

Status
PUBLISHED
Assigner
canonical
Published
Updated
Aug 2, 2024, 1:03 AM
Reserved
Mar 14, 2024, 11:09 PM
Status
Modified
Published
Jul 25, 2024, 8:15 PM
Modified
Jun 17, 2026, 7:22 AM