CVE-2024-7558
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.
Description as published by the source, in English.
Key facts
- Published
- 2024-10-02
- Last modified
- 2026-06-17
- Assigned by
- security@ubuntu.com
- CVSS vector
CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H- Scored by
- nvd@nist.gov (NVD Primary)
- Probability of exploitation
-
0.5 %
higher than 40 %
of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15 - Fix available
- Yes, see references
Affected products
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Canonical | Juju | < 2.9.51 | Affected |
| Canonical | Juju | ≥ 3.1.0, < 3.1.10 | Affected |
| Canonical | Juju | ≥ 3.2.0, < 3.2.4 | Affected |
| Canonical | Juju | ≥ 3.3.0, < 3.3.7 | Affected |
| Canonical | Juju | ≥ 3.4, < 3.4.6 | Affected |
| Canonical | Juju | ≥ 3.5.0, < 3.5.4 | Affected |
| github.com/juju | juju (Go) | < 0.0.0-20240826044107-ecd7e2d0e986 | Affected |
Weakness type
-
CWE-330: Use of Insufficiently Random Values
The product uses insufficiently random numbers or values in a security context that depends on unpredictable numbers.
-
CWE-335: Incorrect Usage of Seeds in Pseudo-Random Number Generator (PRNG)
The product uses a Pseudo-Random Number Generator (PRNG) but does not correctly manage seeds.
-
CWE-1391: Use of Weak Credentials
The product uses weak credentials (such as a default key or hard-coded password) that can be calculated, derived, reused, or guessed by an attacker.
-
CWE-337: Predictable Seed in Pseudo-Random Number Generator (PRNG)
A Pseudo-Random Number Generator (PRNG) is initialized from a predictable seed, such as the process ID or system time.
-
CWE-340: Generation of Predictable Numbers or Identifiers
The product uses a scheme that generates numbers or identifiers that are more predictable than required.
Attack techniques
Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.
- T1110: Brute Force
- T1552.004: Private Keys
References
- https://github.com/juju/juju/security/advisories/GHSA-mh98-763h-m9v4
- https://www.cve.org/CVERecord?id=CVE-2024-7558
Does this affect you?
A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.