All vulnerabilities

Servers and applications

CVE-2026-135382

Host file read and write through backups, images, storage volumes and migration

Severity
Medium 6.5
Published
26 Nov 2026
Last changed
26 Nov 2026
Added to UpHeron
26 Nov 2026
Fixed in
4.0.16, 5.0.12, 5.21.10, 6.10.2
Exploit chance
0.5% in the next 30 daysHigher than 37% of CVEs. EPSS by FIRST, 29 Nov 2026
Weakness
Path traversal (CWE-22)
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-p9wc-rm6w-fg66
Sources
CVE Program, Project advisories (GitHub)

Description

Reported from Incus. This advisory was copied from the Incus advisory GHSA-42x8-664j-84w8.

Several code paths that move data in or out of storage volumes handled content controlled by the client as if it were trusted, while running as root on the host.

Instance backups, custom volume backups and image publishing walked the volume by host path, so a directory replaced by a symbolic link during the walk was followed. Custom volumes could be accessed through an endpoint meant for the other content type (file and SFTP access on a block volume, NBD access on a filesystem volume) or refreshed from a volume of the other content type, in each case leaving a disk image path under the client's control. The bucket backup export endpoint built a file path from the backup name without checking that the backup exists.

Image handling had similar issues. The fingerprint and the delta base name supplied by a remote image server were used as file names before being validated.

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

Workarounds

There is no complete workaround. Only giving access to fully trusted users avoids the issues. Setting restricted.devices.disk=block, restricted.backups=block and removing access to storage buckets and custom volumes from untrusted projects reduces the exposure but doesn't cover the image related issues.

Workarounds as given by canonical/lxd's security advisory.

Affected software

SoftwareAffected versions
LXDServers and applications · cna:canonical|lxd
  • From 4.0 before 4.0.16
  • From 4.0 before 5.0.12
  • From 4.0 before 5.21.10
  • From 4.0 before 6.10.2
LXDServers and applications · github:canonical/lxd
  • From 4.0 before 4.0.16

Status in Debian

Debian builds fixes into its own packages, so a release is often fixed under an older version number than the one upstream names.

  • 2 vulnerable
PackageDebian releaseStatus
lxd13trixiestableVulnerableNo fix yet.
12bookwormoldstableVulnerableNo fix yet.

From Debian's security tracker for CVE-2026-135382 , read in the last 12 hours.

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