Description
Template Injection in instance snapshot creation component in Canonical LXD (>= 4.0) allows an attacker with instance configuration
permissions to read arbitrary files on the host system via specially crafted snapshot pattern templates using the Pongo2 template engine.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Canonical | LXD | 6.0 – < 6.5, 5.21 – < 5.21.4 | 6.5 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | incus | 6.0.5-1 | — |
| Debian 13 | incus | 6.0.4-2+deb13u1 | DSA-6027-1 |
| Debian 13 | lxd | 5.0.2+git20231211.1364ae4-9+deb13u1 | DSA-6028-1 |
| Debian 12 | lxd | 5.0.2-5+deb12u1 | DSA-6028-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | govulncheck-vulndb | 0.0.20251105T184115-1.1 | openSUSE-SU-2025:15710-1 |
| openSUSE Leap 16.0 | govulncheck-vulndb | 0.0.20260723T184607-160000.1.1 | openSUSE-SU-2026:21483-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | incus | 6.0.6-r0 | — |
| Alpine v3.23 | incus | 6.0.6-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Go | github.com/lxc/lxd | >= 4.0.0, < 5.21.4 | 5.21.4 | GHSA-w2hg-2v4p-vmh6 |
| Go | github.com/lxc/lxd | >= 6.0.0, < 6.5.0 | 6.5.0 | GHSA-w2hg-2v4p-vmh6 |
| Go | github.com/lxc/lxd | >= 0.0.0-20200331193331-03aab09f5b5c, < 0.0.0-20250827065555-0494f5d47e41 | 0.0.0-20250827065555-0494f5d47e41 | GHSA-w2hg-2v4p-vmh6 |
| Go | github.com/lxc/lxd | all versions | — | GO-2025-4004 |
| Go | github.com/lxc/lxd/v6 | all versions | — | GO-2025-4004 |
Advisories 4
- openSUSE-SU-2026:21483-1 Security update for govulncheck-vulndb SUSE / openSUSE Security Updates · Jul 31, 2026
- openSUSE-SU-2025:15710-1 govulncheck-vulndb-0.0.20251105T184115-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- DSA-6028-1 lxd - security update Debian Security (DSA / DLA) · Oct 17, 2025
- DSA-6027-1 incus - security update Debian Security (DSA / DLA) · Oct 17, 2025