November 27, 2026
LXD vulnerabilities CVE-2026-135384 and CVE-2026-127163 in Canonical LXD OIDC authentication and the pylxd client

Canonical has patched two LXD vulnerabilities: CVE-2026-135384, an OIDC authentication flaw in the LXD server, and CVE-2026-127163, a TLS verification gap in the pylxd Python client. The LXD flaw scores 8.1 (CVSS v3.1) in Canonical’s advisory and 9.2 (CVSS v4.0) in the CVE record, and no exploitation or public proof-of-concept has been confirmed for either bug. Servers with OIDC enabled should move to LXD 5.0.12, 5.21.10 or 6.10.2, and applications that use pylxd should install 2.4.3.

CVE ID Product Flaw type CVSS Exploitation / KEV Fixed version
CVE-2026-135384 Canonical LXD (server) Improper authentication of OIDC tokens (CWE-287) 8.1 (CVSS v3.1, vendor) / 9.2 (CVSS v4.0, CVE record) No confirmed exploitation See Affected and fixed versions
CVE-2026-127163 Canonical pylxd (Python client library) Improper certificate validation on WebSocket streams (CWE-295) 7.4 (CVSS v3.1, vendor) / 9.1 (CVSS v4.0, CVE record) No confirmed exploitation 2.4.3 or later

What are the new LXD vulnerabilities?

Canonical published both advisories on November 26, 2026. The first affects the LXD daemon itself. The second affects pylxd, the library that Python tools use to drive LXD over its REST API.

CVE-2026-135384: OIDC tokens are not bound to the LXD server

The flaw sits in how LXD checks OpenID Connect (OIDC) tokens. According to Canonical’s LXD advisory GHSA-v3m9-p36m-qjqc, the server accepts a JWT bearer token or a web UI cookie after it checks the issuer, the signature and the expiry. Unless the oidc.audience setting is configured, nothing ties the token to that specific server.

The advisory lists three results:

  • LXD accepts tokens that the same identity provider issued to a different application.
  • It accepts signed tokens that name no user, and it authenticates the bearer with an empty user name.
  • It accepts ID tokens in place of access tokens. Those tokens can skip checks meant for access tokens, such as the allowed-subnets claim and the shorter lifetime.

A fourth problem is separate. When oidc.claim is unset, LXD takes the user name from the email claim, even if the provider marks that address as unverified.

The CVSS vectors rate the attack as network-based, with high complexity, and with no privileges or user interaction required. The attacker does need a JWT signed by the configured OIDC issuer. The advisory notes that this includes operators of other applications registered with the same provider.

Canonical describes the impact this way:

  • With the default configuration (no OpenFGA or authorization scriptlet), any authenticated OIDC client has full control of the server.
  • Where OpenFGA or a scriptlet authorizes users by email, a user who can set an unverified email on their provider account can be authorized as the owner of that address.
  • A user restricted by the allowed-subnets claim can reach the API from any network.

The CVE-2026-135384 record sums this up as access to the LXD API, unauthorized control, or user impersonation.

A fix that started in Incus

Canonical marks its advisory “Reported from Incus.” The text is copied from the Incus advisory GHSA-cp5w-98j2-x2hv, so it still uses Incus names such as the incus.allowed_subnets claim. Incus, the community fork of LXD, fixed the same flaw in version 7.7.0 and lists no CVE for it. The Incus advisory credits Anthropic’s OSS Scanner with the discovery and Stephane Graber with the fix. The LXD CVE record names Graber as coordinator.

CVE-2026-127163: pylxd skips TLS checks on WebSocket streams

CVE-2026-127163 is a client-library problem, not a bug in the LXD server. The pylxd advisory GHSA-3wgp-hmvf-xj8h covers applications that connect to a remote HTTPS LXD endpoint with server verification turned on. The WebSocket connections used for command execution and events do not inherit that setting.

An active network attacker can then pose as the LXD server on those streams. The attacker can receive the stdin that the application sends to a command. They can also replace the stdout and stderr that the application reads back. The CVE-2026-127163 record describes this as the ability to “read command stdin and spoof command output.”

The advisory sets out these preconditions:

  • The application uses a remote HTTPS endpoint with Instance.execute() or events, not only a local Unix socket.
  • The attacker can intercept or redirect the WebSocket connections while the verified HTTP requests still reach the real server.
  • No LXD account or stolen client key is needed.

