Skip to main content

CVE-2026-87798: CWE-59 Improper link resolution before file access ('link following') in Canonical LXD

0
Medium
VulnerabilityCVE-2026-87798cvecve-2026-87798cwe-59
Published: 09/28/2026 (09/28/2026, 13:22:36 UTC)
Source: CVE Database V5
Vendor/Project: Canonical
Product: LXD

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.

CVSS v3.1

Score 5.8medium

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
None
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:N

Affected software

Canonical

LXD

Affected versions
>=4.0.2 <4.0.14>=5.0.0 <5.0.10>=5.21.0 <5.21.8>=6.0 <6.9
GitHub Actionsmore threats →cve
LXD
pkg:github/LXD
Affected versions
>=4.0.2 <4.0.14>=5.0.0 <5.0.10>=5.21.0 <5.21.8>=6.0 <6.9

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/28/2026, 13:48:27 UTC

Technical Analysis

CVE-2026-87798 is a CWE-59 improper link resolution vulnerability in the recursive file pull feature of the LXD CLI client in Canonical LXD. It allows an attacker with root access inside a VM to write attacker-controlled files or directory trees to arbitrary paths on the client host by exploiting inconsistent SFTP directory listings and Lstat results returned by a modified lxd-agent. The vulnerability affects multiple LXD versions from 4.0.2 up to but excluding 4.0.14, 5.0.0 up to but excluding 5.0.10, 5.21.0 up to but excluding 5.21.8, and 6.0 up to but excluding 6.9. Fixes have been released in versions 4.0.14, 5.0.10, and 5.21.8.

Potential Impact

An attacker with root access inside a virtual machine can leverage this vulnerability to write files or directories to arbitrary locations on the host system with the privileges of the operator running the LXD client. This could lead to unauthorized modification of host files and potential privilege escalation. The vulnerability does not affect confidentiality or availability but impacts integrity.

Mitigation Recommendations

Upgrade affected LXD CLI client versions to 4.0.14, 5.0.10, 5.21.8, or later where the issue is fixed. No other mitigation or temporary workaround is indicated. Patch status is confirmed fixed in these versions.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
canonical
Date Reserved
2026-09-09T10:00:46.383Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 6aba6ca0f7a7c54106b9890b

Added to database: 09/28/2026, 13:33:20 UTC

Last enriched: 09/28/2026, 13:48:27 UTC

Last updated: 09/29/2026, 01:57:22 UTC

Views: 15

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses