Description
Path traversal in the CLI client image export and copy functionality in Canonical LXD from 4.0.2 before 4.0.14, 5.0.10, 5.21.8, and 6.10 on all platforms allows a remote malicious or machine-in-the-middle image server to overwrite arbitrary local files and execute code on the client system via a crafted Content-Disposition header filename parameter during unified image export or copy operations into a local directory target.
Published: 2026-09-28
Score: 4.2 Medium
EPSS: n/a
KEV: No
Impact: Remote code execution via local file overwrite
Action: Immediate Patch
AI Analysis

Impact

The vulnerability is a path traversal flaw in the LXD CLI client that handles image export and copy operations. By supplying a malicious Content-Disposition header with a crafted filename, an attacker can cause the client to write files outside the intended directory. If the overridden file is executable or a critical system file, this can lead to arbitrary code execution or system compromise. The flaw originates from improper validation of the header value during the unified image export and copy features.

Affected Systems

Canonical LXD consumers using versions 4.0.2 through 4.0.13, 5.0.0 through 5.0.9, 5.21.0 through 5.21.7, and 6.0.0 through 6.9.9 on all supported platforms are affected.

Risk and Exploitability

The CVSS score of 4.2 indicates a moderate severity. No EPSS score is available, and the vulnerability is not listed in the CISA KEV catalog, suggesting a lower likelihood of widespread exploitation. However, the attack vector is inferred to be remote or MITM image servers communicating with a client that performs an export or copy. Successful exploitation requires the attacker to supply a crafted image file and direct the LXD client to download it, making it a targeted rather than mass exploitation scenario.

Generated by OpenCVE AI on September 28, 2026 at 15:30 UTC.

Remediation

Vendor Solution

Upgrade to LXD versions 4.0.14, 5.0.10, 5.21.8, 6.10 or later.


OpenCVE Recommended Actions

  • Upgrade Canonical LXD to version 4.0.14, 5.0.10, 5.21.8, 6.10 or later.
  • Restrict image source connections to trusted servers and validate the Content-Disposition header before downloading images.
  • Monitor and audit local file writes performed by the LXD client for unexpected changes.

Generated by OpenCVE AI on September 28, 2026 at 15:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 28 Sep 2026 18:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 28 Sep 2026 15:15:00 +0000

Type Values Removed Values Added
First Time appeared Canonical
Canonical lxd
Vendors & Products Canonical
Canonical lxd

Mon, 28 Sep 2026 13:30:00 +0000

Type Values Removed Values Added
Description Path traversal in the CLI client image export and copy functionality in Canonical LXD from 4.0.2 before 4.0.14, 5.0.10, 5.21.8, and 6.10 on all platforms allows a remote malicious or machine-in-the-middle image server to overwrite arbitrary local files and execute code on the client system via a crafted Content-Disposition header filename parameter during unified image export or copy operations into a local directory target.
Title CLI Path Traversal via Content-Disposition in LXD Image Export/Copy
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 4.2, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:L/A:L'}


cve-icon MITRE

Status: PUBLISHED

Assigner: canonical

Published:

Updated: 2026-09-28T17:56:11.126Z

Reserved: 2026-09-07T08:01:22.941Z

Link: CVE-2026-86334

cve-icon Vulnrichment

Updated: 2026-09-28T17:56:03.588Z

cve-icon NVD

Status : Deferred

Published: 2026-09-28T14:17:20.590

Modified: 2026-09-28T18:17:25.683

Link: CVE-2026-86334

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-28T15:45:02Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')