The server itself will let the hacker in. A critical error has compromised the security of virtual machines.

Depov

Moderator
Staff member
MODERATOR
ULTIMATE
SUPREME
PREMIUM
MEMBER
Joined
Feb 18, 2025
Messages
790
Reaction score
1,510
A simple public certificate was sufficient to bypass server security and gain access to virtual machines. Canonical has confirmed a critical vulnerability in LXD and MicroCloud that allows an attacker to impersonate a trusted client without knowing the private key. The vulnerability has been assigned the identifier CVE-2026-112816 and a maximum CVSS 4.0 score of 10.

LXD manages system containers and virtual machines on Linux, while MicroCloud clusters multiple servers. For remote management, the platforms support an HTTPS API with mutual TLS authentication. The server verifies the client's certificate and matches the provided data against a list of trusted identities. The vulnerability violated the very principle of this verification, allowing the user to assume another's digital identity.

The cause was an incorrect handling of the TLS certificate chain. The server compared all certificates received from the client against a trusted list, even though cryptographic verification only confirmed ownership of the private key for the first certificate in the chain. An attacker could append a trusted client's public certificate after their own, tricking the server into accepting the connection on behalf of another user.

Exploitation requires network access to the HTTPS API and a trusted client's public certificate. A private key, which typically verifies connection rights, is not required. After successful authentication, the attacker gains the spoofed account's privileges, including access to managed virtual machines. With sufficiently high privileges, full control over the host with root privileges is possible.


The bug poses a particular threat to MicroCloud. When a new member joins the cluster, an attacker can intercept the server's public TLS certificate and then use the obtained information to spoof the member. By default, regular LXD is only accessible via a local Unix socket. A remote attack becomes possible if the administrator has allowed network connections via the core.https_address parameter.

The issue affects LXD branches 4.0.14, 5.0.10, 5.21.8, and 6.9. Fixes were released on October 29th in versions 4.0.15, 5.0.11, 5.21.9, and 6.10.1, respectively. Builds 2.1.5 and 3.4.1 have been prepared for MicroCloud. The bug was initially discovered by developers at Incus, an independent fork of LXD. A similar vulnerability was fixed in Incus 7.6.0, along with other security issues.

As of November 2, there are no public confirmations of exploitation of CVE-2026-112816 in real-world attacks. The vulnerability is also not listed in the CISA catalog of actively exploited bugs. Canonical recommends immediately updating LXD and MicroCloud using the commands sudo snap refresh lxd and sudo snap refresh microcloud. Since patches were rolled out gradually, it is important to check your installed version after updating. Restricting network access to the API before installing patches can mitigate the risk.
 
Top Bottom