{"id":"CVE-2024-6984","aliases":["CVE-2024-6984","GHSA-6vjm-54vp-mxhx","GO-2024-3010","GO-2024-3040"],"related":[],"kind":"vulnerability","state":"published","title":"Juju's unprivileged user running on charm node can leak any secret or relation data accessible to the local charm","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"CVE-2024-6984 in github.com/juju/juju.\n\nNOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.\n\n(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)\n\nThe additional affected modules and versions are: github.com/juju/juju from v2.9.0 before v2.9.50, from v3.1.0 before v3.1.9, from v3.3.0 before v3.3.5, from v3.4.0 before v3.4.5, from v3.5.0 before v3.5.3.","format":"markdown","source":"go"},{"lang":"en","text":"Juju's unprivileged user running on charm node can leak any secret or relation data accessible to the local charm in github.com/juju/juju.\n\nNOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.\n\n(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)\n\nThe additional affected modules and versions are: github.com/juju/juju before v2.9.50, from v3.0.0 before v3.1.9, from v3.2.0 before v3.3.6, from v3.4.0 before v3.4.5, from v3.5.0 before v3.5.3.","format":"markdown","source":"go"},{"lang":"es","text":"Se descubrió un problema en Juju que resultó en la filtración del ID de contexto confidencial, que permite a un atacante local sin privilegios acceder a otros datos o relaciones confidenciales accesibles al acceso local.","source":"nvd"}],"published":"2024-07-29T14:04:05.925Z","modified":"2026-07-08T06:52:56.454Z","severity":{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","score":3.8,"rating":"LOW"}],"cwes":["CWE-209","CWE-269","CWE-284"],"affected":[{"ranges":[{"type":"semver","introduced":"3.5","fixed":"3.5.3","status":"affected"},{"type":"semver","introduced":"3.4","fixed":"3.4.5","status":"affected"},{"type":"semver","introduced":"3.3","fixed":"3.3.5","status":"affected"},{"type":"semver","introduced":"3.1","fixed":"3.1.9","status":"affected"},{"type":"semver","introduced":"2.9","fixed":"2.9.50","status":"affected"}],"vendor":"Canonical Ltd.","product":"Juju","package":"juju","repo":"https://github.com/juju/juju","platforms":["Linux","MacOS","Windows"],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"2.9","fixed":"2.9.50","status":"affected"},{"type":"custom","introduced":"3.1","fixed":"3.1.9","status":"affected"},{"type":"custom","introduced":"3.3","fixed":"3.3.5","status":"affected"},{"type":"custom","introduced":"3.4","fixed":"3.4.5","status":"affected"},{"type":"custom","introduced":"3.5","fixed":"3.5.3","status":"affected"}],"vendor":"canonical","product":"juju","cpe":"cpe:2.3:a:canonical:juju:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.9.50"}],"ecosystem":"Go","package":"github.com/juju/juju","purl":"pkg:golang/github.com/juju/juju","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"3.0.0","status":"affected","fixed":"3.1.9"}],"ecosystem":"Go","package":"github.com/juju/juju","purl":"pkg:golang/github.com/juju/juju","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"3.2.0","status":"affected","fixed":"3.3.6"}],"ecosystem":"Go","package":"github.com/juju/juju","purl":"pkg:golang/github.com/juju/juju","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"3.4.0","status":"affected","fixed":"3.4.5"}],"ecosystem":"Go","package":"github.com/juju/juju","purl":"pkg:golang/github.com/juju/juju","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"3.5.0","status":"affected","fixed":"3.5.3"}],"ecosystem":"Go","package":"github.com/juju/juju","purl":"pkg:golang/github.com/juju/juju","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/juju/juju","purl":"pkg:golang/github.com/juju/juju","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/juju/juju","purl":"pkg:golang/github.com/juju/juju","source":"go"},{"ranges":[{"status":"affected","introduced":"2.9","fixed":"2.9.50"},{"status":"affected","introduced":"3.1","fixed":"3.1.9"},{"status":"affected","introduced":"3.3","fixed":"3.3.6"},{"status":"affected","introduced":"3.4","fixed":"3.4.5"},{"status":"affected","introduced":"3.5","fixed":"3.5.3"}],"vendor":"canonical","product":"juju","cpe":"cpe:2.3:a:canonical:juju:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/juju/juju/commit/da929676853092a29ddf8d589468cf85ba3efaf2","tags":["fix","patch","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/juju/juju/security/advisories/GHSA-6vjm-54vp-mxhx","tags":["advisory","exploit","issue-tracking","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-6984","tags":["advisory","issue-tracking","third-party-advisory","x-transferred"],"sources":["cvelist","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6984","tags":["advisory","web"],"sources":["ghsa","go"]},{"url":"https://github.com/juju/juju","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2024-3010","tags":["web"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2024-3040","tags":["web"],"sources":["ghsa"]}],"credits":["Pedro Valverde Guimaraes","Joe Phillips","Mark Esler"],"assigner":"canonical","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-07-29T14:37:36.928Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-6984","url":"https://www.cve.org/CVERecord?id=CVE-2024-6984","licence":"CVE Terms of Use","modified":"2024-08-01T21:45:38.419Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6vjm-54vp-mxhx","url":"https://github.com/advisories/GHSA-6vjm-54vp-mxhx","licence":"CC-BY-4.0","modified":"2026-07-08T06:52:56.454Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-3010","url":"https://pkg.go.dev/vuln/GO-2024-3010","licence":"CC-BY-4.0","modified":"2026-07-08T06:49:29.019Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-3040","url":"https://pkg.go.dev/vuln/GO-2024-3040","licence":"CC-BY-4.0","modified":"2026-07-08T06:49:29.019Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-6984","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6984","licence":"Public domain","modified":"2026-06-17T08:19:07.647Z"}],"updatedAt":"2026-11-25T22:58:43.288Z","epss":{"score":0.00379,"percentile":0.33891,"date":"2026-12-02T12:00:21.000Z"}}