CVE-2026-66898

Path traversal via unvalidated instance name in backup tarball restore enables root file write / RCE

Published Aug 12, 2026 CVSS 3.1 · 9.9 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*
cpe:2.3:a:canonical:lxd:6.0:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Canonical
Canonical lxd
Vendors & Products Canonical
Canonical lxd
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'}

Weaknesses
  • CWE-22

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

Sources

Status
PUBLISHED
Assigner
canonical
Published
Updated
Aug 13, 2026, 1:40 PM
Reserved
Jul 28, 2026, 7:41 AM
Status
Analyzed
Published
Aug 12, 2026, 9:17 PM
Modified
Oct 24, 2026, 4:10 PM