What’s Vulnerable › Vulnerabilities

CVE-2025-54287: Arbitrary File Read via Template Injection in Snapshot Patterns

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.

Affected products

How to fix

Upgrade to a fixed version: Canonical LXD 5.21.4, 6.5. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-54287 or the next vulnerability affects your stack