CVE-2024-5138Canonical Snapd
High 8.1
Follow: this CVE · Canonical · Canonical Snapd We alert you by email or Slack (account required).
- Priority
- 49
- CVSS 3.1
- 8.1
- EPSS
- 1.3% probability of exploitation in 30 days · percentile 71
- Auth required
- Yes
- Published
- May 31, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-20
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
What happens
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 would normally require administrator privileges to perform. This could possibly allow an unprivileged user to perform a denial of service or similar.
What to do
- Apply the vendor's security update for Snapd.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/snapcore/snapd |
≥ 2.51.6 < 2.63.1 |
2.63.1 |
go get github.com/snapcore/snapd@v2.63.1 |
| Go | github.com/snapcore/snapd |
< 0.0.0-20240524114846-68ee9c6aa916 |
0.0.0-20240524114846-68ee9c6aa916 |
go get github.com/snapcore/snapd@v0.0.0-20240524114846-68ee9c6aa916 |
| Go | github.com/snapcore/snapd |
all |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-p9v8-q5m4-pf46, GO-2024-2906). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| canonical | snapd | ≥ 2.51.6 < 2.63.1 |
Official sources
References
Links published by the sources. Open them with care.
- bugs.launchpad.net Exploit Issue Tracking Patch
- github.com Patch
- github.com Vendor Advisory
- www.cve.org Third Party Advisory