# CVE-2024-5138: CVE-2024-5138: snapd snapctl auth bypass

- Severity: High 8.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.83%, higher than 58% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-05-31T21:02:19.979Z
- Modified: 2026-07-08T07:14:03.911Z
- Also known as: GHSA-p9v8-q5m4-pf46, GO-2024-2906
- Weaknesses: CWE-20, CWE-285
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: canonical

## 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.

(As written by CVE List.)

## Affected

- snapd: before 68ee9c6aa916ab87dbfd9a26030690f2cabf1e14
- canonical snapd: before 68ee9c6aa916ab87dbfd9a26030690f2cabf1e14; from 2.51.6 before 2.63.1
- github.com/snapcore/snapd (Go): from 2.51.6 before 2.63.1; before 0.0.0-20240524114846-68ee9c6aa916; all versions

## Every score

- CISA-ADP: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H`
- GitHub: CVSS:3.1 4.0 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://bugs.launchpad.net/snapd/+bug/2065077> (exploit, issue-tracking, patch, report, web)
- <https://github.com/snapcore/snapd/commit/68ee9c6aa916ab87dbfd9a26030690f2cabf1e14> (fix, patch)
- <https://www.cve.org/CVERecord?id=CVE-2024-5138> (advisory, issue-tracking, third-party-advisory, web)
- <https://github.com/snapcore/snapd/security/advisories/GHSA-p9v8-q5m4-pf46> (issue-tracking, vendor-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)

## Sources

- CVE List: [CVE-2024-5138](https://www.cve.org/CVERecord?id=CVE-2024-5138), CVE Terms of Use, modified 2024-09-06
- GitHub Advisory Database: [GHSA-p9v8-q5m4-pf46](https://github.com/advisories/GHSA-p9v8-q5m4-pf46), CC-BY-4.0, modified 2026-07-08
- Go Vulnerability Database: [GO-2024-2906](https://pkg.go.dev/vuln/GO-2024-2906), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2024-5138](https://nvd.nist.gov/vuln/detail/CVE-2024-5138), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-5138 · Whole record: https://cve.day/CVE-2024-5138.json · Rebuilt by cve.day 2026-11-25T22:58:41.345Z
