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

CVE-2026-66898
CRITICAL 9.9

At a glance

Source
NVD
EPSS
EPSS 0.59 % · percentile 48 ()
State
PUBLISHED
Published
Updated
Assigner
canonical
NVD status
Analyzed

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.

Weaknesses (CWE)

  • CWE-22 — Improper Limitation of a Pathname to a Restricted Directory

References

Scores

VersionScoreVectorScored by
CVSS 3.1CRITICAL 9.9CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:Hcanonical
CVSS 3.1CRITICAL 9.9CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HNVD · security@ubuntu.com (Secondary)

European references

Affected configurations (NVD CPE)

Affected products

ProductVersions
Canonical · LXDaffected 4.0.0 < 4.0.12 ; affected 5.0.0 < 5.0.4 ; affected 5.21.0 < 5.21.2 ; affected 6.0 < 6.1

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD