CVEfocus › CVE database › CVE-2025-54287

CVE-2025-54287Arbitrary File Read via Template Injection in Snapshot Patterns

CVSS 7.1 HighEPSS 0.5% (higher than 38% of CVEs)Published 2025-10-02Updated 2025-10-02Assigner: canonical

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.

CWE-1336

What to do

Fixed builds are available from Alpine, Debian, Go: see the table below for the fixed version per release.

Debian, Go have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

6Fixed
2Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Debian 14incusFixed6.0.5-1DEBIAN-CVE-2025-54287
Debian 13incusFixed6.0.4-2+deb13u1DEBIAN-CVE-2025-54287
Debian 13lxdFixed5.0.2+git20231211.1364ae4-9+deb13u1DEBIAN-CVE-2025-54287
Debian 12lxdFix pendingDEBIAN-CVE-2025-54287
Alpine Linux 3.24incusFixed6.0.6-r0ALPINE-CVE-2025-54287
Alpine Linux 3.23incusFixed6.0.6-r0ALPINE-CVE-2025-54287
Go librarygithub.com/lxc/lxdFixed5.21.4GO-2025-4004
Go librarygithub.com/lxc/lxd/v6Fix pendingGO-2025-4004

What the vendor says

As published in the CVE record by canonical, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.