| Name | CVE-2025-54287 |
| Description | 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DSA-6027-1, DSA-6028-1 |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|
| incus (PTS) | trixie (security), trixie | 6.0.4-2+deb13u8 | fixed |
| forky, sid | 7.0.1-1 | fixed |
| lxd (PTS) | bookworm, bookworm (security) | 5.0.2-5+deb12u6 | vulnerable |
| trixie (security), trixie | 5.0.2+git20231211.1364ae4-9+deb13u7 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|
| incus | source | trixie | 6.0.4-2+deb13u1 | | DSA-6027-1 | |
| incus | source | (unstable) | 6.0.5-1 | | | |
| lxd | source | bookworm | (unfixed) | end-of-life | | |
| lxd | source | trixie | 5.0.2+git20231211.1364ae4-9+deb13u1 | | DSA-6028-1 | |
| lxd | source | (unstable) | (unfixed) | | | |
Notes
[bookworm] - lxd <end-of-life> (EOL in bookworm LTS)
https://github.com/canonical/lxd/security/advisories/GHSA-w2hg-2v4p-vmh6