{
  "id": "CVE-2025-54287",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-54287",
  "published_at": "2025-10-02T09:16:02.241Z",
  "title": "Arbitrary File Read via Template Injection in Snapshot Patterns",
  "vendor": "Canonical",
  "product": "LXD",
  "cvss": {
    "score": 7.1,
    "source": "cna",
    "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Template Injection in instance snapshot creation component in Canonical LXD (\u003e= 4.0) allows an attacker with instance configuration \npermissions to read arbitrary files on the host system via specially crafted snapshot pattern templates using the Pongo2 template engine.",
  "cwe": "CWE-1336",
  "cpes": [
    "cpe:2.3:a:canonical:lxd:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.1,
    "nvd": 6.5
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Canonical",
        "product": "LXD",
        "ranges": [
          "\u003e= 6.0, \u003c 6.5",
          "\u003e= 5.21, \u003c 5.21.4"
        ],
        "fixed_in": [
          "6.5",
          "5.21.4"
        ]
      }
    ],
    "upgrade": [
      "Upgrade LXD to 6.5 or 5.21.4 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/canonical/lxd/security/advisories/GHSA-w2hg-2v4p-vmh6"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
