cve.bz

CVE-2024-5138 canonical snapd: Improper Input Validation

8.1 highExploit referenceEPSS 0.8%Fix available

High (8.1) in canonical snapd. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/snapcore/snapd 0.0.0-20240524114846-68ee9c6aa916, 2.63.1.

On this page
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

CVSS 3.1

8.1 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 59th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2024-08-07. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2024-5138 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2024-5138?via=ask-ai-copy and https://cve.bz/cve/CVE-2024-5138?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2024-5138 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Canonical Ltd. snapdbefore 68ee9c6aa916ab87dbfd9a26030690f2cabf1e14

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-p9v8-q5m4-pf46Gogithub.com/snapcore/snapd>=2.51.6 <2.63.12.63.1
GHSA-p9v8-q5m4-pf46Gogithub.com/snapcore/snapd<0.0.0-20240524114846-68ee9c6aa9160.0.0-20240524114846-68ee9c6aa916
GO-2024-2906Gogithub.com/snapcore/snapdall versionsno fix published

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12snapdno fix listedDEBIAN-CVE-2024-5138
Debian13, 14snapd2.62-3DEBIAN-CVE-2024-5138
Ubuntu22.04:LTS, 24.04:LTS, Pro:16.04:LTS and 2 moresnapdno fix listedUBUNTU-CVE-2024-5138

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON