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.

Severity (CVSS 3.1)4.8Medium
Exploit odds (30 days)0.2%top 86.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12snapdno fix listedDEBIAN-CVE-2024-29069
Debian:13snapd2.62-1DEBIAN-CVE-2024-29069
Debian:14snapd2.62-1DEBIAN-CVE-2024-29069
Gogithub.com/snapcore/snapd2.62GHSA-69p6-gp5x-j269
Gogithub.com/snapcore/snapdno fix listedGO-2024-3009
Ubuntu:22.04:LTSsnapd2.63+22.04ubuntu0.1USN-6940-1
Ubuntu:22.04:LTSsnapd2.63+22.04ubuntu0.1UBUNTU-CVE-2024-29069
Ubuntu:24.04:LTSsnapd2.63+24.04ubuntu0.1UBUNTU-CVE-2024-29069
Ubuntu:24.04:LTSsnapd2.63+24.04ubuntu0.1USN-6940-1

Affected products (as reported)

VendorProductVersions
Canonical snapd 0 – before 2.62

Weakness: CWE-610 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:L

References