Skip to content
OpenAdvisories
Medium · 5.8 CVE-2026-87798 EUVD-2026-88261

LXD client recursive file pull allows directory escape via malicious VM agent

Published Sep 28, 2026 · Updated Sep 28, 2026 · Assigned by canonical

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.

Affected products

VendorProductAffectedFixed
Canonical LXD 4.0.2 – < 4.0.14, 5.0.0 – < 5.0.10, 5.21.0 – < 5.21.8, 6.0 – < 6.9 4.0.14

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 13 lxd No fix yet —
Debian 12 lxd No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS lxd No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS lxd No fix yet —
Ubuntu Pro 16.04 LTS lxd No fix yet —

References