Read the docs
TI-2025-34116 Aliases CVE-2025-54287GHSA-w2hg-2v4p-vmh6

Arbitrary File Read via Template Injection in Snapshot Patterns

Priority HIGH 70CWE-1336Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Code execution
Confidentiality · integrity · availability
High · None · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-1336.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00375 31st percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed LXD (Canonical): 6.5, 5.21.4github.com/lxc/lxd (Go): 5.21.4, 6.5.0, 0.0.0-20250827065555-0494f5d47e41

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
CanonicalLXD6.0 to before 6.5; 5.21 to before 5.21.46.5, 5.21.4Patch availableCNA
—github.com/lxc/lxd (Go)4.0.0 to before 5.21.45.21.4Patch availableGHSA-w2hg-2v4p-vmh6
—github.com/lxc/lxd (Go)6.0.0 to before 6.5.06.5.0Patch availableGHSA-w2hg-2v4p-vmh6
—github.com/lxc/lxd (Go)0.0.0-20200331193331-03aab09f5b5c to before 0.0.0-20250827065555-0494f5d47e410.0.0-20250827065555-0494f5d47e41Patch availableGHSA-w2hg-2v4p-vmh6
  • LXD VendorCanonical Affected 6.0 to before 6.5; 5.21 to before 5.21.4 Fixed in 6.5, 5.21.4 Patch available CNA
  • github.com/lxc/lxd (Go) Vendor— Affected 4.0.0 to before 5.21.4 Fixed in 5.21.4 Patch available GHSA-w2hg-2v4p-vmh6
  • github.com/lxc/lxd (Go) Vendor— Affected 6.0.0 to before 6.5.0 Fixed in 6.5.0 Patch available GHSA-w2hg-2v4p-vmh6
  • github.com/lxc/lxd (Go) Vendor— Affected 0.0.0-20200331193331-03aab09f5b5c to before 0.0.0-20250827065555-0494f5d47e41 Fixed in 0.0.0-20250827065555-0494f5d47e41 Patch available GHSA-w2hg-2v4p-vmh6

CPE configurations NVD · 2

CPEVersionsRoleVendor
cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*4.0.0 to before 5.21.4; 6.1 to before 6.5VulnerableCanonical
cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:*not specified by NVDRunning onLinux
  • cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:* Versions 4.0.0 to before 5.21.4; 6.1 to before 6.5 Vulnerable ·Canonical
  • cpe:2.3:o:linux:linux_kernel:-:*:*:*:*:*:*:* Versions not specified by NVD Running on ·Linux

Remediation

  • Fix · CNA LXD (Canonical) Fixed in 6.5, 5.21.4
  • Fix · GHSA-w2hg-2v4p-vmh6 github.com/lxc/lxd (Go) Fixed in 5.21.4 Advisory →
  • Fix · GHSA-w2hg-2v4p-vmh6 github.com/lxc/lxd (Go) Fixed in 6.5.0 Advisory →
  • Fix · GHSA-w2hg-2v4p-vmh6 github.com/lxc/lxd (Go) Fixed in 0.0.0-20250827065555-0494f5d47e41 Advisory →

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    Canonical LXD 5.21.4, 6.5

    7 records Highest priority Priority HIGH 2 HIGH, 4 MEDIUM, 1 LOW

    Other records, highest priority first

    • TI-2025-34119 Project Existence Disclosure via Error Handling in LXD Image ExportPriority HIGH 66
    • TI-2025-34122 Path Traversal in LXD Instance Log File RetrievalPriority MEDIUM 64
    • TI-2025-34120 Project existence disclosure in LXD images APIPriority MEDIUM 64

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-54287
  2. 2026-10-03 Alias added: GHSA-w2hg-2v4p-vmh6

References

  • TI-2026-22659 Authenticated RCE via unsanitized compression_algorithm CVSS 4.0CRITICAL 9.4
  • TI-2026-47475 Path traversal via unvalidated instance name in backup tarball restore enables root file write / RCE CVSS 3.1CRITICAL 9.9
  • TI-2026-45146 Cross-project instance move bypasses all project restrictions allowing host command execution CVSS 3.1CRITICAL 9.9
  • TI-2026-45143 Cross-project instance copy bypasses target project restrictions via TOCTOU in config merge CVSS 3.1CRITICAL 9.9
  • TI-2026-45142 Project restriction bypass via instance migration config override CVSS 3.1CRITICAL 9.9
  • TI-2026-45140 Root RCE via image backup.yaml symlink CVSS 3.1CRITICAL 9.9
See all 34 →

Sources