cve.bz

CVE-2025-54287 canonical lxd

7.1 highExploit referenceEPSS 0.4%Fix available

High (7.1) in canonical lxd. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/lxc/lxd 0.0.0-20250827065555-0494f5d47e41, 5.21.4, 6.5.0.

On this page
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.

Severity

CVSS 4.0

7.1 high
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

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 32nd percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2025-10-02. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-1336 Improper Neutralization of Special Elements Used in a Template Engine
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-54287 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-54287?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-54287?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-54287 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Canonical LXDfrom 6.0 before 6.5
Canonical LXDfrom 5.21 before 5.21.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-w2hg-2v4p-vmh6Gogithub.com/lxc/lxd>=4.0.0 <5.21.45.21.4
GHSA-w2hg-2v4p-vmh6Gogithub.com/lxc/lxd>=6.0.0 <6.5.06.5.0
GHSA-w2hg-2v4p-vmh6Gogithub.com/lxc/lxd>=0.0.0-20200331193331-03aab09f5b5c <0.0.0-20250827065555-0494f5d47e410.0.0-20250827065555-0494f5d47e41
GO-2025-4004Gogithub.com/lxc/lxdall versionsno fix published
GO-2025-4004Gogithub.com/lxc/lxd/v6all versionsno fix published

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12lxdno fix listedDEBIAN-CVE-2025-54287 DSA-6028-1
Debian13incus6.0.4-2+deb13u1DEBIAN-CVE-2025-54287 DSA-6027-1
Debian13lxd5.0.2+git20231211.1364ae4-9+deb13u1DEBIAN-CVE-2025-54287 DSA-6028-1
Debian14incus6.0.5-1DEBIAN-CVE-2025-54287
openSUSELeap 16.0govulncheck-vulndb0.0.20260723T184607-160000.1.1openSUSE-SU-2026:21483-1
openSUSETumbleweedgovulncheck-vulndb0.0.20251105T184115-1.1openSUSE-SU-2025:15710-1
Alpinev3.23, v3.24incus6.0.6-r0ALPINE-CVE-2025-54287

From the distributions' data via OSV.dev: the Debian Security Tracker; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · openSUSE · Alpine.

References

Check your stackJSON