CVSS 10.0 LXD: MicroCloud flaw allows attackers to impersonate trusted clients without private key

A critical bug in Canonical's LXD and MicroCloud allows an attacker to log in as a trusted client without having that client's private key. To do this, the attacker had to connect to his HTTPS API over the network and obtain a public certificate from a trusted client.

Once inside, the attacker will act as this client, having access to the cluster and its virtual machines. If the account impersonated is privileged, the attacker could gain "root access to the host computer," Canonical said.

The vulnerability, tracked as CVE-2026-112816, has a maximum CVSS score of 10.0, and Canonical has released patched versions of both products.

How the flaw works

LXD and MicroCloud allow remote clients to access their APIs through mutual TLS, a setup where the client provides a certificate to prove who they are. A client is trusted if its certificate is in the server's trust store, a list of identities that the server accepts.

The error was in the way the server validated this certificate. It compared each certificate sent by the client against the trust store, but the TLS connection only proves that the client owns the private key for the first certificate in the chain, the leaf. The rest of the chain is what the client chooses to attach.

Cybersecurity

This way, an attacker can take a trusted client's public certificate, which is not private, attach it to the chain behind their own, and the server will accept it as that client.

Who is affected?

To exploit the vulnerability, two things are required: network access to the HTTPS API and a public client certificate that is already trusted by the server.

The LXD standalone server does not provide this API by default. It only listens on the local socket unless the administrator enables the network API with the core.https_address setting.

MicroCloud, which connects several machines with LXD into one cluster, has a specific weak point. Canonical said that an attacker who is able to intercept a member's public certificate when they join the cluster will then be able to log in as that member.

The CVE entry identifies the affected versions of LXD 4.0.14, 5.0.10, 5.21.8, and 6.9, each of which is prior to the next fixed release. Canonical lists these fixed-bind versions:

Product Link channel Fixed version
LHD 6/stable 6.10.1
LHD 5.21/stable 5.21.9
LHD 5.0/stable 5.0.11
LHD 4.0/stable 4.0.15
MicroCloud 3/stable 3.4.1
MicroCloud 2/stable 2.1.5

The error did not start at Canonical. The Incus Project, which started as an offshoot of the LXD community, reported this, and Canonical confirmed that LXD was also affected. Incus fixed the same flaw in version 7.6.0.

Ubuntu's own LXD archive packages are listed as unaffected or not shipped, so the patched releases are snapshots.

There is no public indication that the vulnerability was exploited in an attack. The CVE report contains the US CISA's October 30 assessment that the vulnerability was not exploited; it is not on CISA's list of known exploited vulnerabilities, and no working exploit has been published.

What to do

Update LXD and MicroCloud to fixed versions. For instant installation, run sudo snap Refresh lxd and sudo snap Refresh Microcloud.

Cybersecurity

Canonical said that at the time of the advisory, fixed point releases of LXD were still being distributed from the candidate channel to the stable version, so check the version you actually have after the update rather than assuming the fix has arrived.

Canonical's recommendations do not provide a workaround for LXD. Because the attack requires network access to the API, restricting access to it reduces the risk until you update it. The Incus Project, which reported the same bug, stated that there is no configuration fix and that the only step is to restrict network access for the listener.

Incus users should upgrade to version 7.6.0, which fixes this flaw as well as 17 other security issues.