All vulnerabilities

Servers and applications

GHSA-cp5w-98j2-x2hv

OIDC tokens are not bound to the Incus client or to a verified user

Severity
High 8.1
Published
27 Nov 2026
Last changed
27 Nov 2026
Added to UpHeron
27 Nov 2026
Fixed in
7.7.0
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
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Sources
Project advisories (GitHub)

Description

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.

Anyone who can obtain a JWT signed by the configured OIDC issuer can authenticate to the Incus API, without ever having been given access to Incus.

From lxc/incus'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 lxc/incus's security advisory.

Affected software

SoftwareAffected versions
IncusServers and applications · github:lxc/incus
  • Every version before 7.7.0

About Incus

container manager for system containers

From Wikidata, CC0 1.0.
GitHub stars
6,771GitHub, 29 Nov 2026
Forks
535GitHub, 29 Nov 2026
Latest release
v7.7.0GitHub, 29 Nov 2026
Released
27 Nov 2026GitHub
Developer
Linux ContainersWikidata
License
Apache License 2.0Wikidata
Written in
GoWikidata
First released
7 Aug 2023Wikidata
First published on GitHub
22 Jul 2023GitHub

References