Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/juju/juju
  4. ›
  5. CVE-2026-5412

CVE-2026-5412: Juju: CloudSpec method leaking cloud credentials

April 10, 2026

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.

References

  • github.com/advisories/GHSA-w5fq-8965-c969
  • github.com/juju/juju
  • github.com/juju/juju/pull/22205
  • github.com/juju/juju/pull/22206
  • github.com/juju/juju/security/advisories/GHSA-w5fq-8965-c969
  • nvd.nist.gov/vuln/detail/CVE-2026-5412

Code Behaviors & Features

Detect and mitigate CVE-2026-5412 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.0.0-20260408003526-d395054dc2c3

Fixed versions

  • 0.0.0-20260408003526-d395054dc2c3

Solution

Upgrade to version 0.0.0-20260408003526-d395054dc2c3 or above.

Impact 9.9 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-285: Improper Authorization

Source file

go/github.com/juju/juju/CVE-2026-5412.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:19:18 +0000.