CVE-2025-54287
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.
- CVSS 4.0
- 7.1
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N - CVSS 3.1
- 6.5
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N - EPSS
- 0.4% chance of exploitation in the next 30 days; higher than 31% of CVEs (scores of 2026-10-25)
- CWE
- CWE-1336
- Published
- Modified
- Record from
- the NVD, synced
Affected
- canonical:lxd
Packages (OSV)
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-w2hg-2v4p-vmh6 | 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 |
| GO-2025-4004 | Go | github.com/lxc/lxd | all versions | no fix published |
| GO-2025-4004 | Go | github.com/lxc/lxd/v6 | all versions | no fix published |