CVE-2026-87798 Details
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.
A vulnerability exists in the LXD CLI client of Canonical LXD, specifically in versions 4.0.2 prior to 6.9, with the exception of 4.0.14, 5.0.10, and 5.21.8, on Linux. This vulnerability allows an attacker with root access inside a virtual machine to write files or directory trees, controlled by the attacker, to arbitrary paths on the client host, using the privileges of the operator. The exploitation involves a modified lxd-agent that provides inconsistent SFTP directory listings and Lstat results, which the LXD client fails to properly validate.
Users can avoid this vulnerability by not using 'lxd file pull -r' from untrusted virtual machines, or by running the command as an unprivileged user into a dedicated directory.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Sep 28, 2026CISA-ADP
Assessed Sep 28, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/canonical/lxd/security/advisories/GHSA-mr8v-hx34-hfvf | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-59 | Improper Link Resolution Before File Access ('Link Following') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Canonical LXD | >= 4.0.2, < 6.9 |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Sep 28, 2026 | CVE Modified | CISA-ADP |
| Sep 28, 2026 | New CVE Received | [email protected] |
Volerion