{"id":"CVE-2026-66898","state":"PUBLISHED","title":"Path traversal via unvalidated instance name in backup tarball restore enables root file write / RCE","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.","publishedAt":"2026-08-12T20:07:32.889Z","updatedAt":"2026-08-13T13:40:18.070Z","severity":{"score":9.9,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","source":"canonical"},"assigner":"canonical","products":["Canonical LXD"],"affected":[{"vendor":"Canonical","product":"LXD","packageName":"LXD","defaultStatus":"unaffected","versions":[{"version":"4.0.0","status":"affected","lessThan":"4.0.12","versionType":"semver"},{"version":"5.0.0","status":"affected","lessThan":"5.0.4","versionType":"semver"},{"version":"5.21.0","status":"affected","lessThan":"5.21.2","versionType":"semver"},{"version":"6.0","status":"affected","lessThan":"6.1","versionType":"semver"}],"platforms":["Linux"],"repo":"https://github.com/canonical/lxd"}],"references":["https://github.com/canonical/lxd/security/advisories/GHSA-m857-c7gc-c984"],"weaknesses":["CWE-22"],"ingestedAt":"2026-10-29T20:12:41.951Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/66xxx/CVE-2026-66898.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-66898","state":"PUBLISHED","datePublished":"2026-08-12T20:07:32.889Z","dateUpdated":"2026-08-13T13:40:18.070Z","assignerShortName":"canonical","assignerOrgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc","dateReserved":"2026-07-28T07:41:26.311Z"},"containers":{"cna":{"title":"Path traversal via unvalidated instance name in backup tarball restore enables root file write / RCE","descriptions":[{"lang":"en","value":"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":[{"vendor":"Canonical","product":"LXD","packageName":"LXD","defaultStatus":"unaffected","versions":[{"version":"4.0.0","status":"affected","lessThan":"4.0.12","versionType":"semver"},{"version":"5.0.0","status":"affected","lessThan":"5.0.4","versionType":"semver"},{"version":"5.21.0","status":"affected","lessThan":"5.21.2","versionType":"semver"},{"version":"6.0","status":"affected","lessThan":"6.1","versionType":"semver"}],"platforms":["Linux"],"repo":"https://github.com/canonical/lxd"}],"references":[{"url":"https://github.com/canonical/lxd/security/advisories/GHSA-m857-c7gc-c984","tags":["vdb-entry","vendor-advisory"]}],"metrics":[{"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}],"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"CHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.9,"baseSeverity":"CRITICAL"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-22","type":"CWE","lang":"en","description":"CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')"}]}],"providerMetadata":{"shortName":"canonical","orgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc","dateUpdated":"2026-08-12T20:07:32.889Z"},"impacts":[{"capecId":"CAPEC-126","descriptions":[{"lang":"en","value":"Path Traversal"}]},{"capecId":"CAPEC-153","descriptions":[{"lang":"en","value":"Input Data Manipulation"}]}],"source":{"discovery":"EXTERNAL"},"solutions":[{"lang":"en","value":"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."}]},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/canonical/lxd/security/advisories/GHSA-m857-c7gc-c984","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-08-13T13:40:15.405663Z","id":"CVE-2026-66898","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-08-13T13:40:18.070Z"}}]}}}