CVE-2024-6156 lxd CA certificate sign check bypass

Low 3.8 Published Updated

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.

PackageAffectedFixed in
github.com/canonical/lxd GoAll versions0.0.0-20240708073652-5a492a3f0036
github.com/canonical/lxd GoAll versions0.0.0-20240708073652-5a492a3f0036
github.com/canonical/lxd GoAll versions0.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.

Sources

Also known as DEBIAN-CVE-2024-6156, GHSA-4c49-9fpc-hc3v, GO-2024-3312, UBUNTU-CVE-2024-6156.

Is CVE-2024-6156 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free