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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| debian | bookworm | affected | |
| debian | bullseye | affected | |
| debian | forky | fixed | 2.62-3 |
| debian | sid | fixed | 2.62-3 |
| debian | trixie | fixed | 2.62-3 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| Go | github.com/snapcore/snapd | >=2.51.6,<2.63.1 | 2.63.1 |
| Go | github.com/snapcore/snapd | <0.0.0-20240524114846-68ee9c6aa916 | 0.0.0-20240524114846-68ee9c6aa916 |
| Go | github.com/snapcore/snapd | | |
References
- https://github.com/canonical/snapd/security/advisories/GHSA-p9v8-q5m4-pf46
- https://github.com/canonical/snapd/commit/68ee9c6aa916ab87dbfd9a26030690f2cabf1e14
- https://bugs.launchpad.net/snapd/+bug/2065077
- https://github.com/canonical/snapd
- https://ubuntu.com/security/CVE-2024-5138
- https://www.cve.org/CVERecord?id=CVE-2024-5138
- https://github.com/snapcore/snapd/commit/68ee9c6aa916ab87dbfd9a26030690f2cabf1e14
- https://security-tracker.debian.org/tracker/CVE-2024-5138
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.