Quick answer

What this guide helps you do

Check Canonical LXD for CVE-2026-112816, verify the installed snap and exposed HTTPS API, apply patched releases and secure remote access.

Quick answer

Canonical has confirmed CVE-2026-112816, a critical authentication bypass in LXD’s HTTPS management API. The problem was disclosed in late October 2026. A client that can reach the affected API could authenticate as a trusted identity using the public portion of that identity’s certificate, without holding its private key. Depending on the privileges of the identity being impersonated, that could allow control over instances or even the host.

If you use LXD, check your installed version, patch it and restrict access to its HTTPS listener. Canonical also identified the related issue in MicroCloud. If you do not run LXD, this particular LXD vulnerability does not apply to you.

The safe sequence for a home server is:

identify LXD and its snap channel
→ inspect the configured HTTPS listener
→ check which networks can reach it
→ arrange backups and console access
→ refresh to the patched version on your channel
→ verify instance health and remote access
→ reduce remote API exposure and review trust

Important: Closing the network listener is useful exposure reduction, but Canonical states that there is no configuration-only workaround for the authentication flaw. Installing a patched version is required.

1. What the vulnerability actually means

LXD is a system-container and virtual-machine manager. It can be controlled locally through a Unix socket, or remotely using an HTTPS API when a network listener has been configured.

The LXD advisory explains that the TLS connection proved ownership of the key belonging to the first certificate presented by a client. The vulnerable authentication code then checked other certificates in the presented chain against trusted identities. This created a way to pass an existing trusted public certificate as part of the chain and be treated as that identity.

An attacker therefore needs network reachability to the affected HTTPS listener, but does not need the corresponding trusted private key. That distinction is why this is an authentication bypass, not merely a weak-password problem. The official advisory assigns the issue critical severity (CVSS 10.0).

The affected paths include the main API and other certificate-based trust checks. Cluster members, metrics access and some agent operations may be relevant depending on your configuration. A reachable API with broad trusted privileges deserves urgent attention.

A host is not automatically compromised because it ran an affected release. Treat the advisory as a reason to patch and inspect exposure; investigate for an actual incident only if logs, access history or other evidence justify it.

2. Check whether LXD is actually installed

Run these commands on the Ubuntu host:

snap list lxd
command -v lxc
lxc version
snap info lxd

The first command reports the LXD snap when installed. A command-not-found or no-matching-snap result is useful evidence that this installation method is absent. If you installed LXD through another package source, check that source and its security advisory separately.

For a package check on Ubuntu:

dpkg-query -W 'lxd*' 2>/dev/null

The presence of an LXC-related command alone does not prove you are running the Canonical LXD daemon. Record the daemon version, packaging method and snap tracking channel, not just the client binary.

If you run MicroCloud, check it separately:

snap list microcloud
snap info microcloud

Do not install either product merely to run these checks.

3. Compare the installed version with Canonical’s fixes

Canonical’s 28 October security announcement lists the following fixed LXD snap releases, published to stable channels on 29 October 2026:

Snap channelPatched LXD version
6/stable6.10.1
5.21/stable5.21.9
5.0/stable5.0.11
4.0/stable4.0.15

The related MicroCloud fixes are 3.4.1 on 3/stable and 2.1.5 on 2/stable.

The upstream LXD advisory identifies affected versions in the relevant tracks, including 6.9, 5.21.8, 5.0.10 and 4.0.14. Versions and availability can move on after this guide’s 9 November 2026 publication date, so compare against the latest official notice and the version offered in your current track.

Do not jump from a 5.x track to 6.x just because the latter has a higher version number. Track upgrades can have compatibility implications; a patched release in your existing supported track is the normal security-update target.

4. Determine whether the remote LXD API is exposed

By default, LXD uses a local Unix socket and does not expose its HTTPS API over the network. It becomes remotely accessible when the server’s HTTPS address is configured.

Inspect the setting on the LXD host:

lxc config get core.https_address
lxc config show

An empty HTTPS address is consistent with the default local-only configuration. A value such as :8443 normally means listening on all interfaces on that port. An explicit LAN IP and port restrict the listening address, but do not by themselves prove access is restricted to trusted clients.

Check which addresses and ports are actually listening:

sudo ss -ltnp
ip -brief address
sudo ufw status verbose

Inspect the entry that corresponds to the configured HTTPS port. If your host uses nftables rather than UFW, inspect the applicable nftables policy as well. Router port forwarding, VPN routing, other firewalls, proxies and IPv6 may change which machines can reach the listener.

From another machine you control, test the intended management endpoint using the real address and port:

nc -vz -w 3 SERVER_LAN_IP 8443

Replace the example address and port before running it. A successful TCP connection demonstrates reachability, not successful authentication. A failed connection from one location does not establish that the API is unreachable from every other network. Do not scan unrelated networks.

If LXD is clustered, or you use MicroCloud, investigate the cluster’s documented network and management requirements before changing any listener or firewall rules.

