CVE-2025-54287
Canonical LXD Arbitrary File Read via Template Injection in Snapshot Patterns in github.com/lxc/lxd
6.5
MEDIUM
CVSS 3.1
EPSS 0.07%
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.
How to fix CVE-2025-54287
To remediate CVE-2025-54287, upgrade the affected package to a fixed version below.
- —upgrade to 6.0.4-2+deb13u1 or later
- —upgrade to 5.0.2-5+deb12u1 or later
- —upgrade to 5.21.4 or later
- —no fix listed
- —no fix listed
Is CVE-2025-54287 being exploited?
Low — EPSS is 0.1%, meaning exploitation activity has not been observed at scale.
Affected packages (5)
- from 0, < 6.0.4-2+deb13u1
- from 0, < 5.0.2-5+deb12u1
- >= 4.0.0, < 5.21.4
- from 0
- from 0
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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 |
| osv | CVSS 3.1 | MEDIUM6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |