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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | snapd | no fix listed | DEBIAN-CVE-2024-5138 |
| Debian:13 | snapd | 2.62-3 | DEBIAN-CVE-2024-5138 |
| Debian:14 | snapd | 2.62-3 | DEBIAN-CVE-2024-5138 |
| Go | github.com/snapcore/snapd | 2.63.1 | GHSA-p9v8-q5m4-pf46 |
| Go | github.com/snapcore/snapd | 0.0.0-20240524114846-68ee9c6aa916 | GHSA-p9v8-q5m4-pf46 |
| Go | github.com/snapcore/snapd | no fix listed | GO-2024-2906 |
| Ubuntu:22.04:LTS | snapd | no fix listed | UBUNTU-CVE-2024-5138 |
| Ubuntu:24.04:LTS | snapd | no fix listed | UBUNTU-CVE-2024-5138 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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