{"cve":"CVE-2025-54287","nvd":{"published":"2025-10-02T10:15:38.707","modified":"2026-10-12T15:10:00.207","status":"Analyzed","description":"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.","cvss_v4":{"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","score":7.1},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","score":6.5},"cwes":["CWE-1336"],"references":["https://github.com/canonical/lxd/security/advisories/GHSA-w2hg-2v4p-vmh6","https://github.com/canonical/lxd/security/advisories/GHSA-w2hg-2v4p-vmh6"],"products":["canonical:lxd"],"source":"nvd","synced_at":"2026-10-19T22:11:26.888974865+00:00"},"epss":{"cve":"CVE-2025-54287","score":0.00375,"percentile":0.31223,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-w2hg-2v4p-vmh6","url":"https://osv.dev/vulnerability/GHSA-w2hg-2v4p-vmh6","summary":"Canonical LXD Arbitrary File Read via Template Injection in Snapshot Patterns","modified":"2026-07-08T07:59:26.007424930Z","packages":[{"ecosystem":"Go","name":"github.com/lxc/lxd","purl":"pkg:golang/github.com/lxc/lxd","ranges":[">=4.0.0 <5.21.4"],"fixed":["5.21.4"]},{"ecosystem":"Go","name":"github.com/lxc/lxd","purl":"pkg:golang/github.com/lxc/lxd","ranges":[">=6.0.0 <6.5.0"],"fixed":["6.5.0"]},{"ecosystem":"Go","name":"github.com/lxc/lxd","purl":"pkg:golang/github.com/lxc/lxd","ranges":[">=0.0.0-20200331193331-03aab09f5b5c <0.0.0-20250827065555-0494f5d47e41"],"fixed":["0.0.0-20250827065555-0494f5d47e41"]}]},{"id":"GO-2025-4004","url":"https://osv.dev/vulnerability/GO-2025-4004","summary":"Canonical LXD Arbitrary File Read via Template Injection in Snapshot Patterns in github.com/lxc/lxd","modified":"2025-11-05T19:57:36.020117Z","packages":[{"ecosystem":"Go","name":"github.com/lxc/lxd","purl":"pkg:golang/github.com/lxc/lxd","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/lxc/lxd/v6","purl":"pkg:golang/github.com/lxc/lxd/v6","ranges":["all versions"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}