CVE-2026-87798Canonical LXD link following
CVSS score
5.8
Medium
CVSS 3.1 from ubuntu.com
Exploit probability (EPSS)
0.19%
0.19% chance of exploitation in the next 30 days, higher than 8.42% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
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: NVD · CNA: security@ubuntu.com
How to fix it, step by step
Check whether you're affected
Find every system running Canonical LXD and compare its version with the affected versions.
Update to a fixed version
- Update LXD to 4.0.14, 5.0.10, 5.21.8, 6.9 or later, on the branch you run.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- Low
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- None
- Integrity
- High
- Availability
- None
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:N
Affected products
| Affected products | 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 |
Weakness
- CWE-59 link following
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-87798 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.2% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-87798?
CVE-2026-87798 has a CVSS 3.1 base score of 5.8 (medium).
Which versions are 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)
Is there a patch for CVE-2026-87798?
The official record links to vendor advisories or patches; see “What to do” above.
References
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.