CVE-2026-87798

NameCVE-2026-87798
DescriptionImproper 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
lxd (PTS)bookworm, bookworm (security)5.0.2-5+deb12u6vulnerable
trixie (security), trixie5.0.2+git20231211.1364ae4-9+deb13u7vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
lxdsourcebookworm(unfixed)end-of-life
lxdsource(unstable)(unfixed)

Notes

[bookworm] - lxd <end-of-life> (EOL in bookworm LTS)
https://github.com/canonical/lxd/security/advisories/GHSA-mr8v-hx34-hfvf

Search for package or bug name: Reporting problems