Description
A path traversal vulnerability in LXD allows an attacker to manipulate file system paths during backup import and restore operations. When importing or restoring a backup archive, LXD fails to validate instance and storage volume names contained within the archive metadata. An attacker can exploit this flaw by supplying a crafted backup archive with malicious instance or volume names containing path traversal sequences, potentially allowing file access or overwriting outside the designated restore directory.
Published: 2026-08-12
Score: 9.9 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw is a path traversal error in Canonical’s LXD backup import and restore functionality. LXD fails to validate instance and storage volume names found in a backup tarball’s metadata, allowing an attacker to craft directory traversal sequences that redirect file writes outside the intended restore directory. Because restore operations run with the privileges of the LXD daemon, successful exploitation can overwrite system files or place malicious code, leading to arbitrary file overwrite and remote code execution on the host.

Affected Systems

The vulnerability applies to Canonical LXD versions older than 4.0.12, 5.0.4, 5.12.2, and any 6.0 series build before the update. Users running those LXD releases are susceptible; upgrading to any of the specified fixed releases eliminates the risk.

Risk and Exploitability

The CVSS score of 9.9 classifies this flaw as critical, and it is not listed in CISA’s KEV catalog. Exploitation requires the attacker to import or restore a malicious backup archive via the LXD API, which usually demands authenticated access to the LXD daemon. Once path traversal succeeds, the attacker can overwrite privileged files or deploy executables, achieving remote code execution. With no EPSS score available, the exact launch window is unclear, but the high severity indicates a significant exploitation potential.

Generated by OpenCVE AI on August 12, 2026 at 22:49 UTC.

Remediation

Vendor Solution

Upgrade to LXD version 4.0.12 or later, 5.0.4 or later, or 5.12.2 or later, or 6.0 or later.


OpenCVE Recommended Actions

  • Upgrade to LXD 4.0.12, 5.0.4, 5.12.2, or 6.0 or later as suggested by the vendor.
  • Restrict access to the LXD REST API and its UNIX socket to trusted users or networks.
  • Validate or sanitize backup archives before importing or restoring them to ensure they do not contain malicious instance or volume names.

Generated by OpenCVE AI on August 12, 2026 at 22:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 13 Aug 2026 14:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Wed, 12 Aug 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Canonical
Canonical lxd
Vendors & Products Canonical
Canonical lxd

Wed, 12 Aug 2026 20:30:00 +0000

Type Values Removed Values Added
Description A path traversal vulnerability in LXD allows an attacker to manipulate file system paths during backup import and restore operations. When importing or restoring a backup archive, LXD fails to validate instance and storage volume names contained within the archive metadata. An attacker can exploit this flaw by supplying a crafted backup archive with malicious instance or volume names containing path traversal sequences, potentially allowing file access or overwriting outside the designated restore directory.
Title Path traversal via unvalidated instance name in backup tarball restore enables root file write / RCE
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 9.9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'}


cve-icon MITRE

Status: PUBLISHED

Assigner: canonical

Published:

Updated: 2026-08-13T13:40:18.070Z

Reserved: 2026-07-28T07:41:26.311Z

Link: CVE-2026-66898

cve-icon Vulnrichment

Updated: 2026-08-13T13:39:51.528Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-08-12T21:17:39.700

Modified: 2026-08-28T15:24:38.600

Link: CVE-2026-66898

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-12T23:00:05Z

Weaknesses
  • CWE-22

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