What’s Vulnerable › Vulnerabilities
CVE-2025-54287: Arbitrary File Read via Template Injection in Snapshot Patterns
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2025-10-02 · updated 2026-10-12
- Weakness: CWE-1336
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.
Affected products
- Canonical LXD: from 4.0.0 before 5.21.4; from 6.1 before 6.5 — fixed in 5.21.4, 6.5
How to fix
Upgrade to a fixed version: Canonical LXD 5.21.4, 6.5. Check the vendor advisory for mitigations.
References
- https://github.com/canonical/lxd/security/advisories/GHSA-w2hg-2v4p-vmh6
- https://github.com/canonical/lxd/security/advisories/GHSA-w2hg-2v4p-vmh6
Get alerted when CVE-2025-54287 or the next vulnerability affects your stack