Loading...
Skip to main content

CVE-2026-5412 — Vulnerability in github.com/juju/juju — CVE Details

CRITICAL

Juju: CloudSpec method leaking cloud credentials

Published April 10, 2026Updated June 25, 2026Source: osv

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 (185 days ago).
  • Last revised June 25, 2026 — 76 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Go
Update github.com/juju/juju to 0.0.0-20260408003526-d395054dc2c3 or later
go get github.com/juju/juju@v0.0.0-20260408003526-d395054dc2c3

After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: go (1).

PackageEcosystemAffectedFixed In
github.com/juju/juju
go
All versions0.0.0-20260408003526-d395054dc2c3

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-285
    Improper AuthorizationMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.9 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

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. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-5412 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.9

Exploitation is straightforward and causes maximum impact. Patch immediately.

Also Known As

GHSA-w5fq-8965-c969
GO-2026-5692

Related CVEs

  • CVE-2026-4370
    CRITICAL

    Juju has Improper TLS Client/Server authentication and certificate verification on Database Cluster

  • CVE-2017-9232
    CRITICAL

    Juju uses a UNIX domain socket without setting appropriate permissions

  • CVE-2026-107806
    CRITICAL

    Nginx UI: Authenticated Remote Code Execution via Backup Restore App Config Overwrite

  • CVE-2026-68582
    CRITICAL

    Vikunja: Link-share token reads any tenant's kanban buckets and enumerates usernames/IDs instance-wide (BOLA)

  • CVE-2025-53513
    HIGH

    Juju zip slip vulnerability via authenticated endpoint

  • CVE-2026-32693
    HIGH

    Juju has unauthorized access to out-of-scope Kubernetes secrets

  • CVE-2025-0928
    HIGH

    Juju allows arbitrary executable uploads via authenticated endpoint without authorization

  • CVE-2024-6984
    HIGH

    Juju's unprivileged user running on charm node can leak any secret or relation data accessible to the local charm

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies