{"id":"CVE-2026-140086","aliases":["DEBIAN-CVE-2026-140086","EUVD-2026-140681","GHSA-5jh2-v77p-jr6q","UBUNTU-CVE-2026-140086"],"status":"published","title":"lxd: Improper link resolution before file access in lxc image export","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":{"version":"4.0","score":7.5,"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","level":"high","assessor":"cna","from":"cve","others":[{"version":"4.0","score":7.5,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high","from":"osv"}]},"epss":{"day":"2026-12-04","score":0.00503,"percentile":0.44662,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-59"],"published":"2026-12-01T21:01:58Z","modified":"2026-12-04T18:45:23Z","affected":[{"source":"osv","ecosystem":"Debian:12","package":"lxd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.0.2+git20231211.1364ae4-1","5.0.2+git20231211.1364ae4-2","5.0.2+git20231211.1364ae4-3","5.0.2+git20231211.1364ae4-4","5.0.2+git20231211.1364ae4-5","5.0.2+git20231211.1364ae4-6","5.0.2+git20231211.1364ae4-7","5.0.2+git20231211.1364ae4-8","5.0.2+git20231211.1364ae4-9","5.0.2-5","5.0.2-5+deb12u1","5.0.2-5+deb12u2","5.0.2-5+deb12u3","5.0.2-5+deb12u4","5.0.2-5+deb12u5","5.0.2-5+deb12u6","5.0.2-6"]},{"source":"osv","ecosystem":"Debian:13","package":"lxd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["5.0.2+git20231211.1364ae4-9","5.0.2+git20231211.1364ae4-9+deb13u1","5.0.2+git20231211.1364ae4-9+deb13u2","5.0.2+git20231211.1364ae4-9+deb13u3","5.0.2+git20231211.1364ae4-9+deb13u4","5.0.2+git20231211.1364ae4-9+deb13u5","5.0.2+git20231211.1364ae4-9+deb13u6","5.0.2+git20231211.1364ae4-9+deb13u7"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"lxd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.20-0ubuntu4","0.21-0ubuntu3","0.21-0ubuntu5","0.22-0ubuntu1","0.22-0ubuntu2","0.23-0ubuntu1","0.23-0ubuntu2","0.23-0ubuntu3","0.24-0ubuntu2","0.24-0ubuntu3","0.24-0ubuntu4","0.25-0ubuntu1","0.26-0ubuntu2","0.26-0ubuntu3","0.27-0ubuntu1","0.27-0ubuntu2","2.0.0~beta1-0ubuntu3","2.0.0~beta1-0ubuntu4","2.0.0~beta2-0ubuntu1","2.0.0~beta2-0ubuntu2","2.0.0~beta3-0ubuntu1","2.0.0~beta3-0ubuntu2","2.0.0~beta3-0ubuntu3","2.0.0~beta3-0ubuntu4","2.0.0~beta4-0ubuntu1","2.0.0~beta4-0ubuntu2","2.0.0~beta4-0ubuntu3","2.0.0~beta4-0ubuntu4","2.0.0~beta4-0ubuntu5","2.0.0~beta4-0ubuntu6","2.0.0~beta4-0ubuntu7","2.0.0~rc1-0ubuntu1","2.0.0~rc1-0ubuntu2","2.0.0~rc1-0ubuntu3","2.0.0~rc2-0ubuntu2","2.0.0~rc2-0ubuntu3","2.0.0~rc3-0ubuntu1","2.0.0~rc3-0ubuntu2","2.0.0~rc3-0ubuntu3","2.0.0~rc3-0ubuntu4","2.0.0~rc4-0ubuntu1","2.0.0~rc5-0ubuntu1","2.0.0~rc6-0ubuntu1","2.0.0~rc6-0ubuntu2","2.0.0~rc7-0ubuntu1","2.0.0~rc7-0ubuntu2","2.0.0~rc8-0ubuntu1","2.0.0~rc8-0ubuntu2","2.0.0~rc8-0ubuntu3","2.0.0~rc8-0ubuntu5","2.0.0~rc8-0ubuntu6","2.0.0~rc8-0ubuntu7","2.0.0~rc9-0ubuntu2","2.0.0~rc9-0ubuntu3","2.0.0~rc9-0ubuntu4","2.0.0~rc9-0ubuntu5","2.0.0-0ubuntu1","2.0.0-0ubuntu2","2.0.0-0ubuntu3","2.0.0-0ubuntu4","2.0.1-0ubuntu1~16.04.1","2.0.2-0ubuntu1~16.04.1","2.0.3-0ubuntu1~ubuntu16.04.2","2.0.4-0ubuntu1~ubuntu16.04.1","2.0.5-0ubuntu1~ubuntu16.04.1","2.0.8-0ubuntu1~ubuntu16.04.1","2.0.8-0ubuntu1~ubuntu16.04.2","2.0.9-0ubuntu1~16.04.1","2.0.9-0ubuntu1~16.04.2","2.0.10-0ubuntu1~16.04.1","2.0.10-0ubuntu1~16.04.2","2.0.11-0ubuntu1~16.04.2","2.0.11-0ubuntu1~16.04.4","2.0.11-0ubuntu1~16.04.4+esm1","2.0.11-0ubuntu1~16.04.4+esm2","2.0.11-0ubuntu1~16.04.4+esm3"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"lxd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.18-0ubuntu6","2.19-0ubuntu1","2.20-0ubuntu3","2.20-0ubuntu4","2.21-0ubuntu1","2.21-0ubuntu2","2.21-0ubuntu3","2.21-0ubuntu4","3.0.0~beta2-0ubuntu3","3.0.0~beta3-0ubuntu3","3.0.0~beta5-0ubuntu2","3.0.0~beta7-0ubuntu1","3.0.0-0ubuntu1","3.0.0-0ubuntu2","3.0.0-0ubuntu3","3.0.0-0ubuntu4","3.0.1-0ubuntu1~18.04.1","3.0.2-0ubuntu1~18.04.1","3.0.3-0ubuntu1~18.04.1","3.0.3-0ubuntu1~18.04.2","3.0.3-0ubuntu1~18.04.2+esm1","3.0.3-0ubuntu1~18.04.2+esm2","3.0.3-0ubuntu1~18.04.2+esm3"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"lxd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1:0.7","1:0.8","1:0.9","1:0.10"]}],"products":[{"vendor":"canonical","product":"lxd"}],"references":[{"url":"https://github.com/canonical/lxd/security/advisories/GHSA-5jh2-v77p-jr6q","tags":["vendor-advisory","advisory","report"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/140xxx/CVE-2026-140086.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-140086","tags":["advisory"]},{"url":"https://github.com/canonical/lxd","tags":["package"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-140086","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-140086","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-140086","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2026-140086","title":"lxd: Improper link resolution before file access in lxc image export","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.","status":"published","published":"2026-12-01T21:01:58.163Z","modified":"2026-12-04T16:58:22.06Z","cvss":[{"version":"4.0","score":7.5,"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","level":"high","assessor":"cna"}],"cwes":["CWE-59"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"total","date":"2026-12-04"},"updated_at":"2026-12-04T17:09:33.093699Z"}],"euvd":[{"id":"EUVD-2026-140681","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.","status":"published","published":"2026-12-01T21:01:58Z","modified":"2026-12-04T16:58:22Z","cvss":[{"version":"4.0","score":7.5,"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","level":"high"}],"updated_at":"2026-12-01T22:20:53.110688Z"}],"nvd":[{"id":"CVE-2026-140086","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.","status":"published","published":"2026-12-01T21:17:09.26Z","modified":"2026-12-04T17:19:07.733Z","cvss":[{"version":"4.0","score":7.5,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high","assessor":"secondary"}],"cwes":["CWE-59"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"total","date":"2026-12-04"},"updated_at":"2026-12-04T17:26:29.876621Z"}],"osv":[{"id":"CVE-2026-140086","title":"lxd: Improper link resolution before file access in lxc image export","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.","status":"published","published":"2026-12-01T21:01:58.163Z","modified":"2026-12-04T18:45:23.475209253Z","cvss":[{"version":"4.0","score":7.5,"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","level":"high"}],"cwes":["CWE-59"],"updated_at":"2026-12-02T21:28:42.350468Z"},{"id":"DEBIAN-CVE-2026-140086","upstream":["CVE-2026-140086"],"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.","status":"published","published":"2026-12-01T21:17:09.26Z","modified":"2026-12-03T00:00:05.743727541Z","cvss":[{"version":"4.0","score":7.5,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"high"}],"updated_at":"2026-12-03T00:33:20.774422Z"},{"id":"UBUNTU-CVE-2026-140086","upstream":["CVE-2026-140086"],"description":"(Improper link resolution before file access in the lxc image export co ...)","status":"published","published":"2026-12-02T00:00:00Z","modified":"2026-12-03T20:48:20.988150414Z","updated_at":"2026-12-03T21:13:04.052985Z"}]}}
