CVE-2026-66898 PUBLISHED

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

Assigner: canonical
Reserved: 28.07.2026 Published: 12.08.2026 Updated: 13.08.2026

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.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
CVSS Score: 9.9

Product Status

Vendor Canonical
Product LXD
Versions Default: unaffected
  • affected from 4.0.0 to 4.0.12 (excl.)
  • affected from 5.0.0 to 5.0.4 (excl.)
  • affected from 5.21.0 to 5.21.2 (excl.)
  • affected from 6.0 to 6.1 (excl.)

Solutions

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.

References

Problem Types

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') CWE

Impacts

  • Path Traversal
  • Input Data Manipulation