CVE-2026-140086: lxd: Improper link resolution before file access in lxc image export

Published Dec 1, 2026
·
Updated

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.

Affected Software

1 affected component
Canonical LXD<4.0.16, <5.0.12, <5.21.10, <6.10.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade canonical/lxd to a version that resolves this vulnerability.

    Fixed in 4.0.16
  2. Upgrade

    Upgrade canonical/lxd to a version that resolves this vulnerability.

    Fixed in 5.0.12
  3. Upgrade

    Upgrade canonical/lxd to a version that resolves this vulnerability.

    Fixed in 5.21.10
  4. Upgrade

    Upgrade canonical/lxd to a version that resolves this vulnerability.

    Fixed in 6.10.2

Event History

Dec 1, 2026
CVE Published
via MITRE·09:01 PM
Data Sourced
via MITRE·09:01 PM
DescriptionWeakness
Data Sourced
via OSV·09:01 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to exploitation?

Users who run the lxc image export command against a malicious public image remote are exposed if an attacker can influence the remote-supplied image fingerprint and has planted a symlink in that user's working directory. The impact is limited to files writable by the user invoking the command.

2

What does an attacker need to exploit this?

The attacker needs to operate or control a malicious public image remote and provide a one-character image fingerprint accepted by the client's SHA-256 prefix check. They also need a local symlink to exist in the directory from which the user runs the export command, pointing to a file the user can write.

3

Can this lead to command execution?

Yes. By causing an export to overwrite a shell startup file writable by the invoking user, an attacker can arrange for attacker-chosen commands to run as that user when the shell startup file is processed.

4

What versions contain the fix?

The issue affects Canonical LXD versions before 4.0.16, 5.0.12, 5.21.10, and 6.10.2. Updating to the applicable listed version or later addresses the vulnerable export behavior.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203