#VU117414 Template injection in lxd - CVE-2025-54287

 

#VU117414 Template injection in lxd - CVE-2025-54287

Published: October 21, 2025 / Updated: April 9, 2026


Vulnerability identifier: #VU117414
Vulnerability risk: Low
CVSSv4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P/U:Clear
CVE-ID: CVE-2025-54287
CWE-ID: CWE-94
Exploitation vector: Remote access
Exploit availability: Public exploit is available
Vulnerable software:
lxd
Software vendor:
Linux Containers

Description

The vulnerability allows a remote user to read arbitrary files on the system.

The vulnerability exists due to improper input validation within the snapshot creation functionality of the Pongo2 template engine in LXD-UI. A remote user with permissions to modify instance settings can pass specially crafted input to the application and read arbitrary files on the system.

Payload example:

{% filter urlencode|slice:":100" %}{% include "/etc/passwd" %}{%endfilter %}


Remediation

Install updates from vendor's website.

External links