On this page
CVE Details
- Protection status: Protected by Atomicorp rules · About protection statuses
- CVE: CVE-2026-66897
- Name: CVE-2026-66897: Instance template path traversal allows arbitrary host file write as root
- Severity: Critical
- CVSS: 9.9 (v3.1) (Critical)
- CVSS version: 3.1
- CVSS source: canonical CNA
- CVSS vector:
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 impact: High
- Integrity impact: High
- Availability impact: High
- CWE: CWE-22 — Improper Limitation of a Pathname to a Restricted Directory, CWE-23 — Relative Path Traversal
- Related CAPEC attack patterns (via MITRE CWE relationships): CAPEC-126 (opens in a new tab) , CAPEC-139 (opens in a new tab) , CAPEC-64 (opens in a new tab) , CAPEC-76 (opens in a new tab) , CAPEC-78 (opens in a new tab) , CAPEC-79 (opens in a new tab)
- Vendor: canonical
- Vulnerable product: lxd
- CVE published: 2026-08-24
- CVE last modified: 2026-10-24
- Affected versions (NVD configurations):
- lxd: < 4.0.13
- lxd: >= 5.0.0, < 5.0.9
- lxd: >= 5.1, < 5.21.7
- lxd: >= 6.0, <= 6.9
- EPSS: 0.0072; 54.7th percentile as of 2026-11-20 (FIRST (opens in a new tab) )
- Latest Update: 2026-11-21
- Selected Rule IDs observed: 330791 , 340152
- Matching rules: 2; rules with blocking actions: 2
- Would-block Rule IDs: 330791 , 340152
Technical vulnerability details · CVSS assessments, exploit evidence & CPE data
CVSS assessments
CVSS v3.1 · security@ubuntu.com
- Base score: 9.9
- Base severity: CRITICAL
- Exploitability subscore: 3.1
- Impact subscore: 6.0
- Assessment type: Secondary
- Source identifier: security@ubuntu.com
- Full vector:
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 impact: High
- Integrity impact: High
- Availability impact: High
- Exploit maturity: Not scored
Exploitability and impact subscores describe the vulnerability’s technical characteristics. Exploit maturity describes the reported state of exploitation; these are separate measures.
Assessment source: NVD record (opens in a new tab) · CVE record (opens in a new tab)
CISA SSVC assessments
These are CISA’s published decision points at the assessment time. They are not a complete organization-specific prioritization decision.
Provider: CISA ADP
Provider identifier: 134c704f-9b21-4f2e-91b3-4a467353bcc0
SSVC version: 2.0.3
Role: CISA Coordinator
Assessment timestamp: 2026-08-24T12:49:52.386280Z
Exploitation: none
Automatable: no
Technical Impact: total
Provider: CISA ADP
Provider identifier: 134c704f-9b21-4f2e-91b3-4a467353bcc0
SSVC version: 2.0.3
Role: CISA Coordinator
Assessment timestamp: 2026-08-24T00:00:00+00:00
Exploitation: none
Automatable: no
Technical Impact: total
Exploit references
The CVE source data tags these references as exploits. A reference alone does not establish reliability or active exploitation.
Vulnerable CPE configurations
cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*- Version end (exclusive):
4.0.13 - NVD match criteria ID:
C0F22A55-5146-4B91-9D3E-BC4509F506BE
- Version end (exclusive):
cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*- Version start (inclusive):
5.0.0 - Version end (exclusive):
5.0.9 - NVD match criteria ID:
5DE002EB-DEFA-4284-A2C5-F68C71B121DF
- Version start (inclusive):
cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*- Version start (inclusive):
5.1 - Version end (exclusive):
5.21.7 - NVD match criteria ID:
84E5D160-5D14-4E78-AEDD-E9906420FB2E
- Version start (inclusive):
cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*- Version start (inclusive):
6.0 - Version end (inclusive):
6.9 - NVD match criteria ID:
372FD242-9957-420D-BDDC-D4C81BB996D4
- Version start (inclusive):
Vulnerability 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.
Recommended Actions
Maintain the observed Atomicorp protections. Keep your Atomicorp commercial rules current and confirm that the selected observed rules (330791 , 340152 ) have not been locally disabled. Atomicorp commercial rules are enabled by default. If you use Atomic WAF, review the applicable policy and rule settings.
Apply the vendor’s remediation. WAF protection is defense in depth and does not replace upgrading or following the affected vendor’s guidance.
- Affected versions: Canonical LXD versions earlier than 4.0.13.
- Affected versions: Canonical LXD versions earlier than 5.0.9.
- Affected versions: Canonical LXD versions earlier than 5.21.7.
- Affected versions: Canonical LXD versions earlier than 6.10.
- Recommended upgrade: Upgrade Canonical LXD to 4.0.13 or later.
- Recommended upgrade: Upgrade Canonical LXD to 5.0.9 or later.
- Recommended upgrade: Upgrade Canonical LXD to 5.21.7 or later.
- Recommended upgrade: Upgrade Canonical LXD to 6.10 or later.
- CNA guidance source: canonical (opens in a new tab)
- Vendor recommendation: Upgrade to LXD versions 4.0.13, 5.0.9, 5.21.7, 6.10 or later.
Validate after changes. Confirm rule updates are current, review WAF events for the affected application, and test application behavior after vendor upgrades, mitigations, or local policy changes.
Research Notes
Atomicorp WAF protections are designed around attack techniques and exploit behaviors, allowing existing protections to apply across multiple vulnerabilities without requiring a unique rule for every CVE.
Public Vulnerability References
- NVD (opens in a new tab)
- CVE Record (opens in a new tab)
- Vendor advisory: https://github.com/canonical/lxd/security/advisories/GHSA-q39m-8fx9-42fv (opens in a new tab)
Test or Research Source
- Source: Exploit reference (github.com) (opens in a new tab)
- Tags: CVE-2026-66897, cve, exploitref, http, replay
Research Note Context
This research note documents exploit-technique analysis associated with this vulnerability and references Atomicorp WAF protections observed during engineering review, testing, or validation activities.
Atomicorp security controls are generally designed to identify and mitigate attack techniques and exploit behaviors rather than individual CVE identifiers. As a result, protections developed for one vulnerability may also apply to related attack variants and future vulnerabilities using similar techniques.
Learn More
Atomicorp develops commercially supported security technologies for web applications, servers, endpoints, workloads, and legacy enterprise platforms.
Organizations interested in protecting systems against exploit techniques associated with vulnerabilities such as this one can learn more about:
- Atomic ModSecurity Rules: commercially maintained WAF rules for ModSecurity deployments, including protections for web attacks, bots, scanners, malware, exploitation attempts, and emerging vulnerability classes.
- Atomic WAF: an enterprise web application firewall with Atomicorp rules, centralized management, reporting, authentication controls, and operational tooling.
- Atomic ModSecurity Integrator: a special licensing option for MSPs, MSSPs, OEMs, VARs, reverse proxy providers, and other integrators who want to incorporate Atomicorp ModSecurity rule technology into their own products or services.
- Atomic OSSEC: an enterprise OSSEC-based intrusion detection, compliance, and security monitoring platform.
- Atomic Protector: workload protection for Linux, web, cloud, data center, and hybrid environments.
For additional information, product evaluations, or technical discussions, visit https://www.atomicorp.com/ or https://modsecurity.io/ (opens in a new tab) .