All posts

Critical vulnerability

Critical authentication bypass in LXD (CVE-2026-135384)

Authentication bypass in LXD · Servers and applications

CVE-2026-135384

lxd: Improper authentication in OIDC bearer token verification

Severity
Critical 9.2
Published
26 Nov 2026
Fixed in
5.0.12, 5.21.10, 6.10.2
Exploit chance
0.7% in the next 30 daysHigher than 47% of CVEs. EPSS by FIRST, 29 Nov 2026
Weakness
Improper authentication (CWE-287)
Attack
Over the network · Only under certain conditions · No login needed · No user action needed
Attacker can
Read data · Change data · Take it down

Reported from Incus. This advisory was copied from the Incus advisory GHSA-cp5w-98j2-x2hv.

When OIDC authentication is configured, Incus accepts a JWT sent as bearer token (or through the web UI cookie) after checking its issuer, signature and expiry. Unless oidc.audience was set, nothing tied that token to this Incus server:

  • A token that the same identity provider issued to a different application was accepted.
  • A token signed by the provider that doesn't name any user was accepted, and its bearer was authenticated with an empty user name.
  • An ID token was accepted in place of the access token, so the checks meant for the access token, such as the incus.allowed_subnets claim and its shorter lifetime, could be skipped by sending the other token.

Separately, when oidc.claim is unset, the user name is taken from the token's email claim. That claim was used even when the provider marks the address as unverified.

From canonical/lxd's security advisory. Shortened; the full text is there.

Workarounds

Set oidc.audience to a value that the identity provider only puts in access tokens issued for Incus. This rejects tokens issued to other applications and ID tokens sent in place of the access token.

Set oidc.claim to a claim that users can't edit themselves, such as sub, or configure the provider to only release verified e-mail addresses.

Workarounds as given by canonical/lxd's security advisory.
SoftwareAffected versions
LXDServers and applications
  • From 5.0 before 6.10.2
  • From 5.0 before 5.21.10
  • From 5.0 before 5.0.12
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-135384
Everything about CVE-2026-135384

From NVD, the CVE Program, OSV.dev with the GitHub Advisory Database, WPVulnerability, WordPress's security advisories and CISA's Known Exploited Vulnerabilities catalog, as they stood when this was written. Each vulnerability's own page has its latest rating and fix. This product uses the NVD API but is not endorsed or certified by the NVD.