A maximum-severity flaw in Canonical’s LXD and MicroCloud let attackers impersonate trusted clients using only a public certificate. Patch and lock down API access now.
Canonical has patched a maximum-severity vulnerability in LXD and MicroCloud that let attackers impersonate trusted clients without ever holding their private keys. An attacker only needed network access to the HTTPS API and a copy of a trusted client’s public certificate, which is not secret by design.
Once inside, the attacker could act as that client, with access to the cluster and its virtual machines. Moreover, if the impersonated client held privileged access, the attacker could gain root access to the host machine, according to Canonical.
The flaw is tracked as CVE-2026-112816 and carries a CVSS score of 10.0. Canonical has released fixed versions of both products.
How the Flaw Works
LXD is Canonical’s system container and virtual machine manager. MicroCloud builds on it by linking several LXD machines into a single cluster. Both products let remote clients reach their APIs over mutual TLS (mTLS).
In mTLS, the client presents a certificate to prove its identity. The server then checks that certificate against its trust store, which is the list of identities it accepts. If the certificate appears there, the client is trusted.
The problem was in how the server performed that check. During a TLS handshake, a client can send a chain of certificates. However, the handshake only proves that the client owns the private key for the first certificate in that chain, known as the leaf. Every other certificate in the chain is simply whatever the client chooses to attach.
LXD and MicroCloud compared every certificate in the chain against the trust store, not just the leaf. As a result, an attacker could:
- Present their own certificate, for which they hold the private key, as the leaf.
- Attach a trusted client’s public certificate further down the chain.
- Pass the trust check, because the server found the trusted certificate somewhere in the chain.
In effect, the server confused “this client attached a trusted certificate” with “this client is the trusted client.” That distinction sits at the heart of certificate-based authentication, and this bug erased it.
Who Is Affected
Exploitation requires two conditions: network access to the HTTPS API and the public certificate of a client the server already trusts.
Standalone LXD servers do not expose the network API by default. Out of the box, LXD listens only on a local socket. The risk appears when an administrator enables remote access through the core.https_address setting, which is common in managed and multi-host environments.
MicroCloud clusters face a more specific risk. Canonical warned that an attacker who captures a member’s public certificate while it joins the cluster can later log in as that member. Therefore, environments where cluster traffic crosses untrusted or shared networks deserve extra attention.
The CVE record lists LXD versions 4.0.14, 5.0.10, 5.21.8 and 6.9 as affected, along with earlier releases in each line. Canonical has published these fixed snap versions:
| Product | Snap Channel | Fixed Version |
|---|---|---|
| LXD | 6/stable | 6.10.1 |
| LXD | 5.21/stable | 5.21.9 |
| LXD | 5.0/stable | 5.0.11 |
| LXD | 4.0/stable | 4.0.15 |
| MicroCloud | 3/stable | 3.4.1 |
| MicroCloud | 2/stable | 2.1.5 |
Ubuntu’s own archive packages of LXD are listed as not affected or not shipped. Consequently, the snap releases carry the fix.
Found Through the Incus Fork
The bug did not originate in a Canonical report. The Incus project, a community fork of LXD, discovered and reported the flaw. Canonical then confirmed that LXD shared the same weakness. Incus fixed the issue in version 7.6.0, so Incus users should update as well.
This highlights a useful reality of open-source ecosystems. Forks often share code with their parent projects, so a flaw in one can expose the other. Security teams that run either product should track advisories from both.
Is It Being Exploited?
So far, there is no public evidence of attacks. A U.S. CISA assessment in the CVE record, dated October 30, states that the flaw is not known to be exploited. It does not appear in CISA’s Known Exploited Vulnerabilities catalog, and no working public exploit exists.
Nevertheless, organizations should not wait. The technique is simple to understand, and public certificates are easy to obtain in many environments. As a result, the window between disclosure and a working exploit could be short.
What to Do Now
Update immediately. On snap installations, run:
sudo snap refresh lxd
sudo snap refresh microcloud
Verify the installed version. Canonical noted that the fixed LXD point releases were still moving from the candidate channel to stable when it published its advisory. Therefore, confirm the version you actually have after refreshing rather than assuming the fix arrived.
Restrict network access to the API. Canonical has not provided a configuration workaround for LXD, and the Incus project confirmed that no configuration fix exists. Until you patch, limit access to the HTTPS listener to trusted management networks through firewalls, VPNs or network segmentation.
Review whether the network API is needed. If a standalone LXD server does not require remote management, consider disabling core.https_address entirely.
Audit recent activity. Review API logs for unexpected client activity, new instances, configuration changes or unusual access times, especially from clients that rarely connect.
The Broader Lesson for Security Teams
This vulnerability is a reminder that strong cryptography only works when the verification logic is correct. Mutual TLS is widely considered a robust authentication method. However, a single mistake in how a server interprets the certificate chain undermined it completely. The private keys stayed safe, yet attackers could still gain trusted access.
For organizations across the UAE and GCC, this lesson carries particular weight. Many enterprises, government entities and service providers in the region operate private cloud and on-premises virtualization platforms to meet data residency and sovereignty requirements. These platforms often rely on certificate-based trust between management systems, automation tools and cluster nodes.
Consequently, security leaders should treat management APIs as high-value assets. Keep them off untrusted networks, segment them from general infrastructure, and include them in regular penetration testing. Additionally, track open-source components and their forks as part of supply chain risk management. When an identity check fails at the infrastructure layer, every workload above it inherits the risk.