{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-54287","id":"CVE-2025-54287","title":"Arbitrary File Read via Template Injection in Snapshot Patterns","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.","descriptionLong":"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.","published":"2025-10-02T09:16:02.241Z","updated":"2026-10-28T02:30:44.139518801Z","reserved":"2025-07-18T07:59:07.917Z","status":"Analyzed","rejected":false,"assigner":"canonical","metric":{"version":"4.0","score":7.1,"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","rating":"high","source":"canonical"},"metrics":[{"version":"4.0","score":7.1,"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","rating":"high","source":"canonical"},{"version":"4.0","score":7.1,"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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","rating":"high","source":"ubuntu.com"},{"version":"4.0","score":null,"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","rating":"unrated","source":"OSV"},{"version":"4.0","score":null,"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","rating":"medium","source":"GitHub"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"GitHub"}],"rating":"high","products":["Canonical LXD"],"affectedProducts":[{"vendor":"Canonical","product":"LXD","defaultStatus":"unaffected","versions":[{"lessThan":"6.5","status":"affected","version":"6.0","versionType":"semver"},{"lessThan":"5.21.4","status":"affected","version":"5.21","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/lxc/lxd","purl":"pkg:golang/github.com/lxc/lxd","ranges":[">=4.0.0 <5.21.4",">=6.0.0 <6.5.0",">=0.0.0-20200331193331-03aab09f5b5c <0.0.0-20250827065555-0494f5d47e41","all versions"],"fixed":["5.21.4","6.5.0","0.0.0-20250827065555-0494f5d47e41"],"advisory":"GHSA-w2hg-2v4p-vmh6"},{"ecosystem":"Go","name":"github.com/lxc/lxd/v6","purl":"pkg:golang/github.com/lxc/lxd/v6","ranges":["all versions"],"fixed":[],"advisory":"GO-2025-4004"}],"cwes":["CWE-1336"],"aliases":["GHSA-w2hg-2v4p-vmh6","GO-2025-4004"],"references":[{"url":"https://github.com/canonical/lxd/security/advisories/GHSA-w2hg-2v4p-vmh6","tags":["exploit","Exploit","Vendor Advisory","advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/54xxx/CVE-2025-54287.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54287","tags":["advisory"]},{"url":"https://github.com/canonical/lxd","tags":["package"]},{"url":"https://pkg.go.dev/vuln/GO-2025-4004","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial"},"epss":0.00375,"epssPercentile":0.32204,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-54287","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54287","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-54287","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-w2hg-2v4p-vmh6","ok":true,"note":"GHSA-w2hg-2v4p-vmh6"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-54287","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}