{"schemaVersion":3,"id":"CVE-2025-54287","aliases":["UBUNTU-CVE-2025-54287","DEBIAN-CVE-2025-54287","GHSA-w2hg-2v4p-vmh6","GO-2025-4004"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2025-10-02T09:16:02.241Z","modified":"2025-10-02T13:27:42.957Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.1,"severity":"high","version":"4.0","versionLabel":"v4.0","source":"CVE.org","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","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":7.1,"severity":"high","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","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":7.1,"severity":"high","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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":7.2,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":7.2,"impact":6,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Go","score":7.1,"severity":"high","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","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":7.2,"impact":6,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":7.1,"severity":"high","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00367,"percentile":0.2908,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00367},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00367,"percentile":0.2908}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00367,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00367,"percentile":0.2908}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_CANONICAL_LXD","name":"Lxd","source":"github","url":"https://github.com/canonical/lxd/security/advisories/GHSA-4c49-9fpc-hc3v","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine","description":"The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/1336.html"}],"affected":[{"vendor":"canonical","product":"lxd","name":"lxd","label":"lxd","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 6.0, < 6.5","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.21, < 5.21.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 4.0.0, < 5.21.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.1, < 6.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 6.0, < 6.5 | ≥ 5.21, < 5.21.4 | ≥ 4.0.0, < 5.21.4 | ≥ 6.1, < 6.5","eol":null,"hubHref":"/vendor/canonical/lxd"},{"vendor":"debian","product":"incus","name":"incus","label":"incus","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/incus","purlType":"deb","versions":[{"text":"< 6.0.4-2+deb13u1","noFixRecorded":false,"fixedIn":null},{"text":"< 6.0.5-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 6.0.4-2+deb13u1 | < 6.0.5-1","eol":null,"hubHref":null},{"vendor":"debian","product":"lxd","name":"lxd","label":"lxd","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/lxd","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 5.0.2+git20231211.1364ae4-9+deb13u1","noFixRecorded":false,"fixedIn":null}],"versionsText":"All versions (No fix recorded) | < 5.0.2+git20231211.1364ae4-9+deb13u1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"lxd","name":"lxd","label":"lxd","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/lxd","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github.com/lxc","product":"lxd","name":"github.com/lxc/lxd","label":"lxd","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/lxc/lxd","purlType":"golang","versions":[{"text":"≥ 4.0.0, < 5.21.4","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.0.0, < 6.5.0","noFixRecorded":false,"fixedIn":null},{"text":"≥ 0.0.0-20200331193331-03aab09f5b5c, < 0.0.0-20250827065555-0494f5d47e41","noFixRecorded":false,"fixedIn":null},{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"≥ 4.0.0, < 5.21.4 | ≥ 6.0.0, < 6.5.0 | ≥ 0.0.0-20200331193331-03aab09f5b5c, < 0.0.0-20250827065555-0494f5d47e41 | All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"github.com/lxc/lxd","product":"v6","name":"github.com/lxc/lxd/v6","label":"v6","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/lxc/lxd/v6","purlType":"golang","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null}],"affectedCount":6,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/canonical/lxd/security/advisories/GHSA-w2hg-2v4p-vmh6","label":"github.com/canonical/lxd/security/advisories/GHSA-w2hg-2v4p-vmh6","hostname":"github.com","tags":["REPORT","WEB","Advisory","Exploit","Vendor Advisory"]},{"url":"https://ubuntu.com/security/CVE-2025-54287","label":"ubuntu.com/security/CVE-2025-54287","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-54287","label":"www.cve.org/CVERecord?id=CVE-2025-54287","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-54287","label":"security-tracker.debian.org/tracker/CVE-2025-54287","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-54287","label":"nvd.nist.gov/vuln/detail/CVE-2025-54287","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/canonical/lxd","label":"github.com/canonical/lxd","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://pkg.go.dev/vuln/GO-2025-4004","label":"pkg.go.dev/vuln/GO-2025-4004","hostname":"pkg.go.dev","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["DSA-6027-1","DSA-6028-1","OPENSUSE-SU-2025:15710-1","OPENSUSE-SU-2026:21483-1"],"duplicates":[],"related":["OPENSUSE-SU-2025:15710-1","OPENSUSE-SU-2026:21483-1"]},"timeline":[{"kind":"published","date":"2025-10-02T09:16:02.241Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-10-02T13:27:42.957Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":38,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T18:16:08.652Z","stale":false,"partial":false}}