MEDIUM · 6.5

CVE-2025-54287

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 speciall...

Vulnerability 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.

CVSS Score

6.5

MEDIUM

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE

Affected Products

VendorProductVersions
CanonicalLxd>= 4.0.0, < 5.21.4
LinuxLinux Kernel-

Related Weaknesses (CWE)

References

FAQ

What is CVE-2025-54287?

CVE-2025-54287 is a vulnerability with a CVSS score of 6.5 (MEDIUM). 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 speciall...

How severe is CVE-2025-54287?

CVE-2025-54287 has been rated MEDIUM with a CVSS base score of 6.5/10. Review the CVSS metrics above for detailed severity breakdown.

Is there a patch for CVE-2025-54287?

Check the references section above for vendor advisories and patch information. Affected products include: Canonical Lxd, Linux Linux Kernel.