{"id":"CVE-2024-6984","aliases":["EUVD-2024-47965","GHSA-6vjm-54vp-mxhx","GO-2024-3010","GO-2024-3040"],"status":"published","title":"Juju's unprivileged user running on charm node can leak any secret or relation data accessible to the local charm","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.","severity":{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.00379,"percentile":0.32085,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-209","CWE-269","CWE-284"],"published":"2024-07-29T14:04:05Z","modified":"2026-10-28T02:30:49Z","fixes":[{"ecosystem":"Go","package":"github.com/juju/juju","fixed_in":["2.9.50","3.1.9","3.3.6","3.4.5","3.5.3"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/juju/juju","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.50"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/juju/juju","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.0.0"},{"fixed":"3.1.9"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/juju/juju","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.2.0"},{"fixed":"3.3.6"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/juju/juju","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.4.0"},{"fixed":"3.4.5"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/juju/juju","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.5.0"},{"fixed":"3.5.3"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/juju/juju","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.9.50"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/juju/juju","ranges":[{"type":"SEMVER","events":[{"introduced":"3.0.0"},{"fixed":"3.1.9"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/juju/juju","ranges":[{"type":"SEMVER","events":[{"introduced":"3.2.0"},{"fixed":"3.3.6"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/juju/juju","ranges":[{"type":"SEMVER","events":[{"introduced":"3.4.0"},{"fixed":"3.4.5"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/juju/juju","ranges":[{"type":"SEMVER","events":[{"introduced":"3.5.0"},{"fixed":"3.5.3"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/juju/juju","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/juju/juju","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]}],"products":[{"vendor":"canonical","product":"juju"},{"vendor":"canonical ltd.","product":"juju"}],"references":[{"url":"https://github.com/juju/juju/commit/da929676853092a29ddf8d589468cf85ba3efaf2","tags":["patch","x_transferred","Patch","fix","web"]},{"url":"https://github.com/juju/juju/security/advisories/GHSA-6vjm-54vp-mxhx","tags":["issue-tracking","x_transferred","Exploit","Vendor Advisory","report","web","advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-6984","tags":["issue-tracking","x_transferred","Third Party Advisory","report","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-6984","tags":["advisory","web"]},{"url":"https://pkg.go.dev/vuln/GO-2024-3010","tags":["web"]},{"url":"https://pkg.go.dev/vuln/GO-2024-3040","tags":["web"]},{"url":"https://github.com/advisories/GHSA-6vjm-54vp-mxhx"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6984.json","tags":["advisory"]},{"url":"https://github.com/juju/juju","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-6984","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.","status":"published","published":"2024-07-29T14:04:05.925Z","modified":"2024-08-01T21:45:38.419Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-209"],"updated_at":"2026-11-02T14:34:10.961618Z"}],"euvd":[{"id":"EUVD-2024-47965","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.","status":"published","published":"2024-07-29T14:04:05Z","modified":"2024-08-01T21:45:38Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T03:50:32.164086Z"}],"ghsa":[{"id":"GHSA-6vjm-54vp-mxhx","title":"Juju's unprivileged user running on charm node can leak any secret or relation data accessible to the local charm","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.","status":"published","published":"2024-08-05T17:19:11Z","modified":"2024-08-07T14:13:31Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"high"},{"version":"4.0","score":8.7,"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","level":"high"}],"cwes":["CWE-209","CWE-269","CWE-284"],"updated_at":"2026-11-02T14:37:58.427757Z"}],"nvd":[{"id":"CVE-2024-6984","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.","status":"published","published":"2024-07-29T14:15:04.477Z","modified":"2026-06-17T08:19:07.647Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"3.1","score":3.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","level":"low","assessor":"primary"}],"cwes":["CWE-209"],"updated_at":"2026-11-02T14:10:14.437386Z"}],"osv":[{"id":"CVE-2024-6984","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.","status":"published","published":"2024-07-29T14:04:05.925Z","modified":"2026-10-28T02:30:49.331440792Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-209"],"updated_at":"2026-11-02T15:44:45.405014Z"},{"id":"GHSA-6vjm-54vp-mxhx","title":"Juju's unprivileged user running on charm node can leak any secret or relation data accessible to the local charm","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.","status":"published","published":"2024-08-05T17:19:11Z","modified":"2026-07-08T06:52:56.454258198Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","level":"high"},{"version":"4.0","score":8.7,"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","level":"high"}],"cwes":["CWE-209","CWE-269","CWE-284"],"updated_at":"2026-11-02T15:46:40.308826Z"},{"id":"GO-2024-3010","title":"CVE-2024-6984 in github.com/juju/juju","description":"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.","status":"published","published":"2024-08-06T22:03:16Z","modified":"2026-07-08T06:49:29.019572311Z","updated_at":"2026-11-02T15:47:01.453823Z"},{"id":"GO-2024-3040","title":"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","description":"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.","status":"published","published":"2024-08-06T22:03:16Z","modified":"2026-07-08T06:49:29.019572311Z","updated_at":"2026-11-02T15:47:01.453823Z"}]}}
