CVE-2024-5138
Description
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.
Severity
HIGH
CVSS v3
8.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H · source adp
Exploit chance (EPSS)
0.834%
chance of exploitation in the next 30 days
higher than 58.3% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-20: Improper Input Validation
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2024-08-07 |
Timeline
- 2024-05-31Published by the CNA21:02 UTC
- 2024-08-07CISA SSVC decision recorded68 days after publication
- 2025-01-16GitHub advisory published (GHSA-p9v8-q5m4-pf46)230 days after publication
Exploit and advisory records
GitHub advisory GHSA-p9v8-q5m4-pf46, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Go github.com/snapcore/snapd | before 0.0.0-20240524114846-68ee9c6aa916 | 0.0.0-20240524114846-68ee9c6aa916 |
| Go github.com/snapcore/snapd | from 2.51.6 before 2.63.1 | 2.63.1 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| canonical snapd | from 2.51.6 before 2.63.1fixed in 2.63.1 | 2.63.1 |
References
- https://bugs.launchpad.net/snapd/+bug/2065077
- https://github.com/snapcore/snapd/commit/68ee9c6aa916ab87dbfd9a26030690f2cabf1e14
- https://github.com/snapcore/snapd/security/advisories/GHSA-p9v8-q5m4-pf46
- https://www.cve.org/CVERecord?id=CVE-2024-5138
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2024-5138'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2024-5138'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2024-5138'curl 'https://api.contrastcyber.com/cve_products/CVE-2024-5138'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).