ZeroDay Brief
CVE-2026-66897

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 hos…

CVSS
9.9Critical
Chance of exploitation (EPSS)
0.72%
Published
Aug 24, 2026
In the news
Not yet
Vendor advisory More from this vendor

What to do

A critical path traversal flaw in Canonical Lxd that can be attacked over the network by someone with an account. No attacks are reported yet, but patch it soon.

Action: Apply the vendor's update or follow its advisory.

Fixed in: 4.0.13, 5.0.9, 5.21.7, 6.10

Affected versions
Canonical Lxd
4.0.0 to before 4.0.13; 5.0.0 to before 5.0.9; 5.21.0 to before 5.21.7; 6.0 to before 6.10

Description

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.

CWE-22CWE-23

Affected products

Get alerts for these →

Timeline 1

Latest change: CVE-2026-66897 published (CVSS 9.9) (Aug 24, 2026)

News, advisories, exploit code, scanner detection and exploitation, newest first.

Mon, Aug 24, 2026

  1. CVECVE-2026-66897 published (CVSS 9.9)CVE Program · 10:16 UTC

References 1

  • github.com Vendor AdvisoryExploit /canonical/lxd/security/advisories/GHSA-q39m-8fx9-42fv

You are leaving ZeroDay Brief

This link goes to exploit code on a third-party site. We find these links automatically and do not test, review or vouch for them. They may contain malware or fake exploits.

We are not responsible for anything that happens if you open the page or run its code. Never run exploit code on systems you care about.

↑ ↓ moveEnter openEsc closeTry “CVE-2026”, “fortinet” or “ivanti”