All vulnerabilities

Servers and applications

CVE-2026-135363

Instance copy refresh modifies an existing target without edit permission

Severity
Medium 6.1
Published
3 Dec 2026
Last changed
3 Dec 2026
Added to UpHeron
3 Dec 2026
Fixed in
5.21.11, 6.10.3
Weakness
Missing authorization (CWE-862)
Attack
Over the network · Only under certain conditions · Needs a user account · No user action needed
Attacker can
Change data · Take it down
CVSS vector
CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
Also known as
GHSA-86fg-v73j-r37j
Sources
CVE Program, Project advisories (GitHub)

Description

An authenticated identity that holds the project-level can_create_instances entitlement, but does not hold can_edit on an existing instance, can send POST /1.0/instances with source.type: "copy" and source.refresh: true, naming that existing instance as the target. POST /1.0/instances is gated only by can_create_instances on the project, whereas ordinary PUT, POST and PATCH on /1.0/instances/{name} require can_edit on that specific instance. The copy-refresh path loads the existing target and calls inst.Update(..., UpdateActionUserRefresh) before taking an exclusive lock, and then refreshes its storage volume. There is no target-specific can_edit check anywhere on that path. A create-only identity can therefore overwrite the configuration and root filesystem of an instance it is not allowed to edit.

  • lxd/instances.go:35 — POST /1.0/instances uses allowPermission(entity.TypeProject, auth.EntitlementCanCreateInstances).
From canonical/lxd's security advisory. Shortened; the full text is there.

Affected software

SoftwareAffected versions
LXDServers and applications · cna:canonical|lxd
  • From 5.21 before 5.21.11
  • From 5.21 before 6.10.3
LXDServers and applications · github:canonical/lxd
  • From 5.21 before 5.21.11

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