GitHub Advisoryadvisory · Go
GHSA-6vjm-54vp-mxhx Juju's unprivileged user running on charm node can leak any secret or relation data accessible to the local charm
HIGH
Official page ↗
- Ecosystem
- Go
- Packages
- github.com/juju/juju
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- Weaknesses
- CWE-209, CWE-269, CWE-284
- Reviewed
- 2024-08-05
Affected packages
• Go github.com/juju/juju: < 2.9.50 → fixed in 2.9.50
• Go github.com/juju/juju: >= 3.0.0, < 3.1.9 → fixed in 3.1.9
• Go github.com/juju/juju: >= 3.2.0, < 3.3.6 → fixed in 3.3.6
• Go github.com/juju/juju: >= 3.4.0, < 3.4.5 → fixed in 3.4.5
• Go github.com/juju/juju: >= 3.5.0, < 3.5.3 → fixed in 3.5.3
Description
An issue was discovered in Juju that resulted in the leak of the sensitive context ID, which allows a local unprivileged attacker to access other sensitive data or relation accessible to the local charm. A potential exploit where a user can run a bash loop attempting to execute hook tools. If running while another hook is executing, we log an error with the context ID, making it possible for the user to then use that ID in a following call successfully. This means an unprivileged user can access anything available via a hook tool such as config, relation data and secrets.
Related
References
- https://github.com/juju/juju/security/advisories/GHSA-6vjm-54vp-mxhx web
- https://nvd.nist.gov/vuln/detail/CVE-2024-6984 advisory
- https://github.com/juju/juju/commit/da929676853092a29ddf8d589468cf85ba3efaf2 web
- https://github.com/juju/juju package
- https://pkg.go.dev/vuln/GO-2024-3010 web
- https://pkg.go.dev/vuln/GO-2024-3040 web