CVE-2026-5412 — Vulnerability in github.com/juju/juju — CVE Details
Juju: CloudSpec method leaking cloud credentials
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (0.50%). Schedule for your next planned update.
Does your project use an affected github.com/juju/juju version?
Paste your go.sum to check it for CVE-2026-5412 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published April 10, 2026 (230 days ago).
- Last revised June 25, 2026 — 76 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
go get github.com/juju/juju@v0.0.0-20260408003526-d395054dc2c3
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: Go (1).
| Package | Fixed In |
|---|---|
| github.com/juju/juju Go · Affected: All versions | 0.0.0-20260408003526-d395054dc2c3 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-285Improper AuthorizationMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.9 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
References
Frequently Asked Questions
- What is CVE-2026-5412?
- Juju: CloudSpec method leaking cloud credentials. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.9/10).
- How do I check if my project is affected by CVE-2026-5412?
- CVE-2026-5412 affects github.com/juju/juju. It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-5412 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is a below-median EPSS score — only 36.1% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.
Also Known As
Related CVEs
- CVE-2026-104099CRITICAL
Fabio: Access-control bypass through unnormalized request paths
- CVE-2026-4370CRITICAL
Juju has Improper TLS Client/Server authentication and certificate verification on Database Cluster
- CVE-2017-9232CRITICAL
Juju uses a UNIX domain socket without setting appropriate permissions
- CVE-2026-77369CRITICAL
Daptin: Broken Access Control (IDOR) in the generic YJS collaboration endpoint
- CVE-2025-53513HIGH
Juju zip slip vulnerability via authenticated endpoint
- CVE-2026-32693HIGH
Juju has unauthorized access to out-of-scope Kubernetes secrets
- CVE-2025-0928HIGH
Juju allows arbitrary executable uploads via authenticated endpoint without authorization
- CVE-2024-6984HIGH
Juju's unprivileged user running on charm node can leak any secret or relation data accessible to the local charm