CVE-2026-87798 in Canonical Lxd
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...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, high complexity, low privileges required, requires user interaction, can impact systems beyond the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Canonical | Lxd | ≥ 4.0.2, < 4.0.14 ≥ 5.0.0, < 5.0.10 ≥ 5.21.0, < 5.21.8 ≥ 6.0, < 6.9 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
No official vendor advisory link on record. See the CVE record.
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2026-87798 |
|---|---|
| CVSS vector | CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:N |
| Published | 2026-09-28 |
| Last modified | 2026-09-28 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-59: Improper Link Resolution Before File Access
Software follows symbolic links without verifying the target, allowing read, write, or delete of unintended files.
Related attack patterns (CAPEC)
CAPEC-35 Leverage Executable Code in Non-Executable Files via CWE-59
CAPEC-76 Manipulating Web Input to File System Calls via CWE-59
CAPEC-132 Symlink Attack via CWE-59
CAPEC-17 Using Malicious Files via CWE-59
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A medium severity vulnerability (CVE-2026-87798) affects the target system. 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-c...
Questions
What is CVE-2026-87798?
A medium severity vulnerability (CVE-2026-87798) affects the target system. 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-c...
What is the CVSS score for CVE-2026-87798?
CVE-2026-87798 has CVSS 5.8 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:N. EPSS: 0.3%.
Is CVE-2026-87798 actively exploited?
No confirmed active exploitation of CVE-2026-87798 as of 2026-09-29.
How do I remediate CVE-2026-87798?
Apply vendor patches for CVE-2026-87798. Monitor Canonical advisories.
What systems are affected by CVE-2026-87798?
CVE-2026-87798 affects Canonical Lxd.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Canonical","product":"Lxd","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-09-28.