Skip to main content
EPSS 0.6%top 54%

CVE-2026-66898: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Canonical LXD

0
Critical
VulnerabilityCVE-2026-66898cvecve-2026-66898cwe-22
Published: 08/12/2026 (08/12/2026, 20:07:32 UTC)
Source: CVE Database V5
Vendor/Project: Canonical
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Affected software

Canonical

LXD

Affected versions
>=4.0.0 <4.0.12>=5.0.0 <5.0.4>=5.21.0 <5.21.2>=6.0 <6.1
GitHub Actionsmore threats →cve
LXD
pkg:github/LXD
Affected versions
>=4.0.0 <4.0.12>=5.0.0 <5.0.4>=5.21.0 <5.21.2>=6.0 <6.1

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 08/12/2026, 20:42:31 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses