7.1

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

Analyzed
AliasesUBUNTU-CVE-2025-54287DEBIAN-CVE-2025-54287GHSA-w2hg-2v4p-vmh6
Published 02-10-2025Last modified 02-10-2025

Vulnerability summary

CVE-2025-54287 is a high (CVSS 7.1) vulnerability in canonical lxd. EPSS estimates a 0.39% chance of exploitation in the next 30 days, higher than 35.1% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (GitHub, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
7.1/10
010
High · v4.0 (CVE.org)
EPSS score
0.39%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 4 · Related 2

Timeline

  1. 02-10-2025
    PublishedVulnerability first disclosed.
  2. 02-10-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

9 scores · 6 sources · 2 versions

EPSS trend

Probability

0.39%

Chance of exploitation in the next 30 days

Percentile

35%

Versus all other CVEs

30-day change

Increase +0.01 pp

From 0.38% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Lxd

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.

Debian2 products
  • incus< 6.0.4-2+deb13u1 | < 6.0.5-1
  • lxdAll versions (No fix recorded) | < 5.0.2+git20231211.1364ae4-9+deb13u1
Alpine1 product
  • incus< 6.0.6-r0
Canonical1 product
  • lxd≥ 6.0, < 6.5 | ≥ 5.21, < 5.21.4 | ≥ 4.0.0, < 5.21.4 | ≥ 6.1, < 6.5
Github.com/lxc1 product
  • lxd≥ 4.0.0, < 5.21.4 | ≥ 6.0.0, < 6.5.0 | ≥ 0.0.0-20200331193331-03aab09f5b5c, < 0.0.0-20250827065555-0494f5d47e41 | All versions (No fix recorded)
Github.com/lxc/lxd1 product
  • v6All versions (No fix recorded)
Ubuntu1 product
  • lxdAll versions (No fix recorded)

6 vendors · 7 products

References

8 links