DEV Community

johnettagaweraks
johnettagaweraks

Posted on

LXD OIDC Bypass: What Full Control Means Without Authorization Delegation

LXD OIDC Bypass: What Full Control Means Without Authorization Delegation

CVE-2026-135384 becomes a control-plane incident when an affected LXD server grants broad access to any successfully authenticated OIDC client. Canonical's advisory says that default configuration exists when OIDC clients are not sent to OpenFGA or an authorization scriptlet. The authentication decision then carries most of the security boundary.

LXD releases before 5.0.12, 5.21.10, and 6.10.2 are affected. The CVE record lists CWE-287 improper authentication and a CVSS 4.0 score of 9.2 Critical. The GitHub advisory page displays 8.1 High under CVSS 3.1. The difference in scoring models matters less than the consequence described by the vendor.

The authentication gap

The advisory says LXD checked issuer, signature, and expiry. Unless oidc.audience was set, it did not tie the token to LXD. A token issued to another application at the same provider could be accepted. A token without a user name could authenticate as an empty user, and an ID token could take the place of an access token.

The email claim added another path. When oidc.claim was unset, LXD used the email address even if the provider marked it unverified. An attacker able to set such an address on a provider account could be mapped to another user's LXD identity in deployments that authorize by email.

Each issue affects a different part of the decision. Audience establishes the receiving application. Token type establishes the credential role. The claim establishes the user. A server must get all three right before authorization can be meaningful.

Why default authorization raises the stakes

The advisory states that, in the default configuration, any authenticated OIDC client has full control of the server. That is a concise description of the impact: the attacker does not need a separate LXD role if authentication itself is accepted broadly enough.

LXD manages containers, virtual machines, storage pools, networks, projects, and server settings. The API is an administrative surface. A caller who obtains full control can change workload configuration, inspect resources available through the API, and reach operations normally reserved for trusted administrators.

The exact permissions available still depend on the server and its API surface. The advisory's statement is the reliable basis: default OIDC authorization is broad, while OpenFGA or scriptlet deployment may narrow the result.

Delegated authorization does not erase the bug

Servers that use OpenFGA or a scriptlet may not give every authenticated client full control. They still rely on accurate identity information. If an unverified email claim maps to a privileged user, delegated authorization can preserve or even amplify the impersonation.

The advisory also mentions that a user restricted to specific networks through the access-token claim can reach the API from any network by using an ID token that skips the intended checks. This is an example of authorization evidence attached to one token type being bypassed through token-type confusion.

An affected server therefore needs assessment even when it has fine-grained authorization. Assess the presence of OpenFGA or a scriptlet and whether every OIDC path uses the intended token type, audience, and verified identity before authorization runs.

Conditions an attacker must meet

The attacker needs a signed token from the configured provider. The CVE record describes network access, no privileges, no user interaction, and high attack complexity. The advisory explains how an operator of another application at the same provider may obtain a suitable token during normal sign-in, and how providers that issue tokens for unauthenticated requests may lower the account requirement.

The attacker also needs the target server to run an affected release and use OIDC in the vulnerable configuration. A product match without OIDC does not demonstrate this path. An OIDC server that has been fixed should not be treated as vulnerable from the CVE alone.

Affected versions and exposure

The fixed releases are LXD 5.0.12, 5.21.10, and 6.10.2. The CVE record covers earlier releases in those lines. Administrators should inventory cluster peers, recovery nodes, and management endpoints, not just the primary server.

The frozen ZoomEye observation recorded 12,271 matches for app="LXD" and zero for vul.cve="CVE-2026-135384". The product count describes visible LXD fingerprints. It does not confirm OIDC use, default authorization, or a vulnerable version.

Remediation and compensating controls

Upgrade to the fixed release for the deployed line. If the upgrade is staged, set oidc.audience to an LXD-only value and configure oidc.claim to a non-editable claim such as sub, or restrict the provider to verified email addresses.

Review the provider registrations that share the issuer. Remove stale applications and client secrets that are no longer required. A broad identity-provider estate increases the number of token-issuing relationships that could reach LXD before the fixed validation is in place.

Restrict management access until the server is verified. The advisory does not propose network controls as a complete fix, but a management interface that is not reachable by an untrusted token holder reduces immediate exposure while the maintenance window is prepared.

Tests that reflect the control-plane risk

Use a low-privilege test identity to confirm the normal authorization path. Test a token from another application and confirm rejection. Test an ID token in the access-token position and confirm rejection. Test an unverified email against a test identity and confirm that it does not map to the claimed account.

Then confirm that an authorized administrator can still perform the expected operations. The goal is to preserve legitimate administration while closing the broad authentication path. Record the test results with the installed version and the provider configuration.

Incident review

If a server was affected and reachable before the patch, review OIDC login records, LXD audit events, provider sign-in records, and changes to instances, networks, storage, or server configuration. The sources reviewed for this article do not establish active exploitation, so an unexpected login should be treated as a lead to investigate, not proof that this CVE was used.

References

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

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

[3] LXD remote API authorization documentation

[4] LXD server configuration reference

Top comments (0)