# CVE-2025-54291: Canonical LXD Project Existence Determination Through Error Handling in Image Get Function

Source: https://junglewise.ai/threats/cve-2025-54291-canonical-lxd-project-existence-determination-through-error  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-11-05  
License: CC BY 4.0 with a link back

CVE-2025-54291 · Severity: low · CVSS 3.1 · Published 2025-11-05

Canonical LXD Project Existence Determination Through Error Handling in Image Get Function in github.com/canonical/lxd

Technologies: [github.com/canonical/lxd (Go)](https://junglewise.ai/threats/technologies/github-com-canonical-lxd). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2025-54291 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-54291 being exploited in the wild.

**How severe is CVE-2025-54291?** Low severity, with a CVSS score of 3.1, published 5 November 2025.

**Which products and versions are affected?** github.com/canonical/lxd (Go) ECOSYSTEM:introduced=4.0,fixed=5.21.4, SEMVER:introduced=0.0.0-20200331193331-03aab09f5b5c,fixed=0.0.0-20250827065555-0494f5d47e41.

**Is there a fix for CVE-2025-54291?** Yes. github.com/canonical/lxd (Go): upgrade to 0.0.0-20250827065555-0494f5d47e41, 5.21.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-54291?** Check whether you run github.com/canonical/lxd (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/canonical/lxd (Go): upgrade to 0.0.0-20250827065555-0494f5d47e41, 5.21.4 or later

  ```sh
  go get github.com/canonical/lxd@v5.21.4
  ```


## Affected products

- github.com/canonical/lxd (Go) ECOSYSTEM:introduced=4.0,fixed=5.21.4, SEMVER:introduced=0.0.0-20200331193331-03aab09f5b5c,fixed=0.0.0-20250827065555-0494f5d47e41

## Identifiers

- CVE-2025-54291
- GHSA-xch9-h8qw-85c7
- GO-2025-4005

## Related threats

- [LXD restricted project bypass leading to arbitrary command execution](https://junglewise.ai/threats/lxd-has-restricted-project-bypass-leading-to-arbitrary-command-9034cd45)
- [LXD project restriction bypass in custom volume copy](https://junglewise.ai/threats/lxd-has-project-restriction-bypass-for-custom-volume-copy-across-d414fa7a)
- [LXD project restriction bypass in instance copy](https://junglewise.ai/threats/lxd-has-project-restriction-bypass-in-instance-copy-across-projects-48d466e0)
- [Incus arbitrary file write via trusted image hash](https://junglewise.ai/threats/lxd-has-arbitrary-file-write-on-client-due-to-trusted-image-hash-072dacee)
- [LXD argument injection in backup compression algorithm](https://junglewise.ai/threats/lxd-has-argument-injection-in-backup-compression-algorithm-leading-to-50a60f2a)
