CVE-2024-5138

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.

Severity
HIGH
CVSS v3
8.1
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H · source adp
Exploit chance (EPSS)
0.834%
chance of exploitation in the next 30 days
higher than 58.3% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 1
Metasploit modules: 0
Nuclei templates: 0

Weakness

CISA SSVC decision points

Exploitationpoc
Automatableno
Technical impactpartial
Scored2024-08-07

Timeline

  1. 2024-05-31Published by the CNA21:02 UTC
  2. 2024-08-07CISA SSVC decision recorded68 days after publication
  3. 2025-01-16GitHub advisory published (GHSA-p9v8-q5m4-pf46)230 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

GitHub advisory GHSA-p9v8-q5m4-pf46, affected packages:

PackageVulnerable versionsFixed in
Go github.com/snapcore/snapdbefore 0.0.0-20240524114846-68ee9c6aa9160.0.0-20240524114846-68ee9c6aa916
Go github.com/snapcore/snapdfrom 2.51.6 before 2.63.12.63.1

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
canonical snapdfrom 2.51.6 before 2.63.1fixed in 2.63.12.63.1

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources