CVE-2025-54287Canonical Lxd
High 7.1
Follow: this CVE · Canonical · Canonical Lxd We alert you by email or Slack (account required).
- Priority
- 43
- CVSS 4.0
- 7.1
- EPSS
- —
- Auth required
- Yes
- Published
- Oct 2, 2025
- Updated
- Oct 12, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1336
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
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.
What to do
- Apply the vendor's security update for Lxd.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/lxc/lxd |
≥ 4.0.0 < 5.21.4 |
5.21.4 |
go get github.com/lxc/lxd@v5.21.4 |
| Go | github.com/lxc/lxd |
≥ 6.0.0 < 6.5.0 |
6.5.0 |
go get github.com/lxc/lxd@v6.5.0 |
| Go | github.com/lxc/lxd |
≥ 0.0.0-20200331193331-03aab09f5b5c < 0.0.0-20250827065555-0494f5d47e41 |
0.0.0-20250827065555-0494f5d47e41 |
go get github.com/lxc/lxd@v0.0.0-20250827065555-0494f5d47e41 |
| Go | github.com/lxc/lxd |
all |
no fixed version | — |
| Go | github.com/lxc/lxd/v6 |
all |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-w2hg-2v4p-vmh6, GO-2025-4004). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| canonical | lxd | ≥ 4.0.0 < 5.21.4 |
| canonical | lxd | ≥ 6.1 < 6.5 |
Official advisories
- Security update for govulncheck-vulndb · SUSE · openSUSE-SU-2026:21483-1 · Jul 30, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Vendor Advisory