DEV Community

kozhevniko
kozhevniko

Posted on

Unverified Email Claims Could Cross the LXD Identity Boundary

Unverified Email Claims Could Cross the LXD Identity Boundary

CVE-2026-135384 concerns two parts of how LXD validates a bearer token: the signature and the identity derived from its claims. The official advisory shows that the server could translate a token claim into a user identity even when the identity provider had not verified the email address. In environments where LXD authorization follows an email address, that translation is the boundary that matters.

Canonical lists LXD releases before 5.0.12, 5.21.10, and 6.10.2 as affected. The CVE record assigns CWE-287 and a CVSS 4.0 score of 9.2 Critical. The GitHub advisory page displays a CVSS 3.1 score of 8.1 High and the same patched release lines. The divergence in scoring systems should not obscure the identity issue.

The advisory's claim path

According to the advisory, when oidc.claim was not set, LXD took the user name from the token's email claim. The claim was used even when the provider marked the address as unverified.

That behavior turns a provider attribute into an authorization input. If the provider permits a user to add or change an address before verification, the token can contain an address that belongs to someone else. The provider may be correctly reporting the authenticated account, while LXD resolves that account to the wrong local identity.

Why unverified data is risky

Email addresses are often treated as stable identifiers because they look familiar and are easy to compare. In an identity system, however, an email may be an attribute that a user can edit. Verification status is part of the evidence. A value without verification is not equivalent to a value controlled by the claimed mailbox owner.

The advisory's impact discussion is conditional by design. In deployments that authorize OIDC users through OpenFGA or a scriptlet and identify them by email address, a user able to set an unverified address on their own provider account can be authorized as the owner of that address. The attacker receives that user's permissions.

This is a serious authorization consequence, but it is not a universal claim about every LXD deployment. A server that maps users through a stable subject claim or rejects unverified addresses does not have the same exposure path. A fixed release removes the failure described by the advisory, and the safe configuration recommendations reduce ambiguity during the transition.

The broader token verification failure

The email issue appears with other defects in the advisory. Unless oidc.audience was set, a token issued for another application at the same identity provider could be accepted. A token that did not name a user could also authenticate as an empty user name. An ID token could be presented in place of an access token, potentially skipping claim checks meant for the access token.

These findings span an authentication design problem across several validation fields. LXD had to decide which issuer to trust, which application the token addressed, which token type was valid, which claim represented the user, and whether that claim was verified. A signature check covers only the first part of that chain.

Attack conditions

An attacker needs a JWT signed by the configured provider. The CVE record describes a network attack with no privileges and no user interaction, while rating complexity as high. The attacker also needs a target configuration that exercises the vulnerable claim mapping and an identity or authorization model in which the resulting email maps to useful permissions.

The advisory notes that providers which sign tokens for unauthenticated requests could remove the need for a provider account. It also notes that the operator of another application registered with the same provider may receive a suitable token when a user signs in there. These conditions make the identity-provider relationship central to the attack surface.

Impact on access control

When LXD cannot reliably bind a token to the intended application and user, the API may grant access to a caller who was never given an LXD identity. In the default configuration described by the advisory, any authenticated OIDC client has full control of the server. Where access is delegated through OpenFGA or a scriptlet, the consequences depend on the mapped groups and permissions.

An email-based impersonation can be more damaging than a simple login bypass because it can inherit an administrator's existing access. A network restriction carried in an access-token claim may also be skipped if an ID token is accepted in its place, according to the advisory.

Affected versions and severity

The CVE record covers Canonical LXD before the fixed releases 5.0.12, 5.21.10, and 6.10.2. The issue is network reachable, requires no privileges or user interaction, and carries high impact to confidentiality, integrity, and availability in the CNA score.

The high attack-complexity rating is useful when prioritizing the patch. It suggests that obtaining a suitable signed token and matching configuration is not equivalent to sending an unauthenticated exploit request to every product instance. The result can still be severe when the preconditions align, especially where default authorization grants broad API control.

What administrators should check

First identify servers running an affected LXD release with OIDC enabled. Check whether authorization depends on an email claim and whether the provider guarantees that the address is verified. Review the configured oidc.claim, oidc.audience, and any group or network claims that affect authorization.

Upgrade to the fixed release for the deployed branch. If that cannot happen immediately, follow the advisory's workaround: set oidc.audience to an LXD-only value and set oidc.claim to a claim users cannot edit, such as sub, or enforce verified email release at the provider.

Do not assume that an unverified email path can be made safe by deleting one account. The provider configuration can create the same ambiguity for other users. The control must make the claim mapping stable and non-user-editable for the whole deployment.

Validation after remediation

In a test environment, create a user whose provider profile includes an unverified address that matches a privileged LXD identity. Confirm that the patched server does not resolve that account to the privileged identity. Repeat with a verified address and the intended subject claim to ensure legitimate login still works.

Review logs for identities created from email addresses and look for accounts whose provider verification status cannot be established. The reviewed sources do not report active exploitation, so this review should be framed as exposure reduction and authentication hygiene. It is not a positive compromise indicator by itself.

Exposure context

The frozen ZoomEye observation for this topic recorded 12,271 matches for app="LXD" and zero for vul.cve="CVE-2026-135384". These are product-level observations. They do not show that any matched server has OIDC configured, uses email mapping, or runs an affected version.

References

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

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

[3] LXD server configuration reference

[4] LXD remote API authorization documentation

Top comments (0)