CVE-2026-135373

lxd: Path traversal in container device paths and VM disk image handling

Published Nov 26, 2026 CVSS 4.0 · 6.5 Medium EPSS n/a KEV · Not listed
Description
Path traversal in container device path resolution and VM disk format detection in Canonical LXD before 4.0.16, 5.0.12, 5.21.10, 6.10.2 allows an authenticated user with project access, including an unprivileged local user through lxd-user, to read and modify arbitrary host files or Ceph RBD images and gain root privileges on the host via crafted device paths or QCOW2 backing file references.

Analysis

AI-generated

Technical impact

The vulnerability is a path traversal flaw in Canonical LXD's handling of container device paths and virtual machine disk image formats. An authenticated user with project access—this includes even unprivileged local users through the lxd-user namespace—can supply crafted device paths or QCOW2 backing file references that cause LXD to resolve them on the host. This flaw allows reading, modifying, or deleting arbitrary files on the host filesystem or Ceph RBD images. Through this capability an attacker can gain full root privileges on the host system. The weakness is a classic CWE‑22 path traversal.

Affected Systems

Canonical LXD versions prior to 4.0.16, 5.0.12, 5.21.10 and 6.10.2 are vulnerable. The issue is present in LXD releases that use the legacy device path resolution and disk format detection logic. The impacted component is the host side of the LXD daemon that processes device declarations and disk backing file metadata.

Risk and Exploitability

The CVSS score of 6.5 indicates moderate severity; the EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog. The vulnerability requires authentication with project level permissions, so the attack vector is local inside the host or the project. Because the flaw allows modification of host files, once an attacker controls the device path he can elevate privileges to root on the host. Given the lack of public exploit data, the immediate risk is primarily for environments where LXD is exposed to untrusted users or where project permissions are misconfigured.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Canonical LXD to the latest stable release that includes the fix—4.0.16, 5.0.12, 5.21.10, or 6.10.2 and newer.
  • Restrict project access to trusted administrators and avoid granting device path mounting privileges to unprivileged users.
  • If an upgrade cannot be performed immediately, place containers in isolated LXD projects with no device path definitions and enforce strict AppArmor or network isolation to prevent host file access.

Generated by OpenCVE AI on November 27, 2026 at 00:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description Path traversal in container device path resolution and VM disk format detection in Canonical LXD before 4.0.16, 5.0.12, 5.21.10, 6.10.2 allows an authenticated user with project access, including an unprivileged local user through lxd-user, to read and modify arbitrary host files or Ceph RBD images and gain root privileges on the host via crafted device paths or QCOW2 backing file references.
Title lxd: Path traversal in container device paths and VM disk image handling
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 6.5, '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'}

Subscriptions

No data.

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
canonical
Published
Updated
Nov 26, 2026, 11:16 PM
Reserved
Nov 23, 2026, 5:04 PM
Status
Deferred
Published
Nov 27, 2026, 12:16 AM
Modified
Nov 27, 2026, 12:16 AM