Skip to content
OpenAdvisories
High · 7.1 CVE-2025-54287 EUVD-2025-32636GHSA-w2hg-2v4p-vmh6GO-2025-4004

Arbitrary File Read via Template Injection in Snapshot Patterns

Published Oct 2, 2025 · Updated Oct 2, 2025 · Assigned by canonical

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

VendorProductAffectedFixed
Canonical LXD 6.0 – < 6.5, 5.21 – < 5.21.4 6.5

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 incus 6.0.5-1 —
Debian 13 incus 6.0.4-2+deb13u1 DSA-6027-1
Debian 13 lxd 5.0.2+git20231211.1364ae4-9+deb13u1 DSA-6028-1
Debian 12 lxd 5.0.2-5+deb12u1 DSA-6028-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed govulncheck-vulndb 0.0.20251105T184115-1.1 openSUSE-SU-2025:15710-1
openSUSE Leap 16.0 govulncheck-vulndb 0.0.20260723T184607-160000.1.1 openSUSE-SU-2026:21483-1
ReleasePackageFixed inAdvisory
Alpine v3.24 incus 6.0.6-r0 —
Alpine v3.23 incus 6.0.6-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/lxc/lxd >= 4.0.0, < 5.21.4 5.21.4 GHSA-w2hg-2v4p-vmh6
Go github.com/lxc/lxd >= 6.0.0, < 6.5.0 6.5.0 GHSA-w2hg-2v4p-vmh6
Go github.com/lxc/lxd >= 0.0.0-20200331193331-03aab09f5b5c, < 0.0.0-20250827065555-0494f5d47e41 0.0.0-20250827065555-0494f5d47e41 GHSA-w2hg-2v4p-vmh6
Go github.com/lxc/lxd all versions — GO-2025-4004
Go github.com/lxc/lxd/v6 all versions — GO-2025-4004

Advisories 4

References