Skip to main content
CVE-2025-54287VulnerabilityPublished

CVE-2025-54287: Canonical LXD · Improper Neutralization of Special Elements Used in a Template Engine

Affects Canonical LXDSource CVE Database V5

0

Not known to be exploited · CVSS 7.1 High.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 4.0 base score
7.1High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 31% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 2 Oct 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-25.

What to do

Affected software

ProductAffectedFixed in
Canonical LXDAffected
  • =6.0
  • =5.21
Fixed in–

AI-suggested

Organizations should immediately audit and restrict instance configuration permissions to trusted administrators only, minimizing the number of users who can create or modify snapshot templates. Monitoring and logging of snapshot creation activities should be enhanced to detect anomalous template patterns indicative of exploitation attempts. Although no official patches are linked yet, organizations must track Canonical's security advisories closely and apply updates as soon as they are released. In the interim, consider implementing host-based file access controls and container isolation mechanisms to limit the impact of arbitrary file reads. Employ network segmentation to reduce exposure of LXD management interfaces. Security teams should conduct penetration testing focused on template injection vectors within their LXD environments. Additionally, educating administrators about the risks of template injection and enforcing strict change management policies for container configurations will reduce attack surface. Finally, integrating runtime security tools that can detect suspicious template engine behavior may provide early warning of exploitation attempts.

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.

References

Community reviews

Loading reviews…