Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Canonical | Lxd | >= 4.0.0, < 5.21.4 |
| Linux | Linux Kernel | - |
Related Weaknesses (CWE)
References
- https://github.com/canonical/lxd/security/advisories/GHSA-w2hg-2v4p-vmh6ExploitVendor Advisory
- https://github.com/canonical/lxd/security/advisories/GHSA-w2hg-2v4p-vmh6ExploitVendor Advisory
FAQ
What is CVE-2025-54287?
CVE-2025-54287 is a vulnerability with a CVSS score of 6.5 (MEDIUM). 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 speciall...
How severe is CVE-2025-54287?
CVE-2025-54287 has been rated MEDIUM with a CVSS base score of 6.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2025-54287?
Check the references section above for vendor advisories and patch information. Affected products include: Canonical Lxd, Linux Linux Kernel.