Skip to main content
EPSS 0.7%top 48%

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

0
Critical
VulnerabilityCVE-2026-66897cvecve-2026-66897cwe-22cwe-23
Published: 08/24/2026 (08/24/2026, 09:08:04 UTC)
Source: CVE Database V5
Vendor/Project: Canonical
Product: LXD

Description

CVE-2026-66897 is a critical path traversal vulnerability in Canonical's LXD container management software. It allows an attacker with container edit permissions or a user launching a crafted image to overwrite arbitrary files on the host system as root. The flaw arises from a mismatch between path validation and file creation during instance template processing, enabling escape from directory confinement and host root code execution.

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.13>=5.0.0 <5.0.9>=5.21.0 <5.21.7>=6.0 <6.10
GitHub Actionsmore threats →cve
LXD
pkg:github/LXD
Affected versions
>=4.0.0 <4.0.13>=5.0.0 <5.0.9>=5.21.0 <5.21.7>=6.0 <6.10

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: 09/10/2026, 12:22:26 UTC

Technical Analysis

This vulnerability in LXD occurs during processing of target template paths specified in metadata.yaml. LXD validates the path against a confined os.Root directory handle but then opens and creates the file using os.Create with an unconfined string path. This discrepancy allows an attacker to bypass directory confinement, overwrite root-owned files on the host, and execute code as root on the host system. The vulnerability affects multiple versions of LXD including 4.0.0, 5.0.0, 5.21.0, 6.0, and all versions prior to 4.0.13, 5.0.9, 5.21.7, and 6.10 respectively. The CVSS v3.1 base score is 9.9, indicating critical severity with network attack vector, low attack complexity, requiring low privileges but no user interaction, and impacts confidentiality, integrity, and availability with scope change.

Potential Impact

Successful exploitation allows an attacker with container edit permissions or the ability to launch a crafted image to overwrite arbitrary files on the host system with root privileges. This leads to full host compromise including root code execution, complete loss of confidentiality, integrity, and availability of the host system.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided in the available data. Until a patch is available, restrict container edit permissions to trusted users only and avoid launching untrusted images. Monitor vendor communications for updates on remediation.

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.310Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6a8c10e2acd9273b49506afb

Added to database: 08/24/2026, 09:37:38 UTC

Last enriched: 09/10/2026, 12:22:26 UTC

Last updated: 10/08/2026, 18:48:47 UTC

Views: 200

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