CVE-2025-54287 Arbitrary File Read via Template Injection in Snapshot Patterns
HighCVSS 7.1
EPSS 0.38%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
- Technology
- Debian
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.
Upgrade path
8 packages: 6 fixed, 1 partially fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/lxd(Debian 12) | = 5.0.2+git20231211.1364ae4-1; = 5.0.2+git20231211.1364ae4-2; = 5.0.2+git20231211.1364ae4-3; = 5.0.2+git20231211.1364ae4-4 +14 more | No fix listed | No fix yet |
| lxc github.com/lxc/lxd(Go) | >= 0.0.0-20200331193331-03aab09f5b5c, < 0.0.0-20250827065555-0494f5d47e41; >= 4.0.0, < 5.21.4; >= 6.0.0, < 6.5.0; All versions | 0.0.0-20250827065555-0494f5d47e41, 5.21.4, 6.5.0 | Partially fixed |
| alpine/incus(Alpine v3.23) | < 6.0.6-r0 | 6.0.6-r0 | Fixed |
| alpine/incus(Alpine v3.24) | < 6.0.6-r0 | 6.0.6-r0 | Fixed |
| Canonical LXD | >= 4.0.0, < 5.21.4; >= 5.21, < 5.21.4; >= 6.0, < 6.5; >= 6.1, < 6.5 | 5.21.4, 6.5 | Fixed |
| debian/incus(Debian 13) | < 6.0.4-2+deb13u1; = 6.0.4-2; = 6.0.4-2+deb13u1~bpo12+1 | 6.0.4-2+deb13u1 | Fixed |
| debian/incus(Debian 14) | < 6.0.5-1; = 6.0.4-2; = 6.0.4-3 | 6.0.5-1 | Fixed |
| debian/lxd(Debian 13) | < 5.0.2+git20231211.1364ae4-9+deb13u1; = 5.0.2+git20231211.1364ae4-9 | 5.0.2+git20231211.1364ae4-9+deb13u1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| lxc github.com/lxc/lxd(Go) | >= 4.0.0, < 5.21.4 | 5.21.4 |
| lxc github.com/lxc/lxd(Go) | >= 6.0.0, < 6.5.0 | 6.5.0 |
| lxc github.com/lxc/lxd(Go) | >= 0.0.0-20200331193331-03aab09f5b5c, < 0.0.0-20250827065555-0494f5d47e41 | 0.0.0-20250827065555-0494f5d47e41 |
| lxc github.com/lxc/lxd(Go) | All versions | No fix listed |
| debian/incus(Debian:13) | < 6.0.4-2+deb13u1 | 6.0.4-2+deb13u1 |
| debian/incus(Debian:13) | = 6.0.4-2 | No fix listed |
| debian/incus(Debian:13) | = 6.0.4-2+deb13u1~bpo12+1 | No fix listed |
| debian/incus(Debian:14) | < 6.0.5-1 | 6.0.5-1 |
| debian/incus(Debian:14) | = 6.0.4-2 | No fix listed |
| debian/incus(Debian:14) | = 6.0.4-3 | No fix listed |
| debian/lxd(Debian:12) | All versions | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-1 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-2 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-3 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-4 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-5 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-6 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-7 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-8 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2+git20231211.1364ae4-9 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2-5 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2-5+deb12u1 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2-5+deb12u2 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2-5+deb12u3 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2-5+deb12u4 | No fix listed |
Show 11 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/lxd(Debian:12) | = 5.0.2-5+deb12u5 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2-5+deb12u6 | No fix listed |
| debian/lxd(Debian:12) | = 5.0.2-6 | No fix listed |
| debian/lxd(Debian:13) | < 5.0.2+git20231211.1364ae4-9+deb13u1 | 5.0.2+git20231211.1364ae4-9+deb13u1 |
| debian/lxd(Debian:13) | = 5.0.2+git20231211.1364ae4-9 | No fix listed |
| Canonical LXD | >= 6.0, < 6.5 | 6.5 |
| Canonical LXD | >= 5.21, < 5.21.4 | 5.21.4 |
| alpine/incus(Alpine:v3.23) | < 6.0.6-r0 | 6.0.6-r0 |
| alpine/incus(Alpine:v3.24) | < 6.0.6-r0 | 6.0.6-r0 |
| Canonical LXD | >= 4.0.0, < 5.21.4 | 5.21.4 |
| Canonical LXD | >= 6.1, < 6.5 | 6.5 |
References
- github.com exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- pkg.go.dev
- Debian Security Tracker CVE-2025-54287 vendor-advisory
- github.com
- security.alpinelinux.org vendor-advisory