CVE-2026-140086 PUBLISHED

lxd: Improper link resolution before file access in lxc image export

Assigner: canonical
Reserved: 30.11.2026 Published: 01.12.2026 Updated: 01.12.2026

Improper link resolution before file access in the lxc image export command in Canonical LXD before 4.0.16, 5.0.12, 5.21.10, 6.10.2 allows the operator of a malicious public image remote to overwrite files writable by the invoking user, up to executing attacker-chosen commands as that user by replacing a shell startup file, via a one-character remote-supplied image fingerprint that the client accepts with a SHA-256 prefix check and uses as the default export output path, which follows local symlinks planted in the working directory.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:A/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N
CVSS Score: 7.5

Product Status

Vendor Canonical
Product LXD
Versions Default: unaffected
  • affected from 4.0 to 4.0.16 (excl.)
  • affected from 4.0 to 5.0.12 (excl.)
  • affected from 4.0 to 5.21.10 (excl.)
  • affected from 4.0 to 6.10.2 (excl.)

Credits

  • Rex Liu reporter

References

Problem Types

  • CWE-59 Improper Link Resolution Before File Access CWE