Snapcraft Snapd vulnerabilities

19 known vulnerabilities affecting snapcraft/snapd.

Total CVEs
19
CISA KEV
0
Public exploits
2
Exploited in wild
0
Severity breakdown
CRITICAL2HIGH13MEDIUM4

Vulnerabilities

Page 1 of 1
CVE-2026-3888HIGHCVSS 7.8≥ 0, < 2.57.6-1+deb12u1≥ 0, < 2.68.3-3+deb13u12026-03-17
CVE-2026-3888 [HIGH] CVE-2026-3888: Local privilege escalation in snapd on Linux allows local attackers to get root privilege by re-creating snap's private /tmp directory when systemd-tm Local privilege escalation in snapd on Linux allows local attackers to get root privilege by re-creating snap's private /tmp directory when systemd-tmpfiles is configured to automatically clean up this directory. This issue affects Ubuntu 16.04 LTS, 18.04 LTS, 20.04 LTS, 22.04 LTS, and 24.04 LTS.
osv
CVE-2024-1724HIGHCVSS 8.2≥ 0, < 2.61.4ubuntu0.16.04.1+esm1≥ 0, < 2.61.4ubuntu0.18.04.1+esm12025-01-13
CVE-2024-1724 [HIGH] snapd vulnerabilities snapd vulnerabilities USN-6940-1 fixed vulnerabilities in snapd. This update provides the corresponding updates for Ubuntu 18.04 LTS and Ubuntu 16.04 LTS. Original advisory details: Neil McPhail discovered that snapd did not properly restrict writes to the /home/jslarraz/bin path in the AppArmor profile for snaps using the home plug. An attacker who could convince a user to install a malicious snap could use this vulnerability to escape the snap sand
osv
CVE-2024-29069HIGHCVSS 7.3≥ 0, < 2.62-12024-07-25
CVE-2024-29069 [HIGH] CVE-2024-29069: In snapd versions prior to 2 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 wh
osv
CVE-2024-29068MEDIUMCVSS 6.6≥ 0, < 2.62-12024-07-25
CVE-2024-29068 [MEDIUM] CVE-2024-29068: In snapd versions prior to 2 In snapd versions prior to 2.62, snapd failed to properly check the file type when extracting a snap. The snap format is a squashfs file-system image and so can contain files that are non-regular files (such as pipes or sockets etc). Various file entries within the snap squashfs image (such as icons etc) are directly read by snapd when it is extracted. An attacker who could convince a user to install a malicious snap which cont
osv
CVE-2020-27352HIGHCVSS 8.8≥ 0, < 2.49-12024-06-21
CVE-2020-27352 [HIGH] CVE-2020-27352: When generating the systemd service units for the docker snap (and other similar snaps), snapd does not specify Delegate=yes - as a result systemd wil When generating the systemd service units for the docker snap (and other similar snaps), snapd does not specify Delegate=yes - as a result systemd will move processes from the containers created and managed by these snaps into the cgroup of the main daemon within the snap itself when reloading system units. Th
osv
CVE-2024-5138HIGHCVSS 8.1≥ 0, < 2.62-32024-05-31
CVE-2024-5138 [HIGH] CVE-2024-5138: The snapctl component within snapd allows a confined snap to interact with the snapd daemon to take certain privileged actions on behalf of the snap The snapctl component within snapd allows a confined snap to interact with the snapd daemon to take certain privileged actions on behalf of the snap. It was found that snapctl did not properly parse command-line arguments, allowing an unprivileged user to trigger an authorised action on behalf of the snap that wou
osv
CVE-2022-3328HIGHCVSS 7.0≥ 0, < 2.49-1+deb11u2≥ 0, < 2.57.6-12024-01-08
CVE-2022-3328 [HIGH] CVE-2022-3328: Race condition in snap-confine's must_mkdir_and_open_with_perms() Race condition in snap-confine's must_mkdir_and_open_with_perms()
osv
CVE-2023-1523CRITICALCVSS 10.0≥ 0, < 2.59.5-12023-09-01
CVE-2023-1523 [CRITICAL] CVE-2023-1523: Using the TIOCLINUX ioctl request, a malicious snap could inject contents into the input of the controlling terminal which could allow it to cause arb Using the TIOCLINUX ioctl request, a malicious snap could inject contents into the input of the controlling terminal which could allow it to cause arbitrary commands to be executed outside of the snap sandbox after the snap exits. Graphical terminal emulators like xterm, gnome-terminal and others are not aff
osv
CVE-2021-44730HIGHCVSS 8.8≥ 0, < 2.49-1+deb11u1≥ 0, < 2.54.3-12022-02-17
CVE-2021-44730 [HIGH] CVE-2021-44730: snapd 2 snapd 2.54.2 did not properly validate the location of the snap-confine binary. A local attacker who can hardlink this binary to another location to cause snap-confine to execute other arbitrary binaries and hence gain privilege escalation. Fixed in snapd versions 2.54.3+18.04, 2.54.3+20.04 and 2.54.3+21.10.1
osv
CVE-2021-4120HIGHCVSS 7.8≥ 0, < 2.49-1+deb11u1≥ 0, < 2.54.3-12022-02-17
CVE-2021-4120 [HIGH] CVE-2021-4120: snapd 2 snapd 2.54.2 fails to perform sufficient validation of snap content interface and layout paths, resulting in the ability for snaps to inject arbitrary AppArmor policy rules via malformed content interface and layout declarations and hence escape strict snap confinement. Fixed in snapd versions 2.54.3+18.04, 2.54.3+20.04 and 2.54.3+21.10.1
osv
CVE-2021-44731HIGHCVSS 7.8≥ 0, < 2.49-1+deb11u1≥ 0, < 2.54.3-12022-02-17
CVE-2021-44731 [HIGH] CVE-2021-44731: A race condition existed in the snapd 2 A race condition existed in the snapd 2.54.2 snap-confine binary when preparing a private mount namespace for a snap. This could allow a local attacker to gain root privileges by bind-mounting their own contents inside the snap's private mount namespace and causing snap-confine to execute arbitrary code and hence gain privilege escalation. Fixed in snapd versions 2.54.3+18.04, 2.54.3+20.04 and 2.54.3+21.10.1
osv
CVE-2021-3155MEDIUMCVSS 5.5≥ 0, < 2.54.3+18.04≥ 0, < 2.54.3+20.042022-02-17
CVE-2021-3155 [MEDIUM] snapd vulnerabilities snapd vulnerabilities James Troup discovered that snap did not properly manage the permissions for the snap directories. A local attacker could possibly use this issue to expose sensitive information. (CVE-2021-3155) Ian Johnson discovered that snapd did not properly validate content interfaces and layout paths. A local attacker could possibly use this issue to inject arbitrary AppArmor policy rules, resulting in a bypass of intended access restrict
osv
CVE-2020-11934MEDIUMCVSS 5.9≥ 0, < 2.45.2-12020-07-29
CVE-2020-11934 [MEDIUM] CVE-2020-11934: It was discovered that snapctl user-open allowed altering the $XDG_DATA_DIRS environment variable when calling the system xdg-open It was discovered that snapctl user-open allowed altering the $XDG_DATA_DIRS environment variable when calling the system xdg-open. OpenURL() in usersession/userd/launcher.go would alter $XDG_DATA_DIRS to append a path to a directory controlled by the calling snap. A malicious snap could exploit this to bypass intended access r
osv
CVE-2020-11933MEDIUMCVSS 6.8≥ 0, < 2.45.1ubuntu0.2≥ 0, < 2.45.1+18.04.2+1 more2020-07-15
CVE-2020-11933 [MEDIUM] snapd vulnerabilities snapd vulnerabilities It was discovered that cloud-init as managed by snapd on Ubuntu Core 16 and Ubuntu Core 18 devices ran on every boot without restrictions. A physical attacker could exploit this to craft cloud-init user-data/meta-data via external media to perform arbitrary changes on the device to bypass intended security mechanisms such as full disk encryption. This issue did not affect traditional Ubuntu systems. (CVE-2020-11933) It was dis
osv
CVE-2019-11503HIGHCVSS 7.5≥ 0, < 2.40-12019-04-24
CVE-2019-11503 [HIGH] CVE-2019-11503: snap-confine as included in snapd before 2 snap-confine as included in snapd before 2.39 did not guard against symlink races when performing the chdir() to the current working directory of the calling user, aka a "cwd restore permission bypass."
osv
CVE-2019-11502HIGHCVSS 7.5≥ 0, < 2.40-12019-04-24
CVE-2019-11502 [HIGH] CVE-2019-11502: snap-confine in snapd before 2 snap-confine in snapd before 2.38 incorrectly set the ownership of a snap application to the uid and gid of the first calling user. Consequently, that user had unintended access to a private /tmp directory.
osv
CVE-2019-7304CRITICALCVSS 9.8PoC≥ 0, < 2.37.1-12019-04-23
CVE-2019-7304 [CRITICAL] CVE-2019-7304: Canonical snapd before version 2 Canonical snapd before version 2.37.1 incorrectly performed socket owner validation, allowing an attacker to run arbitrary commands as root. This issue affects: Canonical snapd versions prior to 2.37.1.
osv
CVE-2019-7303HIGHCVSS 7.5PoC≥ 0, < 2.37.4-12019-04-23
CVE-2019-7303 [HIGH] CVE-2019-7303: A vulnerability in the seccomp filters of Canonical snapd before version 2 A vulnerability in the seccomp filters of Canonical snapd before version 2.37.4 allows a strict mode snap to insert characters into a terminal on a 64-bit host. The seccomp rules were generated to match 64-bit ioctl(2) commands on a 64-bit platform; however, the Linux kernel only uses the lower 32 bits to determine which ioctl(2) commands to run. This issue affects: Canonical snapd vers
osv
CVE-2017-14178HIGHCVSS 7.5≥ 2.27, ≤ 2.29.2v2.27 through 2.29.22018-02-02
CVE-2017-14178 [HIGH] CWE-755 CVE-2017-14178: In snapd 2.27 through 2.29.2 the 'snap logs' command could be made to call journalctl without match In snapd 2.27 through 2.29.2 the 'snap logs' command could be made to call journalctl without match arguments and therefore allow unprivileged, unauthenticated users to bypass systemd-journald's access restrictions.
cvelistv5nvdosv