Security mailing lists by PureSourceCode

CVE-2025-54287

HIGH 7.1CVSS 4.0

Canonical LXD Arbitrary File Read via Template Injection in Snapshot Patterns

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.

Published
2 Oct 2025
Last modified
12 Oct 2026
Assigned by
security@ubuntu.com
NVD status
Analyzed
Weakness
CWE-1336
Also known as
GHSA-w2hg-2v4p-vmh6GO-2025-4004
Sources
NVDJSONOSV GHSA-w2hg-2v4p-vmh6JSONOSV GO-2025-4004JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security@ubuntu.com (Secondary) CVSS 4.0 HIGH 7.1 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
OSV GitHub CVSS 4.0 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
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
OSV GitHub CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD canonical lxd
cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*
>= 4.0.0, < 5.21.4 5.21.4
NVD canonical lxd
cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*
>= 6.1, < 6.5 6.5
OSV Go github.com/lxc/lxd >= 4.0.0, < 5.21.4 5.21.4
OSV Go github.com/lxc/lxd >= 6.0.0, < 6.5.0 6.5.0
OSV Go github.com/lxc/lxd >= 0.0.0-20200331193331-03aab09f5b5c, < 0.0.0-20250827065555-0494f5d47e41 0.0.0-20250827065555-0494f5d47e41
OSV Go github.com/lxc/lxd all versions
OSV Go github.com/lxc/lxd/v6 all versions

References

History

  • 25 Nov 2026 20:59 UTC · NVD: first stored (published 2 Oct 2025)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 Nov 2025)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 2 Oct 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.