CVE-2025-54287: Canonical LXD - Template Injection
- Cve: CVE-2025-54287
- Name: Canonical LXD - Template Injection
- 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.
- Impact: Attackers with instance configuration permissions can read arbitrary files on the host system, potentially exposing sensitive information.
- Remediation: Update to the latest version of Canonical LXD.
- Vulnerability type: template_injection
- Vulnerability impact: file_system_read, information_disclosure
- Requirement type: logged_in
- Requirements: Attacker needs instance configuration permissions
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.00375
- Epss percentile: 0.31945
- Assignee: [email protected]
- Published at: 2025-10-02T10:15:38Z
- Age in days: 418
- Modified at: 2026-10-12T15:10:00Z
- Patch available: yes
- Public exploits total: 1
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-54287
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-1336 | Improper Neutralization of Special Elements Used in a Template Engine |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/canonical/lxd/security/advisories/GHSA-w2hg-2v4p-vmh6 | nvd | 2025-10-02 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/canonical/lxd/security/advisories/GHSA-w2hg-2v4p-vmh6 | nvd | Exploit, Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| canonical:lxd | >= 6.1, < 6.5; >= 4.0.0, < 5.21.4 | yes | nvd | /v1/products/canonical/lxd |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| canonical/lxd | package, security_advisory | yes | /v1/repositories/canonical/lxd |
Index
- Repositories: 1
- Repositories high signal: 1
- Packages: 1
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2025-10-02
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts