snapd allows $HOME/bin symlink
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Canonical | snap | before 2.62 | 2.62 | Patch available | CNA |
| — | github.com/snapcore/snapd (Go) | before 2.62 | 2.62 | Patch available | GHSA-4mh8-9689-38vr |
- snap VendorCanonical Affected before 2.62 Fixed in 2.62 Patch available CNA
- github.com/snapcore/snapd (Go) Vendor— Affected before 2.62 Fixed in 2.62 Patch available GHSA-4mh8-9689-38vr
Remediation
- Fix · CNA snap (Canonical) Fixed in 2.62
- Fix · GHSA-4mh8-9689-38vr github.com/snapcore/snapd (Go) Fixed in 2.62 Advisory →
Vendor assessments
Timeline
- 2026-10-02 Threatist record created from CVE-2024-1724
- 2026-10-03 Alias added: GHSA-4mh8-9689-38vr
References
Patch 2
More Canonical Snapd vulnerabilities
- TI-2023-01437 Injection in Canonical snapd CVSS 3.1CRITICAL 10.0
- TI-2019-05192 Local privilege escalation via snapd socket CVSS 3.1CRITICAL 9.8
- TI-2024-04773 Improper input validation in Canonical snapd CVSS 3.1HIGH 8.1
- TI-2020-16634 Improper privilege management in Canonical snapd CVSS 3.1CRITICAL 9.3
- TI-2019-05191 Snapd seccomp filter TIOCSTI ioctl bypass CVSS 3.1HIGH 7.5
- TI-2021-20244 snapd could be made to escalate privileges and run programs as administrator CVSS 3.1HIGH 8.8
Sources
- CVE-2024-1724 · CVE Program
- CVE-2024-1724 · NVD
- FIRST EPSS
- GHSA-4mh8-9689-38vr · GitHub Advisory Database · CC BY 4.0
- CVE-2024-1724 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences