{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "4.0.0"
              },
              {
                "fixed": "4.0.12"
              },
              {
                "introduced": "5.0.0"
              },
              {
                "fixed": "5.0.4"
              },
              {
                "introduced": "5.1"
              },
              {
                "fixed": "5.21.2"
              }
            ],
            "source": "CPE_RANGE"
          },
          "events": [
            {
              "introduced": "03aab09f5b5cbdada00c6539877dcf5932fcde98"
            },
            {
              "fixed": "a55c9d0228552323d96cc330fb36f9471581c4ab"
            },
            {
              "introduced": "1e1349e3cbf30c1b2ce74e531d4dd0fd52c45be1"
            },
            {
              "fixed": "2101d7f6efdaa7762e6593c857cb524bfcd2859b"
            },
            {
              "introduced": "be2e2d38c65555880689da833c93d1e9d55ae94d"
            },
            {
              "fixed": "7d4a9933f4618cfe6ec8d18e2e8f91816e5ddbba"
            }
          ],
          "repo": "https://github.com/canonical/lxd",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-m857-c7gc-c984"
  ],
  "database_specific": {
    "cna_assigner": "canonical",
    "cwe_ids": [
      "CWE-22"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/66xxx/CVE-2026-66898.json"
  },
  "details": "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.",
  "id": "CVE-2026-66898",
  "modified": "2026-09-13T03:30:18.106140743Z",
  "published": "2026-08-12T20:07:32.889Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/66xxx/CVE-2026-66898.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/canonical/lxd/security/advisories/GHSA-m857-c7gc-c984"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-66898"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/canonical/lxd"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Path traversal via unvalidated instance name in backup tarball restore enables root file write / RCE"
}