GHSA-w5fq-8965-c969

Suggest an improvement
Source
https://github.com/advisories/GHSA-w5fq-8965-c969
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w5fq-8965-c969/GHSA-w5fq-8965-c969.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-w5fq-8965-c969
Aliases
  • CVE-2026-5412
Published
2026-04-10T21:00:16Z
Modified
2026-04-10T21:21:11.808426Z
Severity
  • 9.9 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
Juju: CloudSpec method leaking cloud credentials
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-285"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-04-10T21:00:16Z",
    "nvd_published_at": "2026-04-10T13:16:45Z",
    "severity": "CRITICAL"
}
References

Affected packages

Go / github.com/juju/juju

Package

Name
github.com/juju/juju
View open source insights on deps.dev
Purl
pkg:golang/github.com/juju/juju

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.0.0-20260408003526-d395054dc2c3

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-w5fq-8965-c969/GHSA-w5fq-8965-c969.json"