CVE & CISA-KEV Catalog

CVE-2026-66897

CRITICAL
9.9
CVSS v3
NVD

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.

How to fix

Remediation Available
lxdNVD
Affected:>= 5.1, < 5.21.7Fixed in:5.21.7CVE-2026-66897derived from NVD
Affected:< 4.0.13Fixed in:4.0.13CVE-2026-66897derived from NVD
Affected:>= 5.0.0, < 5.0.9Fixed in:5.0.9CVE-2026-66897derived from NVD

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredLow
User InteractionNone
ScopeChanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Exploit Intelligence

0.67%probability of exploitation in 30 days
50thpercentile

Moderate risk: more likely to be exploited than 50% of all known CVEs.

References

Exploit1

Related Vulnerabilities

Other CWE-22 (Path Traversal) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2024-23897Critical9.8100%KEV + RansomFix
CVE-2023-32315High8.6100%KEVFix
CVE-2022-29464Critical9.8100%KEV + Ransom-
CVE-2021-26086Medium5.3100%KEVFix
CVE-2021-22005Critical9.8100%KEV + RansomFix
CVE-2020-5902Critical9.8100%KEV + RansomFix

Common questions

How do I fix CVE-2026-66897?

Upgrade lxd to 5.21.7 or later.

Is CVE-2026-66897 being actively exploited?

Not that we know of. CVE-2026-66897 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.67% is the estimated probability that it will be exploited in the next 30 days. That is higher than 50% of all scored CVEs.

How severe is CVE-2026-66897?

CVE-2026-66897 has a CVSS v3 base score of 9.9, rated critical. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2026-66897 affect?

Published advisories record a fix for lxd (NVD). Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2026-66897
CVE-2026-66897 severity badge

Markdown

[![CVE-2026-66897](https://tridentstack.com/cve/badge/CVE-2026-66897.svg)](https://tridentstack.com/cve/CVE-2026-66897)

HTML

<a href="https://tridentstack.com/cve/CVE-2026-66897"><img src="https://tridentstack.com/cve/badge/CVE-2026-66897.svg" alt="CVE-2026-66897"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Scan your fleet freeStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-09-11.