CVE-2024-6156
published 2024-12-06CVE-2024-6156: 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.
PriorityP413low3.8CVSS 3.1
AVLACLPRLUINSCCLINAN
EPSS
0.16%
5.4th percentile
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.
Affected
10 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| canonical | lxd | >= 4.0.0 < 4.0.10 | 4.0.10 |
| canonical | lxd | >= 5.0.0 < 5.0.4 | 5.0.4 |
| canonical | lxd | >= 5.1 < 5.21.2 | 5.21.2 |
| canonical_ltd | lxd | >= 4.0 < 4.0.10 | 4.0.10 |
| canonical_ltd | lxd | >= 4.0 < 5.0.4 | 5.0.4 |
| canonical_ltd | lxd | >= 4.0 < 5.21.2 | 5.21.2 |
| canonical_ltd | lxd | >= 4.0 < 6.1 | 6.1 |
| debian | incus | < incus 6.0.3-1 (forky) | incus 6.0.3-1 (forky) |
| debian | lxd | < incus 6.0.3-1 (forky) | incus 6.0.3-1 (forky) |
| github.com | canonical_lxd | >= 0 < 0.0.0-20240708073652-5a492a3f0036 | 0.0.0-20240708073652-5a492a3f0036 |
CVSS provenance
nvdv3.13.8LOWCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N
osv3.8LOW
vendor_debian3.8LOW
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Debian
CVE-2024-6156: incus - Mark Laing discovered that LXD's PKI mode, until version 5.21.2, could be bypass...
vendor_debian·2024·CVSS 3.8
CVE-2024-6156 [LOW] CVE-2024-6156: incus - Mark Laing discovered that LXD's PKI mode, until version 5.21.2, could be bypass...
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.
Scope: local
forky: resolved (fixed in 6.0.3-1)
sid: resolved (fixed in 6.0.3-1)
trixie: resolved (fixed in 6.0.3-1)
OSV
CA certificate sign check bypass in github.com/canonical/lxd
osv·2024-12-09
CVE-2024-6156 CA certificate sign check bypass in github.com/canonical/lxd
CA certificate sign check bypass in github.com/canonical/lxd
CA certificate sign check bypass in github.com/canonical/lxd
OSV
lxd CA certificate sign check bypass
osv·2024-12-09
CVE-2024-6156 [LOW] lxd CA certificate sign check bypass
lxd CA certificate sign check bypass
### Summary
If a `server.ca` file is present in `LXD_DIR` at LXD start up, LXD is in "PKI mode". In this mode, only TLS clients that have a CA-signed certificate should be able to authenticate with LXD.
We have discovered that if a client that sends a non-CA signed certificate during the TLS handshake, that client is able to authenticate with LXD if their certificate is present in the trust store.
- The LXD Go client (and by extension `lxc`) does not send non-CA signed certificates during the handshake.
- A manual client (e.g. `cURL`) might send a non-CA signed certificate during the handshake.
#### Versions affected
LXD 4.0 and above.
### Details
When PKI mode was added to LXD it was intended that all client and server certificates *must* be signed
GHSA
lxd CA certificate sign check bypass
ghsa·2024-12-09
CVE-2024-6156 [LOW] CWE-295 lxd CA certificate sign check bypass
lxd CA certificate sign check bypass
### Summary
If a `server.ca` file is present in `LXD_DIR` at LXD start up, LXD is in "PKI mode". In this mode, only TLS clients that have a CA-signed certificate should be able to authenticate with LXD.
We have discovered that if a client that sends a non-CA signed certificate during the TLS handshake, that client is able to authenticate with LXD if their certificate is present in the trust store.
- The LXD Go client (and by extension `lxc`) does not send non-CA signed certificates during the handshake.
- A manual client (e.g. `cURL`) might send a non-CA signed certificate during the handshake.
#### Versions affected
LXD 4.0 and above.
### Details
When PKI mode was added to LXD it was intended that all client and server certificates *must* be signed
OSV
CVE-2024-6156: Mark Laing discovered that LXD's PKI mode, until version 5
osv·2024-12-06·CVSS 3.8
CVE-2024-6156 [LOW] CVE-2024-6156: Mark Laing discovered that LXD's PKI mode, until version 5
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.
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
2024-12-06
Published