Auditing LXD OIDC Tokens Before and After the Patch
An upgrade fixes CVE-2026-135384 at the code level. It does not prove that the identity provider, audience, claims, and authorization rules now express the intended security policy. LXD administrators should treat the patch as one part of a token-validation audit.
Canonical lists LXD releases before 5.0.12, 5.21.10, and 6.10.2 as affected. The official advisory describes improper authentication in OIDC bearer-token verification. The CVE record assigns CWE-287 and CVSS 4.0 score 9.2 Critical, while the GitHub advisory page displays 8.1 High under CVSS 3.1.
What the pre-patch code accepted
The advisory says issuer, signature, and expiry were checked. Without oidc.audience, the token was not bound to LXD. A token issued to another application at the same provider could pass. A token without a user could authenticate as an empty user. An ID token could be accepted in place of an access token, and an unverified email claim could become the user name when oidc.claim was unset.
These are visible at different layers. Audience is an application binding. Token type is a credential-role constraint. The user claim is an identity mapping. An audit should inspect each layer separately because a server can be correct in one place and weak in another.
Inventory the LXD servers
Collect the running server version in addition to the client version. Include cluster members and any management endpoint that accepts OIDC. Record the package or snap channel, update state, and the host or network path used by administrators.
Mark affected versions for upgrade. For every OIDC-enabled server, record the issuer, client ID, audience setting, claim setting, group claim, authorization mechanism, and whether external management access is allowed. Avoid copying secret values into the audit notes.
The advisory's wording about Incus and its equivalent LXD software fields is a reminder to use the product-specific record. The audit should cite the LXD advisory and CVE record, not infer another product's scope from copied explanatory text.
Review the identity provider
List every application registered with the issuer used by LXD. For each, determine which audience is placed in access tokens and whether ID tokens can carry the same claims. Verify that the LXD audience is unique to the intended client flow.
Check how the provider marks email verification and whether users can edit their address. If LXD maps users by email, the provider policy must prevent an unverified or user-controlled address from resolving to a privileged account. The advisory recommends a non-editable claim such as sub or restricting release to verified email addresses.
Review the authorization model next. A default OIDC configuration that grants full control makes any authentication mistake more consequential. OpenFGA or a scriptlet may limit permissions, but it does not repair a wrong user identity. Confirm that group and network claims are evaluated on the token type that actually reaches the API.
Test with controlled tokens
Use a non-production LXD environment and a test identity provider where possible. Authenticate with the intended LXD access token and confirm the expected user and permissions. Present a token for a different application and confirm rejection. Present an ID token in the access-token position and confirm rejection.
Create a test identity with an unverified email that matches a privileged test user. Confirm that the patched server does not treat it as the privileged identity. Repeat with the intended verified claim to ensure normal access remains available.
For network-claim deployments, test a restricted account from an address outside its allowed network. Confirm that switching token type does not bypass the restriction. Preserve the version, configuration snapshot, token metadata, and result without storing reusable secrets.
Review historical identities
Look for LXD users and authorization mappings created from email addresses. Determine whether those addresses were verified at the provider and whether the account is still needed. Do not delete production identities solely because their names look unusual. Correlate them with provider records and administrator approval.
A server that allowed an empty user name may have created authentication success records without a normal identity. Review OIDC login events for missing or anomalous subjects. The sources reviewed for this article do not claim active exploitation, so the review should seek evidence rather than assume a compromise.
Patch and re-audit
Upgrade to 5.0.12, 5.21.10, or 6.10.2 according to the deployed support line. Verify the server version after the service restarts. Re-run the audience, token-type, claim, and authorization tests.
If an upgrade must wait, apply the advisory's recommended audience and claim controls. Restrict management access where feasible. Document these as temporary measures and set a date for the fixed release.
Keep the audit reproducible
Save the inventory scope, server versions, configuration keys, test identities, and expected results. A future reviewer should be able to repeat the same checks and compare outcomes. This is more useful than a one-time statement that the server is patched.
The audit should also preserve the distinction between exposure and compromise. A ZoomEye product match is not a vulnerable-host confirmation. A login record is not proof of exploitation. Each conclusion needs its own evidence.
Exposure context
The frozen ZoomEye observation recorded 12,271 matches for app="LXD" and zero for vul.cve="CVE-2026-135384". The inventory can use the product query to find systems for internal review. The observations do not identify OIDC deployments or affected versions.
References
[1] Canonical LXD security advisory GHSA-v3m9-p36m-qjqc
[2] CVE Program record for CVE-2026-135384


