CVE-2026-16033: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Canonical LXD
A path traversal vulnerability in LXD allows an attacker to achieve arbitrary host file read or unconstrained file creation. When processing image metadata templates, LXD fails to properly sanitize or restrict template file paths from escaping the instance templates directory (specifically affecting virtual machine / QEMU driver execution paths). An attacker can exploit this flaw by providing a crafted image archive with malicious template directives containing path traversal sequences, causing LXD to access or write files outside the intended template directory on the host system.
AI Analysis
Technical Summary
This vulnerability in LXD arises from improper limitation of pathname to a restricted directory (CWE-22). When processing image metadata templates, LXD fails to properly sanitize or restrict template file paths, allowing an attacker to escape the instance templates directory. By supplying a malicious image archive with crafted template directives containing path traversal sequences, an attacker can cause LXD to read or write files outside the intended directory on the host system. This affects virtual machine and QEMU driver execution paths in LXD versions 4.0.0, 5.0.0, and all versions from 4.0.0 up to but not including 4.0.12, and from 5.0.0 up to but not including 5.0.8.
Potential Impact
Successful exploitation can lead to arbitrary host file read, potentially exposing sensitive information, and unconstrained file creation outside the intended directory, which may allow limited host file modification. The CVSS score is 8.5 (high severity) with impact on confidentiality (high), integrity (low), and no impact on availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary workaround is indicated in the provided data. Users should monitor Canonical's advisories for patches addressing this vulnerability and avoid processing untrusted image archives with LXD until a fix is available.
CVE-2026-16033: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in Canonical LXD
Description
A path traversal vulnerability in LXD allows an attacker to achieve arbitrary host file read or unconstrained file creation. When processing image metadata templates, LXD fails to properly sanitize or restrict template file paths from escaping the instance templates directory (specifically affecting virtual machine / QEMU driver execution paths). An attacker can exploit this flaw by providing a crafted image archive with malicious template directives containing path traversal sequences, causing LXD to access or write files outside the intended template directory on the host system.
CVSS v3.1
Score 8.5high
Affected software
Canonical
LXD
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in LXD arises from improper limitation of pathname to a restricted directory (CWE-22). When processing image metadata templates, LXD fails to properly sanitize or restrict template file paths, allowing an attacker to escape the instance templates directory. By supplying a malicious image archive with crafted template directives containing path traversal sequences, an attacker can cause LXD to read or write files outside the intended directory on the host system. This affects virtual machine and QEMU driver execution paths in LXD versions 4.0.0, 5.0.0, and all versions from 4.0.0 up to but not including 4.0.12, and from 5.0.0 up to but not including 5.0.8.
Potential Impact
Successful exploitation can lead to arbitrary host file read, potentially exposing sensitive information, and unconstrained file creation outside the intended directory, which may allow limited host file modification. The CVSS score is 8.5 (high severity) with impact on confidentiality (high), integrity (low), and no impact on availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or temporary workaround is indicated in the provided data. Users should monitor Canonical's advisories for patches addressing this vulnerability and avoid processing untrusted image archives with LXD until a fix is available.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- canonical
- Date Reserved
- 2026-07-17T08:44:31.450Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a7cd702bf8831d5391e9f01
Added to database: 08/12/2026, 20:26:42 UTC
Last enriched: 08/12/2026, 20:43:07 UTC
Last updated: 09/25/2026, 01:47:41 UTC
Views: 27
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.