5. Update LXD safely to the patched release

First make the change recoverable. Record the snap channel and version, running instances and storage/cluster state:

snap list lxd
snap info lxd
lxc list
lxc storage list
lxc network list

For clustered installations, also record the member state:

lxc cluster list

Use existing instance and configuration backup procedures and keep a separate, tested copy of irreplaceable application data. Snapshotting an instance alone is not a substitute for an independent backup. Arrange local console or hypervisor access, and plan for the daemon’s restart during the refresh.

For a normal snap-based LXD installation, Canonical’s instruction is:

sudo snap refresh lxd

Only if MicroCloud is installed, apply its corresponding patched channel update too:

sudo snap refresh microcloud

Do not issue a MicroCloud refresh on a system that does not use MicroCloud. In a cluster, follow Canonical’s coordinated cluster update procedure and confirm the versions of all members rather than treating one node as an isolated server.

After updating, verify the result:

snap list lxd
lxc version
lxc list
snap services lxd

Compare the installed version against the fixed release for the track and check that expected instances and storage are accessible. If you use a remote LXD client, test it again from its intended management network. Check service logs if the daemon or instances do not return normally; do not blindly remove the snap or its data to recover from an update.

If your system does not yet offer a patched release in its configured channel, consult Canonical’s release advisory and your snap channel status. Restrict API network access while arranging a supported fix rather than switching to an unverified build.

6. Reduce remote API access after patching

Best for a single home server: if remote LXD administration is unnecessary, keep the API available only locally through the Unix socket. If it is needed, limit the listener to a management interface and allow only trusted networks through the firewall or a private VPN. Avoid forwarding the management API directly from your router to the public internet.

You can inspect the configured address without changing it:

lxc config get core.https_address

For a standalone, locally administered LXD host, the standard LXD configuration command can clear an unnecessary HTTPS listener:

lxc config unset core.https_address

This is an optional hardening action, not part of patching. Do not run it from your only remote LXD session: it can cut off remote administration, and clustered systems may rely on API connectivity. Confirm console/local socket access first and inspect the cluster requirements.

Review configured certificate trust entries after updating:

lxc config trust list

Identify old or unnecessary certificates and review any project restrictions. Treat fingerprints, token enrolment settings and trust-store data as security-sensitive. Remove a trust entry only after you know what device or automation uses it; this is separate from fixing the vulnerability and can disrupt legitimate access.

Restrict the ability of untrusted local users to access the privileged LXD socket too. Network hardening does not remove local administrative risk.

7. Verify the security posture

Use this checklist after patching:

  • Installed LXD/MicroCloud version is at or beyond the official fixed version in its tracked channel.
  • Instances and required storage are accessible following the refresh.
  • A console or local recovery route exists.
  • The HTTPS listener address matches the intended management design.
  • Host and upstream firewalls permit only intended management networks.
  • No unexpected router port forwarding exposes the API publicly.
  • Remote management still works from an authorised client if required.
  • Trusted certificates and project access have been reviewed without removing legitimate entries.
  • Backups and the normal maintenance process still work.

Do not publish a screenshot of your trust store, certificate tokens, server secrets or detailed firewall configuration with identifying addresses.

8. Are Proxmox LXC containers affected?

Not automatically. The terms LXC and LXD are related but not interchangeable:

ProductRoleDoes this LXD API advisory apply automatically?
Canonical LXDManages containers and VMs through its daemon and optional HTTPS APIYes, when an affected LXD version/path is in use
Proxmox VE LXCRuns Linux containers under Proxmox’s own management stackNo, not merely because a guest is an LXC container
MicroCloudUses LXD in an integrated cluster platformSee the corresponding MicroCloud advisory and fixes
IncusSeparate project with its own releases and advisoriesCheck the Incus project’s own security notices

A Proxmox host can still be affected if LXD was installed separately on that host or in a guest, but Proxmox’s native container management is not the Canonical LXD HTTPS API. Do not apply LXD snap updates to a Proxmox-only host in the belief that it patches Proxmox’s container manager.

For background, see Proxmox vs Docker, How to Create an Ubuntu LXC Container in Proxmox and Proxmox VM vs LXC.

9. Problems to avoid

Exposing 8443 to the internet to make a UI work: first decide whether a private network or local-only access meets the requirement.

Assuming a firewall rule is a complete fix: Canonical specifically states no configuration-based workaround corrects the authentication bypass; the patched daemon is necessary.

Changing snap tracks during emergency patching: use the supported fixed release in the existing channel, unless Canonical documents a different recovery path.

Deleting trust entries during the update: record what each entry does first. Certificate rotation and access cleanup should be deliberate operations after the core patch.

Assuming every LXC installation is LXD: inspect the software and management API actually in use.

Official sources


Recap

Patch first, verify exposure second, and keep the remote management API on trusted networks. The LXD certificate-chain authentication bypass is critical for affected reachable daemons, but it is not a blanket vulnerability in every Proxmox LXC container.