Improper Neutralization of Special Elements Used in a Template Engine Affecting github.com/canonical/lxd/shared package, versions <5.21.4>=6.1.0 <6.5.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMCANONICALLXDSHARED-13301110
  • published6 Oct 2025
  • disclosed2 Oct 2025
  • creditUnknown

Introduced: 2 Oct 2025

NewCVE-2025-54287  (opens in a new tab)
CWE-1336  (opens in a new tab)

How to fix?

Upgrade github.com/canonical/lxd/shared to version 5.21.4, 6.5.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Neutralization of Special Elements Used in a Template Engine via the RenderTemplate function. An attacker can access sensitive files by injecting malicious templates into the snapshots.pattern configuration, which are then processed by the template engine with file inclusion capabilities. This is only exploitable if the attacker has permissions to modify instance settings.

Workaround

The following tags should not be used: *​ include *​ ssi

  • extends
  • import

CVSS Base Scores

version 4.0
version 3.1