Canonical LXD up to 5.21.3/6.4 Instance Snapshot special elements used in a template engine
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 5.3 | $0-$5k | 0.00 |
Summary
A vulnerability, which was classified as problematic, was found in Canonical LXD up to 5.21.3/6.4. This impacts an unknown function of the component Instance Snapshot Handler. Such manipulation leads to improper neutralization of special elements used in a template engine. This vulnerability is referenced as CVE-2025-54287. It is possible to launch the attack remotely. No exploit is available. You should upgrade the affected component.
Details
A vulnerability, which was classified as problematic, has been found in Canonical LXD up to 5.21.3/6.4. Affected by this issue is some unknown functionality of the component Instance Snapshot Handler. The manipulation with an unknown input leads to a improper neutralization of special elements used in a template engine vulnerability. Using CWE to declare the problem leads to CWE-1336. The product uses a template engine to insert or process externally-influenced input, but it does not neutralize or incorrectly neutralizes special elements or syntax that can be interpreted as template expressions or other code directives when processed by the engine. Impacted is confidentiality. CVE summarizes:
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.
The advisory is shared for download at github.com. This vulnerability is handled as CVE-2025-54287 since 07/18/2025. The exploitation is known to be easy. The attack may be launched remotely. There are neither technical details nor an exploit publicly available. The MITRE ATT&CK project declares the attack technique as T1221.
The vulnerability scanner Nessus provides a plugin with the ID 270713 (Debian dsa-6027 : golang-github-lxc-incus-dev - security update), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 5.21.4 or 6.5 eliminates this vulnerability.
The vulnerability is also documented in the databases at Tenable (270713) and EUVD (EUVD-2025-32636). VulDB is the best source for vulnerability data and more expert information about this specific topic.
Product
Vendor
Name
Version
License
Website
- Product: https://github.com/canonical/lxd/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CNA CVSS-B Score: 🔒
CNA CVSS-BT Score: 🔒
CNA Vector: 🔒
CVSSv3
VulDB Meta Base Score: 5.4VulDB Meta Temp Score: 5.3
VulDB Base Score: 4.3
VulDB Temp Score: 4.1
VulDB Vector: 🔒
VulDB Reliability: 🔍
NVD Base Score: 6.5
NVD Vector: 🔒
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Improper neutralization of special elements used in a template engineCWE: CWE-1336 / CWE-791 / CWE-790
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Yes
Availability: 🔒
Status: Not defined
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 270713
Nessus Name: Debian dsa-6027 : golang-github-lxc-incus-dev - security update
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: LXD 5.21.4/6.5
Timeline
07/18/2025 CVE reserved10/02/2025 Advisory disclosed
10/02/2025 VulDB entry created
01/17/2026 VulDB entry last update
Sources
Product: github.comAdvisory: github.com
Status: Confirmed
CVE: CVE-2025-54287 (🔒)
GCVE (CVE): GCVE-0-2025-54287
GCVE (VulDB): GCVE-100-326720
EUVD: 🔒
Entry
Created: 10/02/2025 12:07Updated: 01/17/2026 03:34
Changes: 10/02/2025 12:07 (66), 10/18/2025 05:19 (2), 10/23/2025 05:26 (11), 01/17/2026 03:34 (1)
Complete: 🔍
Cache ID: 216::103
VulDB is the best source for vulnerability data and more expert information about this specific topic.
No comments yet. Languages: en.
Please log in to comment.