CVE-2024-6156 lxd CA certificate sign check bypass
Attackers can bypass LXD PKI authentication if their certificate is in the trust store, allowing unauthorized access to the container management service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-6156?
CVE-2024-6156 is a low-severity authentication bypass vulnerability in Canonical Ltd. LXD, published on 5 Dec 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
Mark Laing discovered that LXD's PKI mode, until version 5.21.2, could be bypassed if the client's certificate was present in the trust store.
Weakness: CWE-295
Which versions are affected by CVE-2024-6156?
3 open source packages ship an affected version, including github.com/canonical/lxd. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/canonical/lxd Go | All versions | 0.0.0-20240708073652-5a492a3f0036 |
github.com/canonical/lxd Go | All versions | 0.0.0-20240708073652-5a492a3f0036 |
github.com/canonical/lxd Go | All versions | 0.0.0-20240708073652-5a492a3f0036 |
Products include Canonical Lxd.
How do I fix CVE-2024-6156?
Upgrade github.com/canonical/lxd to 0.0.0-20240708073652-5a492a3f0036 or later.
Upgrade, and rotate credentials and sessions that may have been exposed. More about Authentication bypass.
Is CVE-2024-6156 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-6156 exists.
Other vulnerabilities in Canonical Ltd. LXD
- CVE-2026-66897 Instance template path traversal allows arbitrary host file write as root
- CVE-2026-62420 Cross-project cluster migration bypasses project restrictions via cluster notification flag
- CVE-2026-63293 Arbitrary File Read/Write: metadata.yaml symlink in image allows host filesystem access as root
- CVE-2026-63294 Root RCE via image backup.yaml symlink
- CVE-2026-63296 Project restriction bypass via instance migration config override
Sources
Also known as DEBIAN-CVE-2024-6156, GHSA-4c49-9fpc-hc3v, GO-2024-3312, UBUNTU-CVE-2024-6156.