CVE-2025-54287GO-2025-4004GHSA-W2HG-2V4P-VMH6
Arbitrary File Read via Template Injection in Snapshot Patterns
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 6.5, 5.21.4, 6.5.0, 0.0.0-20250827065555-0494f5d47e41
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
CISA's decision points: whether it is exploited, whether attacks can be automated, and how much control an attacker gets. Assessed (SSVC 2.0.3).What do these mean? →
- Exploitation: poc
- Automatable: yes
- Technical impact: partial
Summary
Template Injection in instance snapshot creation component in Canonical LXD (>= 4.0) allows an attacker with instance configuration permissions to read arbitrary files on the host system via specially crafted snapshot pattern templates using the Pongo2 template engine.
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: poc · Automatable: yes · Technical impact: partial
- Record last updated
Affected versions
- Canonical LXD
From 6.0 · fixed in 6.5; From 5.21 · fixed in 5.21.4
- github.com/lxc/lxdGo
All versions
- github.com/lxc/lxd/v6Go
All versions
- github.com/lxc/lxdGo
From 4.0.0 · fixed in 5.21.4
- github.com/lxc/lxdGo
From 6.0.0 · fixed in 6.5.0
- github.com/lxc/lxdGo
From 0.0.0-20200331193331-03aab09f5b5c · fixed in 0.0.0-20250827065555-0494f5d47e41