CVE-2026-66898: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Canonical LXD
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.
AI Analysis
Technical Summary
This vulnerability in LXD arises from improper limitation of pathnames (CWE-22) during backup import and restore processes. Specifically, LXD fails to validate instance and storage volume names contained in backup archive metadata, allowing an attacker to supply crafted names with path traversal sequences. Exploitation could lead to file system access or modification outside the designated restore directory, impacting confidentiality, integrity, and availability of the system. The vulnerability has a CVSS 3.1 score of 9.9 (critical) with network attack vector, low attack complexity, requiring low privileges but no user interaction, and results in complete system compromise. Affected versions include 4.0.0, 5.0.0, 5.21.0, 6.0, and ranges >=4.0.0 <4.0.12, >=5.0.0 <5.0.4, >=5.21.0 <5.21.2, and >=6.0 <6.1. No official patch or remediation level is currently stated in the vendor advisory or data provided.
Potential Impact
Successful exploitation allows an attacker with low privileges to perform path traversal during backup restore operations, potentially accessing or overwriting files outside the intended directory. This can lead to full compromise of confidentiality, integrity, and availability of the affected system. The critical CVSS score reflects the high impact on system security.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid importing or restoring backups from untrusted sources to mitigate risk. Monitor vendor channels for updates and apply patches promptly once released.
CVE-2026-66898: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Canonical LXD
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.
CVSS v3.1
Score 9.9critical
Affected software
Canonical
LXD
pkg:github/LXDRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in LXD arises from improper limitation of pathnames (CWE-22) during backup import and restore processes. Specifically, LXD fails to validate instance and storage volume names contained in backup archive metadata, allowing an attacker to supply crafted names with path traversal sequences. Exploitation could lead to file system access or modification outside the designated restore directory, impacting confidentiality, integrity, and availability of the system. The vulnerability has a CVSS 3.1 score of 9.9 (critical) with network attack vector, low attack complexity, requiring low privileges but no user interaction, and results in complete system compromise. Affected versions include 4.0.0, 5.0.0, 5.21.0, 6.0, and ranges >=4.0.0 <4.0.12, >=5.0.0 <5.0.4, >=5.21.0 <5.21.2, and >=6.0 <6.1. No official patch or remediation level is currently stated in the vendor advisory or data provided.
Potential Impact
Successful exploitation allows an attacker with low privileges to perform path traversal during backup restore operations, potentially accessing or overwriting files outside the intended directory. This can lead to full compromise of confidentiality, integrity, and availability of the affected system. The critical CVSS score reflects the high impact on system security.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid importing or restoring backups from untrusted sources to mitigate risk. Monitor vendor channels for updates and apply patches promptly once released.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- canonical
- Date Reserved
- 2026-07-28T07:41:26.311Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a7cd702bf8831d5391e9f0f
Added to database: 08/12/2026, 20:26:42 UTC
Last enriched: 08/12/2026, 20:42:31 UTC
Last updated: 09/27/2026, 13:47:47 UTC
Views: 50
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.