What’s Vulnerable › Vulnerabilities
CVE-2026-87798: LXD client recursive file pull allows directory escape via malicious VM agent
- Severity: medium (CVSS 5.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2026-09-28 · updated 2026-09-28
- Weakness: CWE-59
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 products
- Canonical LXD: from 4.0.2 before 4.0.14; from 5.0.0 before 5.0.10; from 5.21.0 before 5.21.8; from 6.0 before 6.9 — fixed in 4.0.14, 5.0.10, 5.21.8, 6.9
How to fix
Upgrade to a fixed version: Canonical LXD 4.0.14, 5.0.10, 5.21.8, 6.9. Check the vendor advisory for mitigations.
References
Get alerted when CVE-2026-87798 or the next vulnerability affects your stack