Skip to content
Fencer Vulns
high 8.1

CVE-2024-5138 json

CVE-2024-5138: snapd snapctl auth bypass

published 2024-05-31 2 y ago modified 2026-07-08 4 mo ago also EUVD-2025-0101 , GHSA-p9v8-q5m4-pf46 , GO-2024-2906

cvss
8.1
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.8%
EPSS 0.8% chance of exploitation in 30 days, percentile 57%
public exploits
0
none known

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.

Patch / fix

  • go github.com/snapcore/snapd 0.0.0-20240524114846-68ee9c6aa916, 2.63.1
  • Canonical Ltd. snapd 68ee9c6aa916ab87dbfd9a26030690f2cabf1e14
  • snapd Debian 14, Debian 13 2.62-3

debian advisories DEBIAN-CVE-2024-5138

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-5138 updated cvss 5.5

snapd: Privilege escalation may lead to a Denial of Service

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
Proof of concept is public
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.83% chance of exploitation in the next 30 days, higher than 57% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • bugs.launchpad.net https://bugs.launchpad.net/snapd/+bug/2065077 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CISA ADP 3.1 8.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
GitHub 3.1 4.0 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CNA 3.1 8.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

Affected packages

ecosystem package affected fixed in
go github.com/snapcore/snapd
>=2.51.6, <2.63.1
<0.0.0-20240524114846-68ee9c6aa916
all versions
2.63.1
0.0.0-20240524114846-68ee9c6aa916

Affected products

  • Canonical Ltd. snapd
  • canonical snapd

Classification

Weakness
  • CWE-20 Improper Input Validation
  • CWE-285 Improper Authorization

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.