{"schemaVersion":3,"id":"CVE-2024-5138","aliases":["UBUNTU-CVE-2024-5138","DEBIAN-CVE-2024-5138","GHSA-p9v8-q5m4-pf46","GO-2024-2906"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2024-05-31T21:02:19.979Z","modified":"2024-09-06T19:48:49.508Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","exploitability":7.2,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","exploitability":7.2,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":4,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","exploitability":6.4,"impact":2.3,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00834,"percentile":0.56951,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.007000000000000062,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00827},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00834,"percentile":0.56951}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00827,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00834,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00834,"percentile":0.56951}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"REF_1EF21B361147A3B3","name":"Exploit Reference (bugs.launchpad.net)","source":"reference","url":"https://bugs.launchpad.net/snapd/+bug/2065077","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-20","name":"Improper Input Validation","description":"The product receives input or data, but it does\n        not validate or incorrectly validates that the input has the\n        properties that are required to process the data safely and\n        correctly.","type":"weakness","status":"Stable","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/20.html"}],"affected":[{"vendor":"canonical ltd.","product":"snapd","name":"snapd","label":"snapd","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 68ee9c6aa916ab87dbfd9a26030690f2cabf1e14","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 68ee9c6aa916ab87dbfd9a26030690f2cabf1e14","eol":null,"hubHref":"/vendor/canonical_ltd/snapd"},{"vendor":"canonical","product":"snapd","name":"snapd","label":"snapd","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.51.6, < 2.63.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.51.6, < 2.63.1","eol":null,"hubHref":"/vendor/canonical/snapd"},{"vendor":"debian","product":"snapd","name":"snapd","label":"snapd","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/snapd","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 2.62-3","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 2.62-3","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"snapd","name":"snapd","label":"snapd","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/snapd","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github.com/snapcore","product":"snapd","name":"github.com/snapcore/snapd","label":"snapd","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/snapcore/snapd","purlType":"golang","versions":[{"text":"≥ 2.51.6, < 2.63.1","noFixRecorded":false,"fixedIn":null},{"text":"< 0.0.0-20240524114846-68ee9c6aa916","noFixRecorded":false,"fixedIn":null},{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"≥ 2.51.6, < 2.63.1 | < 0.0.0-20240524114846-68ee9c6aa916 | All versions (No fix recorded)","eol":null,"hubHref":null}],"affectedCount":5,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/snapcore/snapd/commit/68ee9c6aa916ab87dbfd9a26030690f2cabf1e14","label":"github.com/snapcore/snapd/commit/68ee9c6aa916ab87dbfd9a26030690f2cabf1e14","hostname":"github.com","tags":["Patch","FIX"]},{"url":"https://bugs.launchpad.net/snapd/+bug/2065077","label":"bugs.launchpad.net/snapd/+bug/2065077","hostname":"bugs.launchpad.net","tags":["Issue Tracking","WEB","REPORT","Exploit","Patch"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-5138","label":"www.cve.org/CVERecord?id=CVE-2024-5138","hostname":"www.cve.org","tags":["Issue Tracking","REPORT","WEB","Advisory","Third Party Advisory"]},{"url":"https://github.com/snapcore/snapd/security/advisories/GHSA-p9v8-q5m4-pf46","label":"github.com/snapcore/snapd/security/advisories/GHSA-p9v8-q5m4-pf46","hostname":"github.com","tags":["Issue Tracking","REPORT","Vendor Advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-5138","label":"ubuntu.com/security/CVE-2024-5138","hostname":"ubuntu.com","tags":["REPORT","WEB"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-5138","label":"security-tracker.debian.org/tracker/CVE-2024-5138","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://github.com/canonical/snapd/security/advisories/GHSA-p9v8-q5m4-pf46","label":"github.com/canonical/snapd/security/advisories/GHSA-p9v8-q5m4-pf46","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/canonical/snapd/commit/68ee9c6aa916ab87dbfd9a26030690f2cabf1e14","label":"github.com/canonical/snapd/commit/68ee9c6aa916ab87dbfd9a26030690f2cabf1e14","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/canonical/snapd","label":"github.com/canonical/snapd","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2024-05-31T21:02:19.979Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-09-06T19:48:49.508Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":43,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T15:06:48.163Z","stale":false,"partial":false}}