GHSA-jpf8-86f3-wp38: LXD has arbitrary file read+write on host via templates/ symlink in malicious image
Published 2026-11-06 · Updated 2026-11-23 · Also known as GO-2026-6930
Summary
LXD contains an arbitrary file read and write vulnerability on the host via a malicious image containing a top-level templates symlink. Engineering and security teams managing LXD deployments should review and update affected systems.
Who is affected
Affected deployments of LXD process container images insecurely when extracting archives, failing to reject a top-level templates symlink. This allows a malicious actor with low privileges to access arbitrary directories and edit arbitrary files on the host, potentially leading to arbitrary command execution such as writing a malicious cron job.
Exploitability
The vulnerability is rated CRITICAL with a CVSS 3.1 base score of 9.9 (AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H), indicating network-adjacent or network accessibility with low privileges and no user interaction required. EPSS is not yet available, and CISA KEV status is no.
Remediation
- Upgrade Go package github.com/canonical/lxd to version 0.0.0-20260203144152-d1c8ba15d160 or later.
- Restrict the import and initialization of untrusted container images.
How to check your project
- Check Go dependency versions in your project's go.mod or go.sum to see if github.com/canonical/lxd is set to an affected version range.
- Audit LXD image import workflows for any usage of untrusted or malicious images containing template symlinks.
Automated analysis of the published advisory data, generated 2026-11-25. Not human-reviewed; verify against the official advisory. How this works.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | Upgrade |
|---|---|---|---|---|
| Go | github.com/canonical/lxd |
>= 0, < 0.0.0-20260203144152-d1c8ba15d160 | 0.0.0-20260203144152-d1c8ba15d160 | go get github.com/canonical/[email protected] |
CVSS 3.1 vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
| Attack vector | Network |
|---|---|
| Attack complexity | Low |
| Privileges required | Low |
| User interaction | None |
| Scope | Changed |
| Confidentiality | High |
| Integrity | High |
| Availability | High |
FAQ
What causes the vulnerability?
The tar extraction path in shared/archive/archive.go excludes device nodes but fails to reject a top-level templates symlink within container images.
What is the impact of this vulnerability?
It allows arbitrary file read and write on the host system, which can be leveraged to achieve arbitrary command execution.
Is there an official fix available?
Yes, the issue is fixed in github.com/canonical/lxd version 0.0.0-20260203144152-d1c8ba15d160.
Original advisory description
References
- WEB https://github.com/canonical/lxd/security/advisories/GHSA-jpf8-86f3-wp38
- WEB https://github.com/lxc/incus/security/advisories/GHSA-vxp5-584q-c479
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-48752
- WEB https://github.com/canonical/lxd/commit/190e2451544a60f6f924ef50a2112fb65d1923cd
- WEB https://github.com/canonical/lxd/commit/254b85c9301397e25304116b63da9154093199da
- WEB https://github.com/canonical/lxd/commit/4cd63344f8a523acf39fdc02a80fd64b2e3b584f
- WEB https://github.com/canonical/lxd/commit/734fcc4d2c8fd0332d42010e34fe856077c2f7f3
- WEB https://github.com/canonical/lxd/commit/79f3879047b94344e17750551fddc74ed7f14ff7
- WEB https://github.com/canonical/lxd/commit/8751ea69e24583996a20fb5519dcf2d89470d8e9
- WEB https://github.com/canonical/lxd/commit/8a3b8d77a0279c3a9da15f4c4aa639ef0631d805
- WEB https://github.com/canonical/lxd/commit/be6df3b49e79344ec461daadd82d80139697dc1a
- WEB https://github.com/lxc/incus/commit/cbefa31ae0da8fd96361178aed3a3c631e098fef
- PACKAGE https://github.com/canonical/lxd
Source records: GHSA-jpf8-86f3-wp38, GO-2026-6930 (OSV.dev).