CVE-2026-140086
lxd: Improper link resolution before file access in lxc image export
Check your servers for CVE-2026-140086
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-140086 affects lxd, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
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.
Severity (CVSS)
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
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- high: an attack depends on conditions outside the control of the attacker, such as a race
- Attack requirements
- none: an attack works without special conditions on the target
- Privileges required
- none: the attacker does not need an account
- User interaction
- active: a user has to take a deliberate step, such as installing or running something
- Impact on the vulnerable system
- confidentiality high, integrity high, availability low: what an attacker can read, change or stop in the vulnerable component
- Impact on other systems
- confidentiality none, integrity none, availability none: what an attacker can read, change or stop beyond it
Weakness
- CWE-59 Improper Link Resolution Before File Access
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
LXD
package
lxd |
affected from 4.0, before 4.0.16 affected from 4.0, before 5.0.12 affected from 4.0, before 5.21.10 affected from 4.0, before 6.10.2
Other versions: unaffected
|
Is my server affected?
Find the installed version of lxd and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i lxd
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2026-140086 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2026-140086RHEL, Rocky, Alma, Fedora
rpm -q lxd
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2026-140086Alpine
apk list --installed | grep -i lxdWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-140086
trivy image --scanners vuln IMAGE | grep CVE-2026-140086
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://github.com/canonical/lxd/security/advisories/GHSA-5jh2-v77p-jr6q github.com · vendor advisory
Source: the record CVE-2026-140086 of the CVE List (CVE Program), CVE Terms of Use; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse