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
- 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:
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.
Affected software
| Software | Affected versions |
|---|---|
LXDServers and applications · cna:canonical|lxd |
|
LXDServers and applications · github:canonical/lxd |
|
About LXD
container manager for system containers
- 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
Vulnerabilities in LXD
- In our list
- 93
- Published in the last 12 months
- 77
- Critical, last 12 months
- 26
- High, last 12 months
- 13
- Known exploited
- 0
- CVE-2026-127156Archive-supplied device node gives an unprivileged container raw access to host block devicesMedium 6.5 1 Dec 2026
- CVE-2026-127155Restricted clients can exhaust LXD memory through unbounded request bodies on upload endpointsHigh 7.1 1 Dec 2026
- CVE-2026-127159Migration peers can force unbounded memory allocation on the receiving daemonHigh 7.1 1 Dec 2026
- CVE-2026-140086lxc image export short-fingerprint symlink traversalHigh 7.5 1 Dec 2026
- CVE-2026-140085snap: HOME=/tmp/ is inherited by host commands run via run-host; root `pro` (Python) uses a per-user site directory under world-writable /tmpHigh 7.3 1 Dec 2026
- CVE-2026-122225VM backup config symlink makes the root daemon bind-mount host directories into the guestMedium 6.4 26 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-140084
- GitHub Advisory Database https://github.com/advisories/GHSA-5gr7-4h6h-98w4
- github.com https://github.com/canonical/lxd/security/advisories/GHSA-5gr7-4h6h-98w4