Servers and applications
CVE-2026-140086
lxc image export short-fingerprint symlink traversal
- Severity
- High 7.5
- Published
- 1 Dec 2026
- Last changed
- 1 Dec 2026
- Added to UpHeron
- 1 Dec 2026
- Fixed in
- 4.0.16, 5.0.12, 5.21.10, 6.10.2
- Weakness
- Link following (CWE-59)
- Attack
- Over the network · Only under certain conditions · No login needed · Needs someone to click or open something
- Attacker can
- Read data · Change data · Slow it down
- 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- Also known as
- GHSA-5jh2-v77p-jr6q
- Sources
- CVE Program, Project advisories (GitHub)
Description
A malicious public LXD image remote can return a one-character image fingerprint, which the client accepts because it checks that the downloaded SHA-256 starts with the returned value. lxc image export uses that remote value as its default output path and resolves local symlinks before opening the file. If a victim runs the command from an attacker-supplied directory containing symlinks to a caller-writable file, the image bytes replace that file; a shell startup file can then execute attacker-controlled commands as the invoking user. This was reproduced with the pinned client source and a full-fingerprint control.
The supported lxc image export REMOTE:ALIAS path resolves the alias in cmdImage.dereferenceAlias, then reads the image object from the remote. ProtocolLXD.GetPrivateImage unmarshals that object and returns it without validating the Fingerprint field. In cmdImageExport.run, the default output target is the current directory and targetMeta is set to image.Fingerprint.
Affected software
| Software | Affected versions |
|---|---|
LXDServers and applications · cna:canonical|lxd |
|
LXDServers and applications · github:canonical/lxd |
|
About LXD
container manager for system containers
- GitHub stars
- 4,861GitHub, 29 Nov 2026
- Forks
- 1,080GitHub, 29 Nov 2026
- Latest release
- lxd-6.10.2GitHub, 29 Nov 2026
- Released
- 26 Nov 2026GitHub
- Developer
- Stéphane GraberWikidata
- License
- AGPL-3.0GitHub
- Written in
- GoWikidata
- First released
- 4 Nov 2014Wikidata
- First published on GitHub
- 4 Nov 2014GitHub
Vulnerabilities in LXD
- In our list
- 93
- Published in the last 12 months
- 77
- Critical, last 12 months
- 26
- High, last 12 months
- 13
- Known exploited
- 0
- CVE-2026-127156Archive-supplied device node gives an unprivileged container raw access to host block devicesMedium 6.5 1 Dec 2026
- CVE-2026-127155Restricted clients can exhaust LXD memory through unbounded request bodies on upload endpointsHigh 7.1 1 Dec 2026
- CVE-2026-127159Migration peers can force unbounded memory allocation on the receiving daemonHigh 7.1 1 Dec 2026
- CVE-2026-140085snap: HOME=/tmp/ is inherited by host commands run via run-host; root `pro` (Python) uses a per-user site directory under world-writable /tmpHigh 7.3 1 Dec 2026
- CVE-2026-140084Fine-grained project users on LXD 5.21 can create resources in the default project, bypassing project isolation (host root via `raw.dnsmasq`)Medium 6.5 1 Dec 2026
- CVE-2026-122225VM backup config symlink makes the root daemon bind-mount host directories into the guestMedium 6.4 26 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-140086
- GitHub Advisory Database https://github.com/advisories/GHSA-5jh2-v77p-jr6q
- github.com https://github.com/canonical/lxd/security/advisories/GHSA-5jh2-v77p-jr6q