Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: 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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-5138
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 22:07 UTC · Revision 1

Source evidence

CVE-2024-5138

core-osv · Original source

Published 31 May 2024, 21:02 UTC

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.

osv:CVE-2024-5138
Complete source record
{
  "id": "7faec80ad2cfe40a0821a30c67542ae4bc23f9b56250bfe6bf9c6a61395e6a57",
  "url": "https://osv.dev/vulnerability/CVE-2024-5138",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2024-5138",
    "summary": "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.",
    "evidence": "osv:CVE-2024-5138",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-5138",
      "aliases": [
        "CVE-2024-5138",
        "GHSA-p9v8-q5m4-pf46",
        "GO-2024-2906"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/canonical/snapd",
              "type": "GIT",
              "events": [
                {
                  "introduced": "93552979bad10e6f45fc28cce99ebfe6c69b7a01"
                },
                {
                  "fixed": "3ba5d67ca332f9fcb408ad0ad3cc70b3d67869ca"
                },
                {
                  "fixed": "68ee9c6aa916ab87dbfd9a26030690f2cabf1e14"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:canonical:snapd:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.51.6"
                      },
                      {
                        "fixed": "2.63.1"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "range": [
                      {
                        "fixed": "68ee9c6aa916ab87dbfd9a26030690f2cabf1e14"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            },
            {
              "repo": "https://github.com/snapcore/snapd",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "68ee9c6aa916ab87dbfd9a26030690f2cabf1e14"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "68ee9c6aa916ab87dbfd9a26030690f2cabf1e14"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  }
                ]
              }
            }
          ],
          "versions": [
            "untagged-ec50ee5bfb45daefc236",
            "2.15.2",
            "2.15",
            "2.14.2.16.04",
            "2.14.1",
            "2.14",
            "2.13",
            "2.12",
            "2.11",
            "2.0.10",
            "2.0.9",
            "2.0.8",
            "2.0.7",
            "2.0.6",
            "2.0.5",
            "2.0.4",
            "2.0.3",
            "2.0",
            "1.9.4",
            "1.9.3",
            "1.9.2",
            "1.9.1",
            "1.9",
            "ppa",
            "1.7.3+20160310ubuntu1",
            "1.7.3+20160308ubuntu1",
            "1.7.3+20160303ubuntu4",
            "1.7.3+20160303ubuntu3",
            "1.7.3+20160303ubuntu2",
            "1.7.3+20160303ubuntu1",
            "1.7.3+20160225ubuntu1",
            "1.7.2+20160223ubuntu1",
            "1.7.2+20160204ubuntu1",
            "1.7.2+20160113ubuntu1",
            "1.7.2ubuntu1",
            "1.7ubuntu1",
            "1.6ubuntu1",
            "1.5ubuntu1",
            "1.4ubuntu1",
            "1.3ubuntu1",
            "1.2-0ubuntu1",
            "1.1.2-0ubuntu1",
            "1.1.1-0ubuntu1",
            "1.1-0ubuntu1",
            "1.0.1-0ubuntu1",
            "1.0-0ubuntu1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-5138.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:24.052588486Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5138.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-5138",
        "https://bugs.launchpad.net/snapd/+bug/2065077",
        "https://github.com/snapcore/snapd/security/advisories/GHSA-p9v8-q5m4-pf46",
        "https://www.cve.org/CVERecord?id=CVE-2024-5138",
        "https://github.com/snapcore/snapd/commit/68ee9c6aa916ab87dbfd9a26030690f2cabf1e14",
        "https://github.com/snapcore/snapd"
      ],
      "provider_metadata": {
        "cna_assigner": "canonical",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5138.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-5138",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 490464,
  "published_at": "2024-05-31T21:02:19.979+00:00"
}