{"id":"CVE-2025-54287","published":"2025-10-02T09:16:02Z","modified":"2025-10-02T13:27:42Z","title":"Arbitrary File Read via Template Injection in Snapshot Patterns","vendor":"Canonical","product":"LXD","tier":"tail","description":{"text":"Template Injection in instance snapshot creation component in Canonical LXD (>= 4.0) allows an attacker with instance configuration \npermissions to read arbitrary files on the host system via specially crafted snapshot pattern templates using the Pongo2 template engine.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.1,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00532,"percentile":0.38405,"provenance":"source"},"cwes":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"references":[{"url":"https://github.com/canonical/lxd/security/advisories/GHSA-w2hg-2v4p-vmh6","tags":[]}],"priority":{"score":12.7,"factors":[{"name":"EPSS percentile","points":7.68},{"name":"CVSS severity","points":4.97}]},"vendorSlug":"canonical","affectedVersions":[{"vendor":"Canonical","product":"LXD","versions":[">= 6.0, < 6.5",">= 5.21, < 5.21.4"]}],"capec":[{"id":"CAPEC-165","name":"File Manipulation"}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-10-02T13:27:39.753650Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/lxc/lxd","vulnerableRanges":[">=4.0.0, <5.21.4",">=6.0.0, <6.5.0",">=0.0.0-20200331193331-03aab09f5b5c, <0.0.0-20250827065555-0494f5d47e41","all versions"],"patched":["5.21.4","6.5.0","0.0.0-20250827065555-0494f5d47e41"],"from":["GHSA-w2hg-2v4p-vmh6","GO-2025-4004"],"provenance":"source"},{"ecosystem":"Go","package":"github.com/lxc/lxd/v6","vulnerableRanges":["all versions"],"patched":[],"from":["GO-2025-4004"],"provenance":"source"}],"summary":{"text":"A template injection flaw in the instance snapshot creation component of Canonical LXD (4.0 and later) lets the snapshot pattern templates processed by the Pongo2 template engine be manipulated. The attack requires only low-privilege access, specifically instance configuration permissions, and no user interaction or special configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:55:11Z"},"euvd":{"id":"EUVD-2025-32636","exploited":false,"provenance":"source"}}