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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-09-28 · Modified: 2026-09-28
- Aliases: UBUNTU-CVE-2026-87798, DEBIAN-CVE-2026-87798
- Record: https://cvemate.com/vulnerability/CVE-2026-87798 · JSON: https://cvemate.com/vulnerability/CVE-2026-87798/json

## Description

```text
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.
```

## Signals

- CVSS: 5.8 medium (v3.1, CVE.org) CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:N
- EPSS: 0.188%, percentile 8.818%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- canonical lxd: ≥ 4.0.2, \< 4.0.14 \| ≥ 5.0.0, \< 5.0.10 \| ≥ 5.21.0, \< 5.21.8 \| ≥ 6.0, \< 6.9
- debian lxd (Debian): All versions (No fix recorded)
- ubuntu lxd (Ubuntu): All versions (No fix recorded)

## References

- <https://github.com/canonical/lxd/security/advisories/GHSA-mr8v-hx34-hfvf>
- <https://ubuntu.com/security/CVE-2026-87798>
- <https://www.cve.org/CVERecord?id=CVE-2026-87798>
- <https://security-tracker.debian.org/tracker/CVE-2026-87798>

---

Data as of 2026-12-05T02:45:52.132Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
