CVE-2026-87798GHSA-mr8v-hx34-hfvf
LXD client recursive file pull allows directory escape via malicious VM agent
Canonical LXD
CVSS
5.8MediumExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.19%Chance of exploitation activity in the next 30 days, higher than 7% of CVEs. Scored 23 Oct 2026FIRST EPSS
What fixes it
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
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.
Text from CVE List
Affected versions 4
- LXDaffected: 4.0.2 before 4.0.14CVE List
- LXDaffected: 5.0.0 before 5.0.10CVE List
- LXDaffected: 5.21.0 before 5.21.8CVE List
- LXDaffected: 6.0 before 6.9CVE List