Medium severity · published Sep 28, 2026
CVE-2026-87798
LXD client recursive file pull allows directory escape via malicious VM agent
5.8
CVSS
0.2%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:N
Attack vector
Network
Complexity
High
Privileges
Low
User interaction
Required
Confidentiality
None
Integrity
High
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 8% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LX
LXD · Canonical
4.0.2 before 4.0.14; 5.0.0 before 5.0.10; 5.21.0 before 5.21.8; 6.0 before 6.9 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-87798
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-87798
vendor-advisory
https://github.com/canonical/lxd/security/advisories/GHSA-mr8v-hx34-hfvf
More from LXD
9.9
CVE-2026-87799
Arbitrary file write on LXD host via symlink in migration stream
9.9
CVE-2026-85526
Path traversal via Btrfs optimized-backup subvolumes[].path enables root file/dir manipulation in LXD
9.9
CVE-2026-66897
Instance template path traversal allows arbitrary host file write as root
9.9
CVE-2026-66898
Path traversal via unvalidated instance name in backup tarball restore enables root file write / RCE
9.9
CVE-2026-63293
Arbitrary File Read/Write: metadata.yaml symlink in image allows host filesystem access as root
