What’s Vulnerable › Vulnerabilities

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

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

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