Description
In snapd versions prior to 2.62, when using AppArmor for enforcement of
sandbox permissions, snapd failed to restrict writes to the $HOME/bin
path. In Ubuntu, when this path exists, it is automatically added to
the users PATH. An attacker who could convince a user to install a
malicious snap which used the 'home' plug could use this vulnerability
to install arbitrary scripts into the users PATH which may then be run
by the user outside of the expected snap sandbox and hence allow them
to escape confinement.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Canonical | snap | < 2.62 | 2.62 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | snapd | 2.62-1 | — |
| Debian 13 | snapd | 2.62-1 | — |
| Debian 12 | snapd | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | snapd | 2.63+24.04ubuntu0.1 | USN-6940-1 |
| Ubuntu 22.04 LTS | snapd | 2.63+22.04ubuntu0.1 | USN-6940-1 |
| Ubuntu 20.04 LTS | snapd | 2.63+20.04ubuntu0.1 | USN-6940-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | snapd | 2.61.4ubuntu0.18.04.1+esm1 | USN-6940-2 |
| Ubuntu Pro 16.04 LTS | snapd | 2.61.4ubuntu0.16.04.1+esm1 | USN-6940-2 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/snapcore/snapd | < 2.62 | 2.62 | GHSA-4mh8-9689-38vr |
| Go | github.com/snapcore/snapd | all versions | — | GO-2024-3007 |
Advisories 3
- USN-6940-2 snapd vulnerabilities Ubuntu Security Notices (USN) · Jun 25, 2026
- USN-6940-1 snapd vulnerabilities Ubuntu Security Notices (USN) · Feb 10, 2026
- WID-SEC-2024-1712 Canonical Snap: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jan 12, 2025