github.com/canonical/lxd · LXD has arbitrary file read+write on host via templates/ symlink in malicious image
Affects github.com/canonical/lxdSource GCVE Database
CVSS 9.9 Critical : upgrade to 0.0.0-20260203144152-d1c8ba15d160 as a priority.
Data as of 6 Nov 2026, 19:04 UTC
- Patch
- Available – fixed in 0.0.0-20260203144152-d1c8ba15d160
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:HWhat to do
Upgrade github.com/canonical/lxd to 0.0.0-20260203144152-d1c8ba15d160.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| Gogithub.com/canonical/lxd | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available in LXD version 0.0.0-20260203144152-d1c8ba15d160 that addresses this vulnerability. Users should upgrade to this fixed version to remediate the issue. No additional mitigation steps are indicated by the vendor advisory.
Description
A vulnerability in LXD allows a specially crafted container image to read and write arbitrary files on the host system by exploiting a symlink named 'templates' in the image. This can lead to arbitrary command execution on the host. The flaw arises because the tar extraction process does not reject a top-level 'templates' symlink, enabling access to host directories such as /etc/cron.d. A proof of concept demonstrates creating a cron job on the host via this method. The vulnerability is critical with a CVSS score of 9.9 and has been fixed in version 0.0.0-20260203144152-d1c8ba15d160.
References
- github.com/canonical/lxd/security/advisories/GHSA-jpf8-86f3-wp38 (opens in a new tab)
- github.com/lxc/incus/security/advisories/GHSA-vxp5-584q-c479 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-48752 (opens in a new tab)
- github.com/canonical/lxd/commit/190e2451544a60f6f924ef50a2112fb65d1923cd (opens in a new tab)
- github.com/canonical/lxd/commit/254b85c9301397e25304116b63da9154093199da (opens in a new tab)
- github.com/canonical/lxd/commit/4cd63344f8a523acf39fdc02a80fd64b2e3b584f (opens in a new tab)
- github.com/canonical/lxd/commit/734fcc4d2c8fd0332d42010e34fe856077c2f7f3 (opens in a new tab)
- github.com/canonical/lxd/commit/79f3879047b94344e17750551fddc74ed7f14ff7 (opens in a new tab)
- github.com/canonical/lxd/commit/8751ea69e24583996a20fb5519dcf2d89470d8e9 (opens in a new tab)
- github.com/canonical/lxd/commit/8a3b8d77a0279c3a9da15f4c4aa639ef0631d805 (opens in a new tab)
- github.com/canonical/lxd/commit/be6df3b49e79344ec461daadd82d80139697dc1a (opens in a new tab)
- github.com/lxc/incus/commit/cbefa31ae0da8fd96361178aed3a3c631e098fef (opens in a new tab)
- github.com/canonical/lxd (opens in a new tab)