Skip to main content
Network Thinking Solutions Logo

CVE-2026-66897

Instance template path traversal allows arbitrary host file write as root

All CVEs
CVE-2026-66897Published 8/24/2026

Instance template path traversal allows arbitrary host file write as root

Vendor advisory
CVSS9.9Critical

Overview

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.

Published
8/24/2026
Last modified
10/24/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
lxd
canonical
< 4.0.13

Verify advisory

Source
lxd
canonical
≥ 5.0.0, < 5.0.9

Verify advisory

Source
lxd
canonical
≥ 5.1, < 5.21.7

Verify advisory

Source
lxd
canonical
≥ 6.0, ≤ 6.9

Verify advisory

Source
LXD
Canonical
≥ 4.0.0, < 4.0.13

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
LXD
Canonical
≥ 5.0.0, < 5.0.9

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
LXD
Canonical
≥ 5.21.0, < 5.21.7

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source
LXD
Canonical
≥ 6.0, < 6.10

Verify advisory

Verify the advisory platform, edition, update channel, and any version exceptions.

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 9.9. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.