CVE-2024-5138
Snapd snapctl Privilege Escalation Allowance
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.
INFO
Published Date :
May 31, 2024, 9:15 p.m.
Last Modified :
Aug. 26, 2025, 5:21 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
---|---|---|---|---|---|---|
CVSS 3.1 | HIGH | 134c704f-9b21-4f2e-91b3-4a467353bcc0 |
Solution
- There is no known solution at this time.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-5138
.
URL | Resource |
---|---|
https://bugs.launchpad.net/snapd/+bug/2065077 | Exploit Issue Tracking Patch |
https://github.com/snapcore/snapd/commit/68ee9c6aa916ab87dbfd9a26030690f2cabf1e14 | Patch |
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 |
https://bugs.launchpad.net/snapd/+bug/2065077 | Exploit Issue Tracking Patch |
https://github.com/snapcore/snapd/commit/68ee9c6aa916ab87dbfd9a26030690f2cabf1e14 | Patch |
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 |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-5138
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-5138
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-5138
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-5138
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Aug. 26, 2025
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:canonical:snapd:*:*:*:*:*:*:*:* versions from (including) 2.51.6 up to (excluding) 2.63.1 Added Reference Type CVE: https://bugs.launchpad.net/snapd/+bug/2065077 Types: Exploit, Issue Tracking, Patch Added Reference Type Canonical Ltd.: https://bugs.launchpad.net/snapd/+bug/2065077 Types: Exploit, Issue Tracking, Patch Added Reference Type CVE: https://github.com/snapcore/snapd/commit/68ee9c6aa916ab87dbfd9a26030690f2cabf1e14 Types: Patch Added Reference Type Canonical Ltd.: https://github.com/snapcore/snapd/commit/68ee9c6aa916ab87dbfd9a26030690f2cabf1e14 Types: Patch Added Reference Type CVE: https://github.com/snapcore/snapd/security/advisories/GHSA-p9v8-q5m4-pf46 Types: Vendor Advisory Added Reference Type Canonical Ltd.: https://github.com/snapcore/snapd/security/advisories/GHSA-p9v8-q5m4-pf46 Types: Vendor Advisory Added Reference Type CVE: https://www.cve.org/CVERecord?id=CVE-2024-5138 Types: Third Party Advisory Added Reference Type Canonical Ltd.: https://www.cve.org/CVERecord?id=CVE-2024-5138 Types: Third Party Advisory -
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://bugs.launchpad.net/snapd/+bug/2065077 Added Reference https://github.com/snapcore/snapd/commit/68ee9c6aa916ab87dbfd9a26030690f2cabf1e14 Added Reference https://github.com/snapcore/snapd/security/advisories/GHSA-p9v8-q5m4-pf46 Added Reference https://www.cve.org/CVERecord?id=CVE-2024-5138 -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Sep. 06, 2024
Action Type Old Value New Value Added CWE CISA-ADP CWE-20 Added CVSS V3.1 CISA-ADP AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H -
CVE Modified by [email protected]
Jun. 19, 2024
Action Type Old Value New Value -
CVE Received by [email protected]
May. 31, 2024
Action Type Old Value New Value Added 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. Added Reference Canonical Ltd. https://github.com/snapcore/snapd/commit/68ee9c6aa916ab87dbfd9a26030690f2cabf1e14 [No types assigned] Added Reference Canonical Ltd. https://bugs.launchpad.net/snapd/+bug/2065077 [No types assigned] Added Reference Canonical Ltd. https://www.cve.org/CVERecord?id=CVE-2024-5138 [No types assigned] Added Reference Canonical Ltd. https://github.com/snapcore/snapd/security/advisories/GHSA-p9v8-q5m4-pf46 [No types assigned]