CVE-2025-54287

published 2 Oct 2025 · updated 2 Oct 2025

Arbitrary File Read via Template Injection in Snapshot Patterns

7.1HighCVSS 7.1EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 5.21.4 and 6.5.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Canonical>=5.21 <5.21.4, >=6.0 <6.55.21.4, 6.5

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-54287 severity on Zeptric[![CVE-2025-54287](https://zeptric.io/badge/cve/CVE-2025-54287.svg)](https://zeptric.io/cve/CVE-2025-54287)