Skip to main content
VulnerabilityPublished Updated

CVE-2025-54291: github.com/canonical/lxd · Canonical LXD Project Existence Determination Through Error Handling in Image Get Function

Affects github.com/canonical/lxdSource GCVE Database

0
Compare
Authoritative record:CVE-2025-54291· Medium 6.9

Not known to be exploited · CVSS 6.9 Medium : upgrade to 5.21.4 when convenient.

Data as of 4 Nov 2026, 18:23 UTC

CVSS 4.0 base score
6.9Medium
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 5.21.4, 6.5, 0.0.0-20250827065555-0494f5d47e41
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 2 Oct 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 4 Nov 2026.

What to do

Upgrade github.com/canonical/lxd to 5.21.4; github.com/canonical/lxd to 6.5; github.com/canonical/lxd to 0.0.0-20250827065555-0494f5d47e41.

Affected software

ProductAffectedFixed in
Gogithub.com/canonical/lxdAffected
  • >=4.0 <5.21.4
Fixed in
  • 5.21.4
Gogithub.com/canonical/lxdAffected
  • >=6.0 <6.5
Fixed in
  • 6.5
Gogithub.com/canonical/lxdAffected
  • >=0.0.0-20200331193331-03aab09f5b5c <0.0.0-20250827065555-0494f5d47e41
Fixed in
  • 0.0.0-20250827065555-0494f5d47e41

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A patch is available and should be applied. The issue is fixed in LXD 5.21.4 and 6.5. The fix changes the error handling in the imagesGet function to always return a 403 error to unauthenticated users regardless of project existence, preventing attackers from distinguishing project existence via HTTP status codes. Users should upgrade to these fixed versions to mitigate this vulnerability.

Description

CVE-2025-54291 is an information disclosure vulnerability in Canonical's LXD API allowing unauthenticated users to determine the existence of projects by observing differing HTTP status codes returned from the /1.0/images endpoint. The API returns a 404 error for non-existent projects and a 403 error for existing projects without viewing permissions. This behavior leaks project existence information but does not expose project resource details. The issue is fixed in LXD versions 5.21.4 and 6.5.

References

Community reviews

Loading reviews…