GHSA-6vjm-54vp-mxhx: Juju's unprivileged user running on charm node can leak any secret or relation data accessible to the local charm
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.
Published Aug 5, 2024 · Updated Aug 7, 2024
Affected packages
github.com/juju/juju
- Ecosystem
- Go
- Affected
- < 2.9.50
- Fixed in
- 2.9.50
- Check
go list -m github.com/juju/juju
github.com/juju/juju
- Ecosystem
- Go
- Affected
- >= 3.0.0, < 3.1.9
- Fixed in
- 3.1.9
- Check
go list -m github.com/juju/juju
github.com/juju/juju
- Ecosystem
- Go
- Affected
- >= 3.2.0, < 3.3.6
- Fixed in
- 3.3.6
- Check
go list -m github.com/juju/juju
github.com/juju/juju
- Ecosystem
- Go
- Affected
- >= 3.4.0, < 3.4.5
- Fixed in
- 3.4.5
- Check
go list -m github.com/juju/juju
github.com/juju/juju
- Ecosystem
- Go
- Affected
- >= 3.5.0, < 3.5.3
- Fixed in
- 3.5.3
- Check
go list -m github.com/juju/juju
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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.
Credited to phvalguima, manadart, SimonRichardson, hpidcock, lucistanescu, eslerm.
References
- https://github.com/juju/juju/security/advisories/GHSA-6vjm-54vp-mxhx
- https://nvd.nist.gov/vuln/detail/CVE-2024-6984
- https://github.com/juju/juju/commit/da929676853092a29ddf8d589468cf85ba3efaf2
- https://pkg.go.dev/vuln/GO-2024-3010
- https://pkg.go.dev/vuln/GO-2024-3040
- https://github.com/advisories/GHSA-6vjm-54vp-mxhx
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-5412
Juju: CloudSpec method leaking cloud credentials
critical9.9Apr 10, 2026CVE-2026-5774
Juju: In-Memory Token Store for Discharge Tokens Lacks Concurrency Safety and Persistence
medium6.4Apr 10, 2026CVE-2025-68152
Juju: Read All Controller Logs From Compromised Workload
medium4.9Apr 3, 2026CVE-2025-68153
Juju has a resource poisoning vulnerability
high6.5Apr 3, 2026CVE-2026-4370
Juju has Improper TLS Client/Server authentication and certificate verification on Database Cluster
critical10.0No fixApr 2, 2026CVE-2026-32691
Juju affected by timing ownership claim attack on new external back-end secrets
medium5.3Mar 19, 2026
