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

- Severity: Medium 5.8 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-09-28T13:22:36.561Z
- Modified: 2026-09-28T17:17:51.673Z
- Weaknesses: CWE-59
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: canonical

## 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.

(As written by CVE List.)

## Affected

- 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

## References

- <https://github.com/canonical/lxd/security/advisories/GHSA-mr8v-hx34-hfvf> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-87798](https://www.cve.org/CVERecord?id=CVE-2026-87798), CVE Terms of Use, modified 2026-09-28
- NVD: [CVE-2026-87798](https://nvd.nist.gov/vuln/detail/CVE-2026-87798), Public domain, modified 2026-09-28

---

Page: https://cve.day/CVE-2026-87798 · Whole record: https://cve.day/CVE-2026-87798.json · Rebuilt by cve.day 2026-11-25T22:59:41.339Z
