Vulnerability · Published Sep 28, 2026 · Assigned by canonical

CVE-2026-87798LXD client recursive file pull allows directory escape via malicious VM agent

Medium 5.8

In plain English

A medium-severity security flaw in LXD from Canonical. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 9% of all known vulnerabilities).

Severity (CVSS 3.1)5.8Medium
Exploit odds (30 days)0.2%top 91.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Improper link resolution in the recursive file pull feature of the LXD CLI client in Canonical LXD versions 4.0.2 up to 6.9 (fixed in 4.0.14, 5.0.10 and 5.21.8) on Linux allows an attacker with root access inside a virtual machine to write attacker-controlled files or directory trees to arbitrary paths on the client host, with the operator's privileges. The attacker does this by using a modified lxd-agent that returns inconsistent SFTP directory listings and Lstat results.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12lxdno fix listedDEBIAN-CVE-2026-87798
Debian:13lxdno fix listedDEBIAN-CVE-2026-87798

Affected products (as reported)

VendorProductVersions
Canonical LXD 4.0.2 – before 4.0.145.0.0 – before 5.0.105.21.0 – before 5.21.86.0 – before 6.9

Weakness: CWE-59 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:N

References