# CVE-2024-7558: JUJU_CONTEXT_ID is a predictable authentication secret

- Severity: High 8.7 (CVSS:3.1, scored by canonical) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.50%, higher than 44% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-10-02T10:06:31.098Z
- Modified: 2026-06-17T08:20:26.893Z
- Also known as: GHSA-mh98-763h-m9v4, GO-2024-3173
- Weaknesses: CWE-330, CWE-335, CWE-337, CWE-340, CWE-1391
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: canonical

## Description

JUJU_CONTEXT_ID is a predictable authentication secret. On a Juju machine (non-Kubernetes) or Juju charm container (on Kubernetes), an unprivileged user in the same network namespace can connect to an abstract domain socket and guess the JUJU_CONTEXT_ID value. This gives the unprivileged user access to the same information and tools as the Juju charm.

(As written by CVE List.)

## Affected

- juju: from 3.5 before 3.5.4; from 3.4 before 3.4.6; from 3.3 before 3.3.7; from 3.1 before 3.1.10; from 2.9 before 2.9.51
- github.com/juju/juju (Go): before 0.0.0-20240826044107-ecd7e2d0e986
- canonical juju: before 2.9.51; from 3.1.0 before 3.1.10; from 3.2.0 before 3.2.4; from 3.3.0 before 3.3.7; from 3.4 before 3.4.6; from 3.5.0 before 3.5.4

## Every score

- canonical: CVSS:3.1 8.7 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:H`
- GitHub: CVSS:3.1 8.7 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:H`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:H/SA:H`
- NVD: CVSS:3.1 8.0 High `CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/juju/juju/security/advisories/GHSA-mh98-763h-m9v4> (exploit, advisory, issue-tracking, patch, vendor-advisory, web)
- <https://www.cve.org/CVERecord?id=CVE-2024-7558> (issue-tracking, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-7558> (advisory)
- <https://github.com/juju/juju/commit/ecd7e2d0e9867576b9da04871e22232f06fa0cc7> (fix, web)
- <https://github.com/juju/juju> (package)
- <https://pkg.go.dev/vuln/GO-2024-3173> (web)

## Sources

- CVE List: [CVE-2024-7558](https://www.cve.org/CVERecord?id=CVE-2024-7558), CVE Terms of Use, modified 2024-10-02
- GitHub Advisory Database: [GHSA-mh98-763h-m9v4](https://github.com/advisories/GHSA-mh98-763h-m9v4), CC-BY-4.0, modified 2024-10-09
- Go Vulnerability Database: [GO-2024-3173](https://pkg.go.dev/vuln/GO-2024-3173), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2024-7558](https://nvd.nist.gov/vuln/detail/CVE-2024-7558), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-7558 · Whole record: https://cve.day/CVE-2024-7558.json · Rebuilt by cve.day 2026-11-25T22:58:45.956Z
