9.9critical
Juju CloudSpec API could leak senstive information
- Severity
- 9.9critical CVSS:3.1 by canonical
- Exploit likelihood
- 0.48% (higher than 43% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- canonical
- Also known as
- GHSA-w5fq-8965-c969GO-2026-5692
Description
In Juju versions prior to 2.9.57 and 3.6.21, an authorization issue exists in the Controller facade. An authenticated user can call the CloudSpec API method to extract the cloud credentials used to bootstrap the controller. This allows a low-privileged user to access sensitive credentials. This issue is resolved in Juju versions 2.9.57 and 3.6.21.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| juju | from 2.9.0 before 2.9.57, from 3.6.0 before 3.6.21 | CVE List |
| github.com/juju/juju (Go) | before 0.0.0-20260408003526-d395054dc2c3 | GitHub Advisory Database, Go Vulnerability Database |
| canonical juju | before 2.9.57, from 3.6 before 3.6.21 | NVD |
All scores
| canonical | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| GitHub | 9.9critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
In Juju versions prior to 2.9.57 and 3.6.21, an authorization issue exists in the Controller facade. An authenticated user can call the CloudSpec API method to extract the cloud credentials used to bootstrap the controller. This allows a low-privileged user to access sensitive credentials. This issue is resolved in Juju versions 2.9.57 and 3.6.21.
GitHub Advisory Database
Impact
If a user has login permission to a controller and knows the controller model UUID, they can call the CloudSpec method on the Controller facade and get cloud credentials used to bootstrap the controller.
The CloudSpec API is called by workers running in the controller to maintain connection to the cloud - this aspect is not the issue. The API is also called by the CLI when killing (force destroying a controller with juju kill-controller). This is the problematic aspect. The API is exposed to any client caller where that client has nothing more than logon permission on the controller. What should happen is that getting access to the credential should be limited to those client connections where the authenticated user has superuser or model admin permission.
This affect 2.9, 3.6, 4.0.6 (snap from 4.0/edge channel).
The fix will allow non-confidential, public information like cloud endpoint etc to be read, but only controller superusers or model admins will be able to see the credential details.
Patches
No patch exists.
Workarounds
The only mitigation is to restrict ingress to the controller API port 17070 on all controller machines (for vm deployments) or the controller service (for k8s deployments). The Juju CLI and other clients like libjuju or JAAS require ingress to port 17070 so any restricted access will need to take into account those access requirements.
Go Vulnerability Database
Juju: CloudSpec method leaking cloud credentials in github.com/juju/juju
NVD (es)
En versiones de Juju anteriores a 2.9.57 y 3.6.21, existe un problema de autorización en la fachada del Controlador. Un usuario autenticado puede llamar al método API CloudSpec para extraer las credenciales de la nube utilizadas para arrancar el controlador. Esto permite a un usuario con pocos privilegios acceder a credenciales sensibles. Este problema se resuelve en las versiones de Juju 2.9.57 y 3.6.21.
References
| https://github.com/juju/juju/security/advisories/GHSA-w5fq-8965-c969 | advisory, exploit, third-party-advisory, vdb-entry, vendor-advisory, web | |
| https://github.com/juju/juju/pull/22206 | fix, issue-tracking, patch, web | |
| https://github.com/juju/juju/pull/22205 | fix, issue-tracking, patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-5412 | advisory | |
| https://github.com/juju/juju | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-5412 changed 2026-04-10 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-w5fq-8965-c969 changed 2026-06-25 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-5692 changed 2026-06-25 | CC-BY-4.0 |
| NVD | CVE-2026-5412 changed 2026-10-26 | Public domain |