CVE-2025-54287 Details
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.
A template injection vulnerability has been identified in the instance snapshot creation component of Canonical LXD versions 4.0 and above. This vulnerability allows an attacker with permissions to modify instance configurations to read arbitrary files from the host system. The issue arises from the use of the Pongo2 template engine in snapshot naming patterns, which, while not allowing code execution, can be exploited to inject templates that read sensitive files.
Users can update to LXD 6.5 or 5.21.4, where this vulnerability has been fixed. For versions 5.0 and 4.0, which are no longer supported, no action is recommended.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 2, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/canonical/lxd/security/advisories/GHSA-w2hg-2v4p-vmh6 | CISA-ADP | ExploitVendor Advisory |
| https://github.com/canonical/lxd/security/advisories/GHSA-w2hg-2v4p-vmh6 | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-1336 | Improper Neutralization of Special Elements Used in a Template Engine | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| canonical lxd | >= 4.0.0, < 5.21.4 >= 6.1, < 6.5 |
CPE
Remediation
| |
| linux linux kernel | All versions |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 12, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 22, 2025 | Initial Analysis | [email protected] |
| Oct 2, 2025 | CVE Modified | CISA-ADP |
| Oct 2, 2025 | New CVE Received | [email protected] |