Vulnerability · Published May 31, 2024 · Assigned by canonical

CVE-2024-5138

High 8.1

In plain English

A high-severity improper input validation in snapd from Canonical Ltd.. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 58% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)8.1High
Exploit odds (30 days)0.8%top 42.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12snapdno fix listedDEBIAN-CVE-2024-5138
Debian:13snapd2.62-3DEBIAN-CVE-2024-5138
Debian:14snapd2.62-3DEBIAN-CVE-2024-5138
Gogithub.com/snapcore/snapd2.63.1GHSA-p9v8-q5m4-pf46
Gogithub.com/snapcore/snapd0.0.0-20240524114846-68ee9c6aa916GHSA-p9v8-q5m4-pf46
Gogithub.com/snapcore/snapdno fix listedGO-2024-2906
Ubuntu:22.04:LTSsnapdno fix listedUBUNTU-CVE-2024-5138
Ubuntu:24.04:LTSsnapdno fix listedUBUNTU-CVE-2024-5138

Affected products (as reported)

VendorProductVersions
Canonical Ltd. snapd 0 – before 68ee9c6aa916ab87dbfd9a26030690f2cabf1e14

Weakness: CWE-20 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

References