DEV Community

jeffrey
jeffrey

Posted on

The LXD OIDC Patch Plan: 5.0.12, 5.21.10, and 6.10.2

The LXD OIDC Patch Plan: 5.0.12, 5.21.10, and 6.10.2

CVE-2026-135384 has a clear fixed-release boundary, but the repair also requires configuration checks. Canonical lists LXD 5.0.12, 5.21.10, and 6.10.2 as patched versions for an improper authentication flaw in OIDC bearer-token verification. Administrators should plan the upgrade around the deployed release line and verify the identity path after the service restarts.

The CVE record identifies CWE-287 and assigns CVSS 4.0 score 9.2 Critical. The GitHub advisory entry displays 8.1 High under CVSS 3.1. The difference should be documented in the change record, but it does not change the affected versions, the authentication impact, or the fixed release list.

What the patch addresses

The advisory says LXD checked an OIDC token's issuer, signature, and expiry. Unless oidc.audience was set, the server did not bind the token to LXD. A token from the same provider for another application could therefore be accepted. The advisory also describes a token without a user name being authenticated with an empty name, an ID token being accepted in place of an access token, and unverified email claims being used for the user name when oidc.claim was unset.

The fixed releases are intended to remove these accepting paths. The rest of the security work is to ensure the deployment uses the intended provider, audience, claim, and authorization model after the binary changes.

Identify the release line first

Use the LXD version and packaging records to place each server in the 5.0, 5.21, or 6.10 line. Confirm whether the package, snap, or source build is within an affected range. A version displayed by a client can differ from the server's running version, so collect the server value through an authenticated management path.

For systems outside these lines, consult Canonical support and the CVE record rather than applying another branch's patch by assumption. For a supported branch, the target is the fixed release listed by the vendor. The fixed release should be installed through the normal package or snap channel and followed by a service restart if the deployment requires one.

Build the upgrade order

Prioritize internet-reachable management interfaces and servers with broad OIDC authorization first. The advisory says an authenticated OIDC client has full control in the default configuration where clients are not routed through OpenFGA or a scriptlet. A delegated setup may reduce the blast radius, but an affected authentication path still needs remediation.

Group servers by evidence available: version confirmed, OIDC enabled, provider shared with other applications, email-based identities, and management exposure. This produces a defensible order without claiming that every product match is exploitable. Include cluster members and recovery nodes, since a repaired primary with an older peer can leave another management path available.

Apply temporary controls if needed

The advisory recommends setting oidc.audience to a value that the provider places only in LXD access tokens. It also recommends setting oidc.claim to a value users cannot edit, such as sub, or configuring the provider to release only verified email addresses.

These controls should be documented as temporary risk reduction. Test them with the same provider and client flow that production uses. A value copied from a different application's configuration is not sufficient unless the provider actually places it in LXD access tokens. An ID token flow must be tested separately from the normal access-token flow.

Administrators should also review access paths. If external management is not required, remove the exposure. If it is required, restrict it to trusted networks and preserve access for authorized administrators. Firewall changes are compensating controls and do not replace the fixed release.

Validate after the patch

After the upgrade, query the running server version and confirm the expected build. Test a normal OIDC login with an account that has the correct LXD permissions. Test a token with the wrong audience and verify that it is rejected. Test an ID token where an access token is expected and verify rejection. Test an unverified email identity against a non-production account to confirm the configured claim mapping behaves as intended.

Preserve the test evidence with the release and configuration snapshot. If the server uses multiple applications at one provider, test a token from a neighboring client. The purpose is to confirm the boundary that the advisory says was missing while also checking that the new package starts.

Review authorization after upgrade

Authentication repair does not automatically correct every mapping decision. Review OpenFGA or scriptlet rules, group claims, identity-provider groups, and user records created from email addresses. If the deployment relies on email, make sure the provider releases only verified addresses. If it uses a subject claim, confirm the subject is stable across provider accounts.

The advisory describes the issue as copied from an Incus advisory while listing LXD software and patched versions. That wording should not be used to broaden the product scope. Treat the LXD advisory, LXD documentation, and CVE record as the product-specific basis for the change.

Monitoring and rollback

Monitor authentication failures and successes around the deployment window. A burst of failures can indicate an audience or claim mismatch after the change. A successful login from an unexpected application suggests the configuration still needs review.

Keep a rollback plan that restores the previous service state only under an approved incident process. Rolling back to an affected release reopens the authentication weakness. If an upgrade fails, the safer immediate state is usually a restricted management interface plus the documented compensating controls, not an indefinite return to the vulnerable version.

Exposure context

The frozen ZoomEye observation recorded 12,271 matches for app="LXD" and zero for vul.cve="CVE-2026-135384". The product count is useful for finding inventory and validating change coverage. It does not confirm that a host uses OIDC or that it is running a vulnerable version.

References

[1] Canonical LXD security advisory GHSA-v3m9-p36m-qjqc

[2] CVE Program record for CVE-2026-135384

[3] LXD 6.10.2 release notes

[4] LXD server configuration reference

Top comments (0)