CVE-2026-66897: Instance template path traversal allows arbitrary host file write as root

Published Aug 24, 2026
·
Updated

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.

Affected Software

1 affected component
Canonical LXD

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.0.13
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.0.9
  3. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 5.21.7
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.10

Event History

Aug 24, 2026
CVE Published
via MITRE·09:08 AM
Data Sourced
via MITRE·09:08 AM
RemedyDescriptionSeverityWeakness
Data Sourced
via NVD·10:16 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who should be considered exposed to exploitation?

LXD deployments where a user can edit container configuration or launch a crafted image are exposed. Either capability can provide the attacker-controlled template metadata needed to trigger the flaw.

2

What access does an attacker need before exploitation?

The attacker needs low-privileged access through either container edit permissions or the ability to launch a crafted image. No user interaction is required after that access is obtained.

3

What is the likely impact after successful exploitation?

An attacker can overwrite arbitrary root-owned files on the host and obtain host root code execution. The vulnerability affects confidentiality, integrity, and availability of the host system.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203