---
id: CVE-2026-66898
title: >-
  A path traversal vulnerability in LXD allows an attacker to manipulate file
  system paths during backup import and restore operations
summary: >-
  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 c…
severity: critical
cvss: 9.9
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'
cwe:
  - CWE-22
vendor: canonical
product: lxd
affected:
  - 'lxd >= 4.0.0, < 4.0.12'
  - 'lxd >= 5.0.0, < 5.0.4'
  - 'lxd >= 5.1, < 5.21.2'
  - lxd = 6.0
patched:
  - lxd 5.21.2
published: '2026-08-12'
updated: '2026-09-11'
sourceUpdated: '2026-09-11T15:30:05.387'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-66898'
references:
  - url: 'https://github.com/canonical/lxd/security/advisories/GHSA-m857-c7gc-c984'
    label: security@ubuntu.com
  - url: 'https://github.com/canonical/lxd/security/advisories/GHSA-m857-c7gc-c984'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
epss: 0.00592
epssPercentile: 0.46007
ingestedAt: '2026-09-11T17:50:33.511Z'
---

## Overview

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.

## Affected

- `lxd >= 4.0.0, < 4.0.12`
- `lxd >= 5.0.0, < 5.0.4`
- `lxd >= 5.1, < 5.21.2`
- `lxd = 6.0`

## Remediation

Upgrade past the affected range:

- `lxd 5.21.2`
