StackPatch is liveSee product

Back to CVE digest
CVE-2025-54287 · cross-distro fix matrix

CVE-2025-54287: 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.

Affects 3 Linux releases across 4 (distro × package) combinations.

Fix per ecosystem

Each block below is a distro release where CVE-2025-54287 has a known fix. Run the listed command on that distro to remediate.

Debian bookworm

Source: Debian Security Tracker

  • lxd→ fixed in5.0.2-5+deb12u1urgency: not yet assigned
    sudo apt-get install --only-upgrade -y lxd

Debian trixie

Source: Debian Security Tracker

  • incus→ fixed in6.0.4-2+deb13u1urgency: not yet assigned
    sudo apt-get install --only-upgrade -y incus
  • lxd→ fixed in5.0.2+git20231211.1364ae4-9+deb13u1urgency: not yet assigned
    sudo apt-get install --only-upgrade -y lxd

Alpine edge

Source: Alpine secdb

  • incus→ fixed in6.0.6-r0
    apk update && apk add --upgrade incus
Are YOU affected by CVE-2025-54287?

5-second check on your actual server. Reads /etc/os-release, uname -r, and the distro's package manager; matches against this same cross-source index live.

curl https://mindsparkstack.com/scan.sh | bash
Continuous monitoring beats manual checking

CVE-2025-54287dropped silently in your distro's update channel. Every new CVE is the same story. StackPatch runs the matcher hourly against all 5 sources and emails the exact remediation when something new applies to one of your servers. $99 lifetime, 50 founder seats, 30-day refund.

See StackPatch ($99 lifetime)