CVE-2024-6984
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
8.8
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.
- Record
CVE-2024-6984- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Weakness
- CWE-209
- Updated
- 2026-11-02
EUVDEUVD-2024-47965
8.8
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.
- Record
EUVD-2024-47965- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-6vjm-54vp-mxhx
8.7
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. 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.
- Record
GHSA-6vjm-54vp-mxhx- CVSS 4.0
- 8.7 High
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 - CVSS 3.1
- 8.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Weakness
- CWE-209, CWE-269, CWE-284
- Updated
- 2026-11-02
NVD
8.8
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.
- Record
CVE-2024-6984- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - CVSS 3.1
- 3.8 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N - Weakness
- CWE-209
- Updated
- 2026-11-02
OSV
8.8
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.
- Record
CVE-2024-6984- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Weakness
- CWE-209
- Updated
- 2026-11-02
OSVGHSA-6vjm-54vp-mxhx
8.7
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. 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.
- Record
GHSA-6vjm-54vp-mxhx- CVSS 4.0
- 8.7 High
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 - CVSS 3.1
- 8.8 High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H - Weakness
- CWE-209, CWE-269, CWE-284
- Updated
- 2026-11-02
OSVGO-2024-3010 No score
CVE-2024-6984 in github.com/juju/juju
CVE-2024-6984 in github.com/juju/juju.
NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.
(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)
The 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.
- Record
GO-2024-3010- Updated
- 2026-11-02
OSVGO-2024-3040 No score
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
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.
NOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.
(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)
The 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.
- Record
GO-2024-3040- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/juju/jujuGo |
before 2.9.50 | 2.9.50 |
github.com/juju/jujuGo |
3.0.0 up to 3.1.9 | 3.1.9 |
github.com/juju/jujuGo |
3.2.0 up to 3.3.6 | 3.3.6 |
github.com/juju/jujuGo |
3.4.0 up to 3.4.5 | 3.4.5 |
github.com/juju/jujuGo |
3.5.0 up to 3.5.3 | 3.5.3 |
github.com/juju/jujuGo |
All versions | None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases, published | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-6984 is a high vulnerability (CVSS 8.8) in Canonical Juju, published July 29, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.38%, the 32nd percentile. Fixed in github.com/juju/juju 2.9.50.
References
github.com/juju/juju/commit/da929676853092a29ddf8d589468cf85ba3efaf2
github.com/juju/juju/security/advisories/GHSA-6vjm-54vp-mxhx
cve.org/CVERecord?id=CVE-2024-6984
nvd.nist.gov/vuln/detail/CVE-2024-6984
pkg.go.dev/vuln/GO-2024-3010
pkg.go.dev/vuln/GO-2024-3040
github.com/advisories/GHSA-6vjm-54vp-mxhx
github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6984.json
github.com/juju/juju