All vulnerabilities

Servers and applications

CVE-2026-140084

Fine-grained project users on LXD 5.21 can create resources in the default project, bypassing project isolation (host root via `raw.dnsmasq`)

Severity
Medium 6.5
Published
1 Dec 2026
Last changed
1 Dec 2026
Added to UpHeron
1 Dec 2026
Fixed in
5.21.10
Weakness
Incorrect authorization (CWE-863)
Attack
Over the network · Needs a user account · No user action needed
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:H
Also known as
GHSA-5gr7-4h6h-98w4
Sources
CVE Program, Project advisories (GitHub)

Description

Reported from Incus. This advisory was copied from the Incus advisory GHSA-jcw9-v2ff-8m79.

On LXD 5.21 LTS (stable-5.21), resource-creation endpoints authorize requests against the requested project rather than the effective project. When a project has a features. flag disabled (for example the default features.networks=false), the resource is created in the default project instead. A fine-grained authorization (OpenFGA) identity holding a can_create_ entitlement on that project can therefore create resources in default without holding any permissions on default, violating LXD's documented isolation guarantee for fine-grained authorization.

LXD main and stable-6 (6.x) are not affected.

On LXD 5.21 LTS (stable-5.21), a user authenticated through fine-grained authorization (such as an OIDC or fine-grained TLS identity) with a create entitlement on a project whose matching features.* flag is disabled can create resources in the unrestricted default project:

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

Workarounds

  • Enable all relevant features. flags (in particular features.networks=true, which also requires features.profiles=true) on projects used by fine-grained authorization identities, or do not grant can_create_ entitlements (such as can_create_networks or the operator role) on projects where the corresponding features.* flag is disabled.
  • Operators can audit the default project for unexpected resources created by tenant identities, in particular bridge networks carrying raw.dnsmasq.
Workarounds as given by canonical/lxd's security advisory.

Affected software

SoftwareAffected versions
LXDServers and applications · cna:canonical|lxd
  • From 5.21.0 before 5.21.10
LXDServers and applications · github:canonical/lxd
  • Every version before 5.21.10

About LXD

container manager for system containers

From Wikidata, CC0 1.0.
GitHub stars
4,861GitHub, 29 Nov 2026
Forks
1,080GitHub, 29 Nov 2026
Latest release
lxd-6.10.2GitHub, 29 Nov 2026
Released
26 Nov 2026GitHub
Developer
Stéphane GraberWikidata
License
AGPL-3.0GitHub
Written in
GoWikidata
First released
4 Nov 2014Wikidata
First published on GitHub
4 Nov 2014GitHub

References