Skip to content
OpenAdvisories
High · 8.1 CVE-2024-5138 EUVD-2025-0101GHSA-p9v8-q5m4-pf46GO-2024-2906

CVE-2024-5138: snapd snapctl auth bypass

Published May 31, 2024 · Updated Sep 6, 2024 · Assigned by canonical

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 products

VendorProductAffectedFixed
Canonical snapd < 68ee9c6aa916ab87dbfd9a26030690f2cabf1e14 68ee9c6aa916ab87dbfd9a26030690f2cabf1e14

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 snapd 2.62-3 —
Debian 13 snapd 2.62-3 —
Debian 12 snapd No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS snapd No fix yet —
Ubuntu 22.04 LTS snapd No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS snapd No fix yet —
Ubuntu Pro 18.04 LTS snapd No fix yet —
Ubuntu Pro 16.04 LTS snapd No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/snapcore/snapd >= 2.51.6, < 2.63.1 2.63.1 GHSA-p9v8-q5m4-pf46
Go github.com/snapcore/snapd < 0.0.0-20240524114846-68ee9c6aa916 0.0.0-20240524114846-68ee9c6aa916 GHSA-p9v8-q5m4-pf46
Go github.com/snapcore/snapd all versions — GO-2024-2906

Advisories 1

References