Skip to main content

LXD CVE-2026-66897

| EUVDEUVD-2026-64757 CRITICAL
Path Traversal (CWE-22)
2026-08-24 canonical
9.9
CVSS 3.1 · Vendor: canonical
Share

Severity by source

Vendor (canonical) PRIMARY
9.9 CRITICAL
AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
vuln.today AI
9.9 CRITICAL

Container edit permission gives PR:L via the network-facing LXD API with low complexity; the escape from container to host root is a scope change with full CIA impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

Primary rating from Vendor (canonical).

CVSS VectorVendor: canonical

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

Lifecycle Timeline

3
Patch available
Aug 24, 2026 - 10:02 EUVD
Analysis Generated
Aug 24, 2026 - 10:00 vuln.today
CVE Published
Aug 24, 2026 - 09:08 cve.org
CRITICAL 9.9

DescriptionCVE.org

A path traversal vulnerability in LXD's instance template processing allows an attacker with container edit permissions, or any user launching a crafted image, to overwrite arbitrary files on the host system as root. When processing target template paths specified in metadata.yaml, LXD validates the path against a confined os.Root directory handle but subsequently opens and creates the file using os.Create with an unconfined string path. This discrepancy between path resolution checks and file creation allows an attacker to escape directory confinement, overwrite root-owned host files, and achieve host root code execution.

AnalysisAI

Host root code execution in Canonical LXD arises from a path-traversal flaw in instance template processing, letting an attacker with container edit permissions - or any user who launches a maliciously crafted image - overwrite arbitrary root-owned files on the host. The root cause is a validate-then-open mismatch: LXD checks template target paths against a confined os.Root handle but then creates the file via os.Create using the raw, unconfined string path. …

Unlock full vulnerability intelligence

  • Risk assessment & exploitation conditions
  • Attack chain visualization
  • Remediation with exact patch versions
  • Threat intelligence from 22 sources
  • Personal watchlist & email alerts

Free forever · No credit card required

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata

Access
Obtain container edit rights or publish crafted image
Delivery
Craft metadata.yaml with traversal template path
Exploit
Launch instance / apply template in LXD
Execution
Validation passes on os.Root but os.Create writes unconfined
Persist
Overwrite root-owned host file
Impact
Execute code as root on host

Vulnerability AssessmentAI

Exploitation Exploitation requires either (a) an account with container edit permissions on the target LXD instance, or (b) the ability to get a victim to launch/import an attacker-crafted image, and the attacker must supply a metadata.yaml whose template target path uses directory-traversal sequences. … Additional conditions and limiting factors are described in the full assessment.
Risk Assessment The signals are largely aligned toward high priority. … Full risk analysis with EPSS, KEV, and SSVC signal comparison available after sign-in.
Exploit Scenario A tenant with edit rights on their own container, or an attacker who publishes a malicious LXD image to a registry, crafts a metadata.yaml whose template target path uses traversal sequences pointing outside the instance directory (for example toward /etc or a systemd unit / cron path). When LXD renders the template it validates against the confined os.Root handle but writes via os.Create to the unconfined path, overwriting a root-owned host file and enabling host root code execution. …
Remediation Upgrade LXD to the fixed release identified in Canonical's advisory GHSA-q39m-8fx9-42fv (https://github.com/canonical/lxd/security/advisories/GHSA-q39m-8fx9-42fv); an exact patched version number is not provided in the input and must be taken from that advisory. … Detailed patch versions, workarounds, and compensating controls in full report.

Recommended ActionAI

Within 24 hours: audit all LXD instances in production and development environments, immediately revoke non-administrative container edit and image deployment permissions from all non-privileged users, and restrict image sources to pre-approved internally-verified registries only. …

Sign in for detailed remediation steps and compensating controls.

Threat intelligence, references, and detailed analysis are available after sign-in.

More in Lxd

View all
CVE-2025-54286 HIGH POC
8.8 Oct 02

Cross-Site Request Forgery (CSRF) in LXD-UI in Canonical LXD versions >= 5.0 on Linux allows an attacker to create and s

CVE-2025-54289 HIGH POC
8.1 Oct 02

Privilege Escalation in operations API in Canonical LXD <6.5 on multiple platforms allows attacker with read permissions

CVE-2025-54288 MEDIUM POC
6.8 Oct 02

Information Spoofing in devLXD Server in Canonical LXD versions 4.0 and above on Linux container platforms allows attack

CVE-2025-54293 MEDIUM POC
6.5 Oct 02

Path Traversal in the log file retrieval function in Canonical LXD 5.0 LTS on Linux allows authenticated remote attacker

CVE-2025-54287 MEDIUM POC
6.5 Oct 02

A arbitrary file access vulnerability (CVSS 6.5) that allows an attacker with instance configuration permissions. Risk

CVE-2026-63298 CRITICAL
9.9 Aug 12

Canonical LXD's NVIDIA GPU passthrough configuration handler fails to sanitize newline characters in user-supplied `nvid

CVE-2026-66898 CRITICAL
9.9 Aug 12

Path traversal in Canonical's LXD container and VM manager allows a user with backup import/restore privileges to write

CVE-2026-63296 CRITICAL
9.9 Aug 12

Authorization bypass in Canonical LXD lets an authenticated user with instance-migration privileges smuggle high-privile

CVE-2026-63297 CRITICAL
9.9 Aug 12

Authorization bypass in Canonical LXD lets an authenticated user with copy privileges smuggle instances carrying disallo

CVE-2026-63299 CRITICAL
9.9 Aug 12

Storage quota bypass in Canonical LXD (5.0.x before 5.0.8, 5.21.x before 5.21.6, and 6.0 before 6.10) lets an authentica

CVE-2026-62420 CRITICAL
9.9 Aug 12

Authorization bypass in Canonical LXD (6.0 before 6.10, 5.21.x before 5.21.6, 5.0.x before 5.0.8) lets an authenticated

CVE-2026-63300 CRITICAL
9.9 Aug 12

Project-confinement bypass in Canonical LXD lets an authenticated user holding can_create_instances on a restricted proj

Share

CVE-2026-66897 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy