Home / Canonical Ltd. / snapd / CVE-2024-5138
CVE-2024-5138: is it exploited, and which versions of Canonical Ltd. snapd are affected and fixed?
CVE-2024-5138 is an improper input validation vulnerability in Canonical Ltd. snapd. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:38 UTC). Affected: github.com/snapcore/snapd from 2.51.6 before 2.63.1 and github.com/snapcore/snapd before 0.0.0-20240524114846-68ee9c6aa916 (GitHub advisory GHSA-p9v8-q5m4-pf46). Fixed in 2.63.1 and 0.0.0-20240524114846-68ee9c6aa916 (GitHub advisory GHSA-p9v8-q5m4-pf46). Severity: High (8.1, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 19, 2026, 07:12 UTC and NVD November 19, 2026, 07:29 UTC.
What is CVE-2024-5138?
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.
From the CVE record by canonical, last updated September 6, 2024, 19:48 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Canonical Ltd. | snapd Linux | before 68ee9c6aa916ab87dbfd9a26030690f2cabf1e14 |
As the CVE record by canonical states it, last updated September 6, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Go | github.com/snapcore/snapd | >= 2.51.6, < 2.63.1 | 2.63.1 | GHSA-p9v8-q5m4-pf46 |
| Go | github.com/snapcore/snapd | < 0.0.0-20240524114846-68ee9c6aa916 | 0.0.0-20240524114846-68ee9c6aa916 | GHSA-p9v8-q5m4-pf46 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated January 16, 2025. Summary: CVE-2024-5138: snapd snapctl auth bypass.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| canonical | snapd | from 2.51.6 before 2.63.1 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 08:15 UTC.
How severe is CVE-2024-5138?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H | CISA-ADP |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-5138 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, August 7, 2024)
- EPSS
- 0.83% probability of exploitation activity in the next 30 days, percentile 58.8 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
Where are the vendor advisories and references?
- https://github.com/snapcore/snapd/commit/68ee9c6aa916ab87dbfd9a26030690f2cabf1e14 patch
- https://bugs.launchpad.net/snapd/+bug/2065077 issue-tracking
- https://www.cve.org/CVERecord?id=CVE-2024-5138 issue-tracking
- https://github.com/snapcore/snapd/security/advisories/GHSA-p9v8-q5m4-pf46 issue-tracking
Who found and reported it?
- Rory McNamara from Snyk Security Labs (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- May 19, 2024
- Published
- May 31, 2024, 21:02 UTC
- CVE record updated
- September 6, 2024, 19:48 UTC by canonical
- NVD
- Analyzed, last modified June 17, 2026, 08:15 UTC
- Last checked
- CVE list November 19, 2026, 07:12 UTC; NVD November 19, 2026, 07:29 UTC; KEV December 3, 2026, 12:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect snapd?
- Jul 25, 2024CVE-2024-29069 Canonical snapd: externally Controlled Reference to a Resource in Another Sphere
- Jul 25, 2024CVE-2024-29068 Canonical snapd: improper input validation
- Jun 21, 2024CVE-2020-27352 Canonical Ltd. snapd: privilege escalation (improper privilege management)
- Jan 8, 2024CVE-2022-3328 Canonical Ltd. snapd: race condition
- Sep 1, 2023CVE-2023-1523 Canonical Ltd. snapd: injection
- Feb 17, 2022CVE-2021-4120 Canonical Ltd. snapd: improper input validation
- Feb 17, 2022CVE-2021-44730 Canonical Ltd. snapd: link following (a symlink lets an attacker reach other files)
- Feb 17, 2022CVE-2021-3155 Canonical Ltd. snapd: insecure default permissions
Questions about CVE-2024-5138
Is CVE-2024-5138 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 0.83% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Canonical Ltd. snapd are affected by CVE-2024-5138?
github.com/snapcore/snapd from 2.51.6 before 2.63.1 and github.com/snapcore/snapd before 0.0.0-20240524114846-68ee9c6aa916, per the GitHub advisory GHSA-p9v8-q5m4-pf46. The tables above give every range the sources list.
Which version fixes CVE-2024-5138?
2.63.1 and 0.0.0-20240524114846-68ee9c6aa916, per the GitHub advisory GHSA-p9v8-q5m4-pf46. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-5138?
High (8.1, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2024-5138?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.