deniz.in

Markets

Weather

Loading weather

· via dev.to (home feed)

LXD OIDC bearer-token flaw CVE-2026-135384 fixed in 5.0.12, 5.21.10 and 6.10.2

Canonical has patched an improper-authentication flaw in LXD's OIDC bearer-token verification. Administrators need to upgrade to 5.0.12, 5.21.10 or 6.10.2 and then recheck audience and claim settings.

LXD OIDC bearer-token flaw CVE-2026-135384 fixed in 5.0.12, 5.21.10 and 6.10.2

Canonical has shipped fixed releases of LXD — 5.0.12, 5.21.10, and 6.10.2 — for CVE-2026-135384, an improper authentication vulnerability (CWE-287) in how the container and virtual machine manager verifies OpenID Connect bearer tokens. According to a write-up on dev.to, installing the patched package is only half of the remediation: deployments also have to re-examine their OIDC configuration, because the flaw partly lived in settings that the binary update does not set for you.

What the flaw allowed

As dev.to summarizes from the Canonical advisory, LXD's token checks covered the issuer, the signature, and the expiry of an OIDC token, but when the oidc.audience option was left unset, nothing tied the token to LXD specifically. That meant a token issued by the same identity provider for a completely different application could be used to authenticate against LXD.

The advisory describes several further gaps in the same code path: a token carrying no user name was authenticated with an empty name, an ID token could be accepted where an access token was expected, and unverified email claims could be used as the user name when oidc.claim was not configured.

The impact is significant. In the default configuration, where clients are not routed through OpenFGA or a scriptlet, dev.to reports that an authenticated OIDC client effectively gains full control of the LXD instance.

The severity ratings disagree depending on where you look. The CVE record assigns a CVSS 4.0 score of 9.2 (Critical), while the GitHub advisory lists 8.1 High under CVSS 3.1. Dev.to notes the discrepancy should be documented in change records, but it does not alter the affected versions, the authentication impact, or the list of fixed releases.

Planning the upgrade

The first step is placing each server on its release line — 5.0, 5.21, or 6.10 — using package or snap records rather than the version a client displays, since the two can differ. The server version should be collected through an authenticated management path, dev.to advises. For deployments outside these lines, the recommendation is to consult Canonical support and the CVE record rather than assuming a patch from another branch applies.

Sequencing matters. Dev.to suggests prioritizing internet-reachable management interfaces and servers with broad OIDC authorization, and grouping servers by confirmed version, OIDC usage, shared providers, email-based identities, and exposure. Cluster members and recovery nodes belong in the plan too: a repaired primary running alongside an older peer can leave an unpatched management route in place.

Interim controls

For systems that cannot upgrade immediately, the advisory recommends setting oidc.audience to a value the provider places only in LXD access tokens, and setting oidc.claim to a value users cannot edit, such as sub. Alternatively, the provider can be configured to release only verified email addresses. Dev.to cautions that these are temporary risk-reduction measures that must be tested against the real provider and client flow — a value copied from another application's configuration does nothing unless the provider actually embeds it in LXD tokens. Restricting or removing external management exposure helps as a compensating control but does not replace the fixed release.

Verifying the fix

After upgrading, administrators should confirm the running server version, test a normal OIDC login, then deliberately test failure cases: a token with the wrong audience should be rejected, an ID token offered in place of an access token should be rejected, and unverified email identities should behave as the claim mapping intends. Where one provider serves multiple applications, testing a token from a neighboring client confirms the audience boundary now holds. Authorization mappings — OpenFGA or scriptlet rules, group claims, and email-derived user records — still need review, since fixing authentication does not correct mapping decisions.

Two scope caveats from dev.to are worth noting. The advisory text describes the issue as copied from an Incus advisory while listing LXD software and patched versions, so the wording should not be used to widen the product scope. And a frozen ZoomEye observation cited in the write-up recorded 12,271 hosts matching LXD, with zero tagged with this CVE — useful for inventory, but not proof that any given host uses OIDC or runs a vulnerable version.

Why it matters

LXD manages containers and virtual machines, so an authentication bypass in its management plane is close to a worst-case outcome: an attacker with any valid token from the shared identity provider can potentially gain full control. The root cause — missing audience binding — is a common OIDC deployment mistake that reaches well beyond this project, making the advisory a useful checklist for any service that accepts bearer tokens. Finally, the fact that the patched binary still requires manual configuration review cuts both ways: skipping the review can leave the weakness open, while setting audience and claim values carelessly can lock legitimate users out.

  • #security
  • #lxd
  • #oidc
  • #containers
  • #vulnerability

Related posts