An ID Token Should Not Be an LXD Access Token
The most useful way to read CVE-2026-135384 is as a token-type failure at an API boundary. Canonical's advisory says LXD could accept an ID token in place of the access token used to authenticate to its API. That matters because the two token types carry different intended uses and can be subject to different claim and lifetime checks.
The affected Canonical LXD releases are earlier than 5.0.12, 5.21.10, and 6.10.2. The CVE record identifies CWE-287 improper authentication and assigns CVSS 4.0 score 9.2 Critical. The vendor advisory page shows a CVSS 3.1 score of 8.1 High. Both records point to the same authentication weakness and the same fixed release lines.
How LXD uses OIDC
LXD supports OpenID Connect for the web UI and CLI. Once a server is configured with an OIDC issuer, users authenticate through an external identity provider, and the client presents a token to LXD for API access. The server has to validate the token before it can map the caller to a user and apply authorization.
Issuer, signature, and expiry checks establish that the token came from the expected provider and remains valid. They do not establish that the token is the right kind of credential for the API, nor that it was issued for this particular application. CVE-2026-135384 concerns those missing boundaries.
The token-type ambiguity
The official advisory states that an ID token could be accepted where an access token was expected. An ID token is normally used to communicate authentication information about the user to the client. An access token is the credential used to call a protected resource.
That difference is not cosmetic. The advisory says checks meant for the access token, including claim restrictions and shorter lifetime behavior, could be skipped by sending the other token. If a rule is applied to one credential type but the verifier accepts either type, the rule no longer protects the request it was meant to govern.
The failure appears alongside two other conditions in the advisory. Unless oidc.audience was set, a token issued to another application could be accepted. A token that did not name a user could also pass verification and be treated as an empty user name. These conditions can be assessed separately, but an attacker may combine the weakest accepted token with the weakest claim mapping.
Why audience validation belongs here
An audience check ties a token to the intended relying party. Canonical's documentation describes oidc.audience as the expected audience value for the application. The advisory recommends setting it to a value that the identity provider puts only in LXD access tokens.
When that value is absent, a server may know that the token is valid but not that the token belongs to LXD. This is especially important when one provider serves many applications. A token minted for a different service can still carry the correct issuer and signature, while carrying the wrong authorization context.
The workaround is explicit in the advisory: set oidc.audience to reject tokens issued to other applications and ID tokens presented in place of access tokens. Administrators should verify the provider's token configuration rather than assume that every registered client emits the same audience.
The identity mapping problem
The advisory says LXD used the email claim for the user name when oidc.claim was unset. It also says the claim was used even when the provider marked the address as unverified. This creates a second failure path that can matter in deployments using email-based authorization.
If one account can set an unverified address belonging to another user, the provider's authentication result may be correct while LXD's identity interpretation is wrong. The result can be access with another person's permissions. The advisory recommends choosing a claim users cannot edit, such as sub, or configuring the provider to release only verified email addresses.
This claim choice should be documented as part of the server security baseline. A claim that is convenient for humans to recognize is not necessarily suitable for authorization. Stable subject identifiers are designed to identify the account, while display or contact attributes may be editable.
Preconditions for exploitation
The attacker must obtain a signed token from the identity provider configured for the target LXD server. The CVE record describes network attack vectors with no privileges and no user interaction, and marks attack complexity as high. The advisory adds that the operator of another application registered with the same provider might receive a suitable token when a user signs in to that application.
The target must run an affected LXD release and use OIDC in a configuration that exercises the vulnerable checks. A server using only local Unix socket or TLS client authentication is outside this specific OIDC flaw. A server with OIDC enabled but a patched version should not be judged vulnerable solely from its public login page.
Operational impact
The advisory says an authenticated OIDC client has full control of the LXD server in the default configuration where OIDC clients are not sent to OpenFGA or an authorization scriptlet. In deployments that do use those controls, the outcome depends on the identity and network claims attached to the token.
Full control of LXD is a host-level concern. The API can manage instances, storage, networking, and server configuration. An attacker who reaches that surface with the wrong identity may not need a separate exploit for the application after authentication is bypassed.
Fixed releases and configuration
Canonical lists 5.0.12, 5.21.10, and 6.10.2 as patched versions. Upgrade to the fixed release on the deployed support line, then confirm the running version rather than relying on a package download alone. If the upgrade must be staged, the advisory's audience and claim controls can reduce the risk while the deployment remains on an affected version.
Set oidc.audience to an LXD-only value. Set oidc.claim to a non-editable identifier such as sub, or enforce verified email release at the provider. Review the identity-provider registration for every application that shares the issuer and remove tokens or client paths that are no longer needed.
Verification steps
Test a normal LXD access token and confirm that it can authenticate as the intended user. Test a token with the wrong audience and confirm rejection. Test an ID token in the access-token position and confirm rejection. Test an unverified-email mapping in a non-production identity and confirm that it does not resolve to a privileged account.
Keep the results associated with the version and configuration used for the test. The fix changes an authentication boundary, so a successful version upgrade without a token-validation test leaves room for misconfiguration.
Exposure context
The frozen ZoomEye measurement used for this topic recorded 12,271 matches for app="LXD" and no matches for vul.cve="CVE-2026-135384". That figure is a product-fingerprint count. It does not establish that an exposed LXD service uses OIDC, runs an affected release, or accepted a token in the vulnerable way.
References
[1] Canonical LXD security advisory GHSA-v3m9-p36m-qjqc
[2] CVE Program record for CVE-2026-135384
Top comments (0)