{"id":"CVE-2025-54287","state":"PUBLISHED","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.","publishedAt":"2025-10-02T09:16:02.241Z","updatedAt":"2025-10-02T13:27:42.957Z","severity":{"score":7.1,"label":"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","source":"canonical"},"assigner":"canonical","products":["Canonical LXD"],"affected":[{"vendor":"Canonical","product":"LXD","defaultStatus":"unaffected","versions":[{"version":"6.0","status":"affected","lessThan":"6.5","versionType":"semver"},{"version":"5.21","status":"affected","lessThan":"5.21.4","versionType":"semver"}],"repo":"https://github.com/canonical/lxd"}],"references":["https://github.com/canonical/lxd/security/advisories/GHSA-w2hg-2v4p-vmh6"],"weaknesses":["CWE-1336"],"ingestedAt":"2026-10-29T20:09:31.862Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/54xxx/CVE-2025-54287.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2025-54287","state":"PUBLISHED","datePublished":"2025-10-02T09:16:02.241Z","dateUpdated":"2025-10-02T13:27:42.957Z","assignerShortName":"canonical","assignerOrgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc","dateReserved":"2025-07-18T07:59:07.917Z"},"containers":{"cna":{"title":"Arbitrary File Read via Template Injection in Snapshot Patterns","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Canonical","product":"LXD","defaultStatus":"unaffected","versions":[{"version":"6.0","status":"affected","lessThan":"6.5","versionType":"semver"},{"version":"5.21","status":"affected","lessThan":"5.21.4","versionType":"semver"}],"repo":"https://github.com/canonical/lxd"}],"references":[{"url":"https://github.com/canonical/lxd/security/advisories/GHSA-w2hg-2v4p-vmh6"}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"NONE","attackVector":"NETWORK","baseScore":7.1,"baseSeverity":"HIGH","privilegesRequired":"LOW","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"NONE","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-1336","description":"CWE-1336: Improper Neutralization of Special Elements Used in a Template Engine","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"canonical","orgId":"cc1ad9ee-3454-478d-9317-d3e869d708bc","dateUpdated":"2025-10-02T10:43:48.716Z"},"impacts":[{"capecId":"CAPEC-165","descriptions":[{"lang":"en","value":"CAPEC-165 File Manipulation"}]}],"source":{"discovery":"EXTERNAL"},"credits":[{"lang":"en","value":"GMO Flatt Security Inc."}]},"adp":[{"title":"CISA ADP Vulnrichment","references":[{"url":"https://github.com/canonical/lxd/security/advisories/GHSA-w2hg-2v4p-vmh6","tags":["exploit"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-10-02T13:27:39.753650Z","id":"CVE-2025-54287","options":[{"Exploitation":"poc"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-02T13:27:42.957Z"}}]}}}