CVE-2024-5138: canonical ltd. snapd Improper Input Validation
Vulnerability summary
CVE-2024-5138 is a high (CVSS 8.1) Improper Input Validation vulnerability in canonical ltd. snapd. EPSS estimates a 0.83% chance of exploitation in the next 30 days, higher than 56.8% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 31-05-2024PublishedVulnerability first disclosed.
- 06-09-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
- OSV · GoEcosystem advisory · calculated4.0MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LDiffers
- NVDNIST8.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
EPSS trend
Probability
0.83%
Chance of exploitation in the next 30 days
Percentile
57%
Versus all other CVEs
30-day change
+0.01 pp
From 0.83% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (bugs.launchpad.net)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Canonical1 product
- snapd≥ 2.51.6, < 2.63.1
Canonical ltd.1 product
- snapd< 68ee9c6aa916ab87dbfd9a26030690f2cabf1e14
Debian1 product
- snapdAll versions (No fix recorded) | < 2.62-3
Github.com/snapcore1 product
- snapd≥ 2.51.6, < 2.63.1 | < 0.0.0-20240524114846-68ee9c6aa916 | All versions (No fix recorded)
Ubuntu1 product
- snapdAll versions (No fix recorded)
5 vendors · 5 products
References
9 links- github.com/snapcore/snapd/security/advisories/GHSA-p9v8-q5m4-pf46Issue TrackingREPORTVendor Advisory
- github.com/canonical/snapdPACKAGE