CVE-2025-54287Published Oct 2, 2025 · Oct 2Updated Oct 28
Arbitrary File Read via Template Injection in Snapshot Patterns
Canonical LXD
High7.1Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| github.com/lxc/lxd Go |
|
|
Canonical LXD
| Product | Affected | Fixed in |
|---|---|---|
| github.com/lxc/lxd Go |
|
|
| github.com/lxc/lxd/v6 Go |
|
| No fix yet |
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.
From the CVE record · canonical
Canonical LXD's instance snapshot creation component is vulnerable to template injection through snapshot pattern templates. An attacker with instance configuration permissions can use a specially crafted template to read arbitrary files on the host.
Operators using Canonical LXD 4.0 or later, including affected Go github.com/lxc/lxd versions and github.com/lxc/lxd/v6, should check their installations.