| 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, 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 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| incus (PTS) | trixie | 6.0.4-2 | vulnerable |
| trixie (security) | 6.0.4-2+deb13u1 | fixed | |
| forky | 6.0.5-1 | fixed | |
| sid | 6.0.5-3 | fixed | |
| lxd (PTS) | bookworm | 5.0.2-5 | vulnerable |
| bookworm (security) | 5.0.2-5+deb12u1 | fixed | |
| trixie | 5.0.2+git20231211.1364ae4-9 | vulnerable | |
| trixie (security) | 5.0.2+git20231211.1364ae4-9+deb13u1 | 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 | 5.0.2-5+deb12u1 | DSA-6028-1 | ||
| lxd | source | trixie | 5.0.2+git20231211.1364ae4-9+deb13u1 | DSA-6028-1 | ||
| lxd | source | (unstable) | (unfixed) |
https://github.com/canonical/lxd/security/advisories/GHSA-w2hg-2v4p-vmh6