CVE-2026-87798

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

State
Published
Severity
5.8 Medium
Published
Sep 28, 2026
Updated
Sep 28, 2026
Reserved
Sep 9, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.8 MediumCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:N/I:H/A:Ncanonical

Weaknesses

  • CWE-59 Improper link resolution before file access ('link following')

Affected Products

ProductVersions
LXDCanonical
  • 4.0.2 to before 4.0.14Affected
  • 5.0.0 to before 5.0.10Affected
  • 5.21.0 to before 5.21.8Affected
  • 6.0 to before 6.9Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.