Ordinary automated execution needs no user interaction. The report claims no availability impact. It also does not claim arbitrary authenticated REST access or unconditional remote code execution on LXD.

Technical details

The pylxd HTTP session applies server verification. The separate WebSocket ssl_options, however, carry only the client certificate and key. Server verification, CA trust and the pinned fingerprint never reach them.

The bundled ws4py 0.6.0 client then fills the gap with insecure defaults. When cert_reqs is absent, it sets check_hostname=False and verify_mode=ssl.CERT_NONE. As a result, it accepts any peer certificate. Client.events() shares the same options, so the reporter treats it as the same root cause.

Artur Chlebicki reported the flaw. The advisory notes that he used AI assistance in the report.

Are the LXD vulnerabilities being exploited?

No exploitation in the wild has been confirmed for either CVE. None of the three advisories includes a proof-of-concept. The LXD and Incus advisories give no reproduction steps, and the pylxd report offers only a narrative attack description. We found no source that lists either CVE in the CISA Known Exploited Vulnerabilities catalog.

Affected and fixed versions

Canonical’s advisory lists LXD 5.0 and later as affected. The CVE record splits this into three ranges that each start at 5.0. LXD 4.0 is not listed. For pylxd, the GitHub advisory and the CVE record disagree on scope, so both are shown.

Product Branch Affected versions Fixed version
LXD 5.0 Before 5.0.12 5.0.12
LXD 5.21 Before 5.21.10 5.21.10
LXD 6 Before 6.10.2 6.10.2
pylxd 2.4 Up to and including 2.4.2 (GitHub advisory); 2.4.2 only (CVE record) 2.4.3
Incus (related fix) 7 Below 7.7.0 7.7.0

How to fix the LXD vulnerabilities

Update each LXD server to the fixed release for its branch: 5.0.12, 5.21.10 or 6.10.2. Most installs use the snap package. Canonical’s earlier LXD security advisories told snap users to run sudo snap refresh lxd within their channel. Check the version after the refresh to confirm the fix landed.

For pylxd, upgrade every Python environment to 2.4.3. That release appeared on PyPI on November 26, 2026. Pinned requirements files and container images need the new version too.

Neither CVE is in CISA KEV, so no federal due date applies.

If you cannot patch yet

For CVE-2026-135384, the advisory gives two workarounds:

  • Set oidc.audience to a value that the identity provider includes only in access tokens issued for this server. This rejects tokens issued to other applications and ID tokens used in place of access tokens.
  • Set oidc.claim to a claim users cannot edit, such as sub. Another option is to configure the provider to release only verified email addresses.

The pylxd advisory lists no workaround for CVE-2026-127163.

How to check if you are affected

An LXD server is exposed to CVE-2026-135384 only when OIDC authentication is configured. Check whether the server has an OIDC issuer set, and whether oidc.audience and oidc.claim are empty. Then compare the installed LXD version against the table above.

For CVE-2026-127163, check the pylxd version in each environment. The risk applies to code that calls Instance.execute() or Client.events() against a remote HTTPS endpoint. Tools that only use the local Unix socket fall outside the stated preconditions.

Why it matters

The OIDC flaw hits hardest where one identity provider serves many applications. In that setup, the advisory says operators of the other applications can obtain tokens that LXD accepts. Under the default authorization setup, those tokens grant full control of the server.

The two scoring systems also tell different stories. Canonical’s GitHub advisories rate both flaws High under CVSS v3.1. The CVE records rate both Critical under CVSS v4.0. Scanners that sort by v4.0 will rank them near the top of the queue.

This is also the second LXD fix this month that came over from Incus. The Hacker News reported that CVE-2026-112816, a CVSS 10.0 client-authentication flaw, followed the same path and was fixed in LXD 6.10.1. Teams that track Incus advisories may get early warning of LXD issues.

Some gaps remain. The copied LXD advisory still uses Incus setting names, and Canonical has not said whether LXD 4.0 was checked. The pylxd advisory names only the exec and event streams.

Timeline

Date Event
November 26, 2026 pylxd 2.4.3 released on PyPI
November 26, 2026 Canonical publishes LXD advisory GHSA-v3m9-p36m-qjqc and pylxd advisory GHSA-3wgp-hmvf-xj8h
November 26, 2026 CVE-2026-135384 and CVE-2026-127163 published in the CVE list (UTC)
November 27, 2026 Incus advisory GHSA-cp5w-98j2-x2hv shown as published on GitHub

Leave a Reply

Your email address will not be published. Required fields are marked *