CVE-2026-87798

published 28 Sep 2026 · updated 28 Sep 2026

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

5.8MediumCVSS 5.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 4.0.14, 5.0.10, 5.21.8 and 1 more.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Canonical>=4.0.2 <4.0.14, >=5.0.0 <5.0.10, >=5.21.0 <5.21.8, >=6.0 <6.94.0.14, 5.0.10, 5.21.8, 6.9

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-87798 severity on Zeptric[![CVE-2026-87798](https://zeptric.io/badge/cve/CVE-2026-87798.svg)](https://zeptric.io/cve/CVE-2026-87798)