Skip to main content
← All vulnerabilities
CVE-2025-54287GO-2025-4004GHSA-W2HG-2V4P-VMH6

Arbitrary File Read via Template Injection in Snapshot Patterns

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.5, 5.21.4, 6.5.0, 0.0.0-20250827065555-0494f5d47e41
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • Canonical LXD

    From 6.0 · fixed in 6.5; From 5.21 · fixed in 5.21.4

  • github.com/lxc/lxdGo

    All versions

  • github.com/lxc/lxd/v6Go

    All versions

  • github.com/lxc/lxdGo

    From 4.0.0 · fixed in 5.21.4

  • github.com/lxc/lxdGo

    From 6.0.0 · fixed in 6.5.0

  • github.com/lxc/lxdGo

    From 0.0.0-20200331193331-03aab09f5b5c · fixed in 0.0.0-20250827065555-0494f5d47e41

References 1

GitHub · canonical/lxd