CVE-2026-135384 in LXD
Summary
by MITRE • 11/27/2026
Improper authentication in OIDC bearer token verification in Canonical LXD before 5.0.12, 5.21.10, 6.10.2 allows a remote attacker holding a token signed by the configured identity provider to authenticate to the LXD API and gain unauthorized control or impersonate users via presenting tokens issued for other applications, ID tokens, or unverified email claims.
Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.
Analysis
by VulDB Data Team • 11/27/2026
The vulnerability identified in Canonical LXD prior to versions 5.0.12, 5.21.10, and 6.10.2 represents a critical failure in the implementation of OpenID Connect (OIDC) bearer token verification mechanisms within the container management API. This flaw stems from an improper authentication process where the system fails to adequately validate the scope, audience, or issuer constraints associated with incoming OAuth2 access tokens. In standard OIDC workflows, identity providers issue tokens that are bound by specific claims indicating who issued them, what resources they grant access to, and for which client application they were intended. The vulnerability allows an attacker possessing a valid token signed by a configured identity provider to bypass these critical validation checks. Consequently, the LXD daemon accepts tokens that should be rejected due to mismatched audiences or inappropriate scopes, effectively treating any validly signed token from the trusted issuer as sufficient proof of authentication for administrative operations within the container runtime environment.
From a technical perspective, this defect aligns with CWE-287 Improper Authentication and CWE-345 Insufficient Verification of Data Authenticity. The core issue lies in the lack of strict validation against the aud (audience) claim or the scope parameters defined during the initial OIDC configuration. When an attacker presents a token issued for a different application, such as a web portal or email service that shares the same identity provider with LXD, the vulnerable version of LXD does not verify that the token is intended specifically for its API endpoint. Furthermore, the system fails to properly scrutinize ID tokens and unverified email claims which may be included in authentication flows but are not suitable for programmatic API access. This oversight allows an adversary who has compromised or obtained a legitimate user credential from any service using the same identity provider to leverage that token against the LXD REST API without needing separate credentials specific to the container management system.
The operational impact of this vulnerability is severe, as it enables remote unauthenticated attackers to gain unauthorized control over the underlying host infrastructure through the container runtime. By authenticating with a misused or improperly verified token, an attacker can execute privileged commands via the LXD API. This includes creating new containers, modifying existing ones, accessing sensitive volumes mounted on the host, and potentially escaping the container isolation boundary if combined with other exploitation techniques. The ability to impersonate users extends beyond simple privilege escalation; it allows for lateral movement within environments where multiple services rely on a centralized identity provider but lack strict token binding policies. An attacker could manipulate workloads, exfiltrate data from containers, or use compromised instances as pivots to attack internal network segments, effectively compromising the integrity and availability of critical infrastructure components managed by LXD.
Mitigation strategies must prioritize immediate version upgrades to address this flaw directly. Administrators running affected versions should upgrade Canonical LXD to 5.0.12, 5.21.10, or 6.10.2 or later, where the OIDC token verification logic has been hardened to enforce strict audience and scope validation. In addition to patching, organizations utilizing OpenID Connect with LXD should review their identity provider configurations to ensure that tokens are issued with narrow scopes appropriate for API access only. Implementing additional layers of defense such as mutual TLS (mTLS) alongside OIDC can provide a robust zero-trust architecture where token-based authentication is supplemented by certificate-based client verification. Security teams should also audit existing deployments for any signs of unauthorized container creation or configuration changes that may indicate exploitation has already occurred, and enforce strict network segmentation to limit API exposure to trusted management networks only.