6.9medium
Project Existence Disclosure via Error Handling in LXD Image Export
- Severity
- 6.9medium CVSS:4.0 by canonical
- Exploit likelihood
- 0.34% (higher than 28% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- canonical
- Also known as
- GHSA-p3x5-mvmp-5f35GO-2025-4002
Description
Information disclosure in image export API in Canonical LXD before 6.5 and 5.21.4 on Linux allows network attackers to determine project existence without authentication via crafted requests using wildcard fingerprints.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Canonical LXD | from 6.0 before 6.5, from 5.21 before 5.21.4, from 4.0.0 before 5.21.4, from 6.1 before 6.5 | CVE List, NVD |
| github.com/canonical/lxd (Go) | from 4.0 before 5.21.4, from 6.0 before 6.5, from 0.0.0-20200331193331-03aab09f5b5c before 0.0.0-20250827065555-0494f5d47e41 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| canonical | 6.9medium CVSS:4.0 | 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 |
| GitHub | medium CVSS:4.0 | 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 |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
Information disclosure in image export API in Canonical LXD before 6.5 and 5.21.4 on Linux allows network attackers to determine project existence without authentication via crafted requests using wildcard fingerprints.
GitHub Advisory Database
Impact
In LXD's images export API (/1.0/images/{fingerprint}/export), implementation differences in error handling allow determining project existence without authentication.
Specifically, in the following code, errors when multiple images match are directly returned to users as API responses:
While fingerprints generally don't duplicate, this functionality uses fingerprints with LIKE clauses, allowing prefix specification. Therefore, using LIKE wildcards such as % will match multiple images if multiple images exist in the project.
In the above implementation, multiple matches result in a 500 error, but if the project itself doesn't exist, there are 0 matches and a 404 is returned.
- When project exists and multiple images match: HTTP 500 error "More than one image matches"
- When project doesn't exist: HTTP 404 error "not found"
This behavioural difference allows attackers to confirm project existence without authentication.
Reproduction Steps
- Send a request with a pattern matching multiple entries to an existing project (default):
curl -k 'https://lxd-host:8443/1.0/images/%25/export?project=default&secret=x'
Response:
{"type":"error","status":"","status_code":0,"operation":"","error_code":500,"error":"More than one image matches","metadata":null}
- Send a same request to a non-existent project (not-exist):
curl -k 'https://lxd-host:8443/1.0/images/%25/export?project=not-exist&secret=x'
Response:
{"type":"error","status":"","status_code":0,"operation":"","error_code":404,"error":"not found","metadata":null}
This difference allows enumerating existing projects in the system by brute-forcing(dictionary attack) project names.
Note that %25 is the URL encoding of %, which works as a wildcard matching all characters in SQL LIKE clauses.
This is used to intentionally create requests matching multiple images to trigger a 500 error.
Additionally, the secret parameter is added to include non-public images in the search, increasing the possibility of multiple matches.
Risk
The attack requires only network access to the LXD API endpoint, with no authentication needed.
The attack allows confirming the existence of projects within the LXD system by exploiting differences in HTTP status codes. This could potentially increase the exploitability of other vulnerabilities. Additionally, since project IDs often use meaningful names set by users, this could lead to leakage of unpublished product information.
However, resource information within projects cannot be obtained, limiting the impact to existence confirmation only.
Countermeasures
It is recommended to modify error handling in the images export API (/1.0/images/{fingerprint}/export) to return consistent responses regardless of project existence.
Specifically, return 404 even when errors occur during project existence verification. This ensures the same error response is returned for both existing and non-existing projects, preventing determination of project existence.
Additionally, if there are no specification(compatibility) issues, allowing only exact fingerprint matches in unauthenticated states and disabling prefix matching can prevent unexpected errors from occurring.
Patches
| LXD Series | Status |
|---|---|
| 6 | Fixed in LXD 6.5 |
| 5.21 | Fixed in LXD 5.21.4 |
| 5.0 | Ignored - Not critical |
| 4.0 | Ignored - EOL and not critical |
References
Reported by GMO Flatt Security Inc.
Go Vulnerability Database
Canonical LXD Project Existence Determination Through Error Handling in Image Export Function in github.com/canonical/lxd
NVD (es)
Revelación de información en la API de exportación de imágenes en Canonical LXD antes de 6.5 y 5.21.4 en Linux permite a atacantes de red determinar la existencia de proyectos sin autenticación mediante solicitudes manipuladas utilizando huellas digitales comodín.
References
| https://github.com/canonical/lxd/security/advisories/GHSA-p3x5-mvmp-5f35 | advisory, exploit, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-54290 | advisory | |
| https://github.com/canonical/lxd | package | |
| https://pkg.go.dev/vuln/GO-2025-4002 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-54290 changed 2025-10-02 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-p3x5-mvmp-5f35 changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2025-4002 changed 2025-11-05 | CC-BY-4.0 |
| NVD | CVE-2025-54290 changed 2026-10-12 | Public domain |