CVE-2024-5138
HIGH 8.1CVSS 3.1CVE-2024-5138: snapd snapctl auth bypass
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.
- Published
- 31 May 2024
- Last modified
- 8 Jul 2026
- Assigned by
- security@ubuntu.com
- NVD status
- Analyzed
- Weakness
- CWE-20CWE-285
- Also known as
- GHSA-p9v8-q5m4-pf46GO-2024-2906
- Sources
- NVDJSONOSV GHSA-p9v8-q5m4-pf46JSONOSV GO-2024-2906JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.0 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | canonical | snapdcpe:2.3:a:canonical:snapd:*:*:*:*:*:*:*:* |
>= 2.51.6, < 2.63.1 | 2.63.1 |
| OSV | Go | github.com/snapcore/snapd | >= 2.51.6, < 2.63.1 | 2.63.1 |
| OSV | Go | github.com/snapcore/snapd | < 0.0.0-20240524114846-68ee9c6aa916 | 0.0.0-20240524114846-68ee9c6aa916 |
| OSV | Go | github.com/snapcore/snapd | all versions |
References
- https://bugs.launchpad.net/snapd/+bug/2065077 · Exploit, Issue Tracking, Patch, WEB, REPORT
- https://github.com/snapcore/snapd/commit/68ee9c6aa916ab87dbfd9a26030690f2cabf1e14 · Patch, FIX
- https://github.com/snapcore/snapd/security/advisories/GHSA-p9v8-q5m4-pf46 · Vendor Advisory
- https://www.cve.org/CVERecord?id=CVE-2024-5138 · Third Party Advisory, WEB, ADVISORY
- https://github.com/canonical/snapd/security/advisories/GHSA-p9v8-q5m4-pf46 · WEB
- https://github.com/canonical/snapd/commit/68ee9c6aa916ab87dbfd9a26030690f2cabf1e14 · WEB
- https://github.com/canonical/snapd · PACKAGE
- https://ubuntu.com/security/CVE-2024-5138 · WEB
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 31 May 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 Jun 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 16 Jan 2025)