Live threats

All CVEs / Canonical

CVE-2025-54287Canonical Lxd

High 7.1

Priority
43
CVSS 4.0
7.1
EPSS
—
Auth required
Yes
Published
Oct 2, 2025
Updated
Oct 12, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1336
SSVC (CISA)
Exploitation: proof of concept · Automatable: yes · Technical impact: partial
Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Lxd.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/lxc/lxd ≥ 4.0.0 < 5.21.4 5.21.4 go get github.com/lxc/lxd@v5.21.4
Go github.com/lxc/lxd ≥ 6.0.0 < 6.5.0 6.5.0 go get github.com/lxc/lxd@v6.5.0
Go github.com/lxc/lxd ≥ 0.0.0-20200331193331-03aab09f5b5c < 0.0.0-20250827065555-0494f5d47e41 0.0.0-20250827065555-0494f5d47e41 go get github.com/lxc/lxd@v0.0.0-20250827065555-0494f5d47e41
Go github.com/lxc/lxd all no fixed version —
Go github.com/lxc/lxd/v6 all no fixed version —

Per OSV / GitHub Advisories (GHSA-w2hg-2v4p-vmh6, GO-2025-4004). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
canonicallxd≥ 4.0.0 < 5.21.4
canonicallxd≥ 6.1 < 6.5

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.