GHSA-jrr7-64m9-x984: Duplicate Advisory CVE-2024-5138: Snapd Snapctl Auth Bypass Vulnerability

HIGH
Published
Advisory Summary

GHSA-jrr7-64m9-x984 is a HIGH cve-2024-5138: snapd snapctl auth bypass vulnerability (General Security Weakness) affecting Duplicate Advisory libraries in the Go ecosystem. The issue involves cve-2024-5138: snapd snapctl auth bypass. Remediation is available by upgrading affected packages to version 2.63.1.

GHSA-jrr7-64m9-x984 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-jrr7-64m9-x984
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Duplicate Advisory
Package Ecosystem Go
Published Date
Last Updated

How to Fix GHSA-jrr7-64m9-x984

To remediate this vulnerability, upgrade all affected Duplicate Advisory dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/snapcore/snapd fixed: 2.63.1
Upgrade github.com/snapcore/snapd to 2.63.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/snapcore/snapd

How to Check if You Are Affected

To determine whether your application is affected by GHSA-jrr7-64m9-x984, inspect your project dependencies for Duplicate Advisory:

inspect dependencies for github.com/snapcore/snapd

Analyze the terminal output to locate any version of Duplicate Advisory in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.63.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Duplicate Advisory, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

# Duplicate Advisory This advisory has been withdrawn because it is a duplicate of GHSA-p9v8-q5m4-pf46. This link is maintained to preserve external references. # Original 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.

GHSA-jrr7-64m9-x984 Affected Duplicate Advisory Versions

1 component(s)
Fixed Versions:
2.63.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/snapcore/snapd
Go
≥ 2.51.6
< 2.63.1
2.63.1

References

Frequently Asked Questions

What is GHSA-jrr7-64m9-x984?
GHSA-jrr7-64m9-x984 is a security vulnerability in Duplicate Advisory involving CVE-2024-5138: snapd snapctl auth bypass under General Security Weakness.
Which Duplicate Advisory versions are affected?
Affected versions include releases prior to 2.63.1 across affected packages: github.com/snapcore/snapd.
What version fixes GHSA-jrr7-64m9-x984?
Upgrading to 2.63.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/snapcore/snapd affected?
Yes, github.com/snapcore/snapd is affected in releases prior to 2.63.1. Upgrade your dependency to 2.63.1 or later.
What CWE is associated with GHSA-jrr7-64m9-x984?
GHSA-jrr7-64m9-x984 is classified under General Security Weakness.
How can I check Go dependencies for GHSA-jrr7-64m9-x984?
Run the dependency tree command: 'inspect dependencies for github.com/snapcore/snapd'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-jrr7-64m9-x984",
  "modified" : "2025-01-16T17:19:00Z",
  "published" : "2024-05-31T21:30:55Z",
  "withdrawn" : "2025-01-16T17:19:00Z",
  "aliases" : [ ],
  "summary" : "Duplicate Advisory: CVE-2024-5138: snapd snapctl auth bypass",
  "details" : "# Duplicate Advisory\nThis advisory has been withdrawn because it is a duplicate of GHSA-p9v8-q5m4-pf46. This link is maintained to preserve external references.\n\n# Original Description\nThe 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.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/snapcore/snapd"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.51.6"
      }, {
        "fixed" : "2.63.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/snapcore/snapd/security/advisories/GHSA-p9v8-q5m4-pf46"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-5138"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/snapcore/snapd/commit/68ee9c6aa916ab87dbfd9a26030690f2cabf1e14"
  }, {
    "type" : "WEB",
    "url" : "https://bugs.launchpad.net/snapd/+bug/2065077"
  }, {
    "type" : "WEB",
    "url" : "https://www.cve.org/CVERecord?id=CVE-2024-5138"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-01-16T17:19:00Z",
    "nvd_published_at" : "2024-05-31T21:15:09Z"
  }
}