← Vulnerability feed

Vulnerability record · CVE-2025-54287 · published 2 October 2025

CVE-2025-54287: Canonical lxd vulnerability

Canonical · Lxd

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.

7.1 CVSS 4.0 High EPSS 0.37% · top 72.0% CWE-1336 · CWE-1336
7.1CVSS 4.0 base score
0.37%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
2References, 2 tagged exploit
17 Jun 2026Last modified by NVD

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:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2025-54287 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.9CVE-2026-66897Canonical lxd path traversal vulnerabilityA path traversal vulnerability in LXD's instance template processing allows an attacker with container edit permissions, or any user launching a craf…EPSS 0.72%9.9CVE-2026-66898Canonical lxd path traversal vulnerabilityA path traversal vulnerability in LXD allows an attacker to manipulate file system paths during backup import and restore operations. When importing …EPSS 0.59%9.9CVE-2026-63293Canonical lxd link following vulnerabilityA link following vulnerability in LXD allows an attacker to achieve arbitrary file read and write operations on the host system. When importing or un…EPSS 0.59%9.9CVE-2026-63294Canonical lxd link following vulnerabilityA link following vulnerability in LXD allows an attacker to achieve root command execution on the host system. During the import or unpacking of craf…EPSS 0.88%9.9CVE-2026-63296Canonical lxd incorrect authorization vulnerabilityAn authorization bypass vulnerability in LXD allows an authenticated attacker to bypass target project restrictions during instance migration. When m…EPSS 0.44%9.9CVE-2026-63297Canonical lxd toctou race condition vulnerabilityAn authorization bypass vulnerability in LXD due to a timing flaw during configuration merging allows an authenticated attacker to bypass target proj…EPSS 0.34%9.9CVE-2026-63298Canonical lxd os command injection vulnerabilityAn improper neutralization of special elements vulnerability in LXD's NVIDIA instance configuration handling allows an authenticated attacker to inje…EPSS 0.69%9.9CVE-2026-63299Canonical lxd allocation without limits vulnerabilityAn authorization bypass vulnerability in LXD allows an authenticated user to bypass project-level disk and volume limits. Two related code paths fail…EPSS 0.59%

Source: NIST National Vulnerability Database (record CVE-2025-54287), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.