Security Resilience

CVE-2024-7558

Crypto Weakness in Canonical Juju ≤ 2.9.51

Public PoCCrypto Weakness
Published
02 October 2024
Modified
26 August 2025
Patch / advisory
CVSS Score v3.1 8.7
Click a component to see what it means
Raw vectorCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:H
EPSS Score 0.0050 44th percentile
Risk Priority 60 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2024-7558 is a high-severity PRNG (CWE-337) vulnerability in Canonical Juju. Its CVSS base score is 8.7 (High).

Operationally, exploitation aligns with the MITRE ATT&CK technique Valid Accounts (T1078); ranked at the 44th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to IA-5 (Authenticator Management) and SA-11 (Developer Testing and Evaluation) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

unprivileged user access to the same information and tools as the Juju charm.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1078 Valid Accounts Stealth
Adversaries may obtain and abuse credentials of existing accounts as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion.
T1212 Exploitation for Credential Access Credential Access
Adversaries may exploit software vulnerabilities in an attempt to collect credentials.
T1606 Forge Web Credentials Credential Access
Adversaries may forge credential materials that can be used to gain access to web applications or Internet services.
T1606.001 Web Cookies Credential Access
Adversaries may forge web cookies that can be used to gain access to web applications or Internet services.
T1078.004 Cloud Accounts Stealth
Valid accounts in cloud environments may allow adversaries to perform actions to achieve Initial Access, Persistence, Privilege Escalation, or Defense Evasion.
T1110 Brute Force Credential Access
Adversaries may use brute force techniques to gain access to accounts when passwords are unknown or when password hashes are obtained.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2024-8038Same product: Canonical Juju
CVE-2024-6984Same product: Canonical Juju
CVE-2026-32694Same product: Canonical Juju
CVE-2023-0092Same product: Canonical Juju
CVE-2025-53513Same product: Canonical Juju
CVE-2025-0928Same product: Canonical Juju
CVE-2026-4370Same product: Canonical Juju
CVE-2025-53512Same product: Canonical Juju
CVE-2025-68152Same product: Canonical Juju
CVE-2026-5412Same product: Canonical Juju

Affected Assets

canonical
juju
≤ 2.9.51 · 3.1.0 — 3.1.10 · 3.2.0 — 3.2.4

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)
  • 5 hardening rules · 2 OS baselines
Validate
Prove the fix (OWASP ASVS)
  • V7.2.3
  • V11.5.1
  • V6.5.3

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

IA-5 directly requires management of authenticator strength, distribution, and replacement, stopping default or guessable credentials from being introduced or used.

Developer testing and evaluation can discover use of predictable seeds such as time or PID.

Proper cryptographic key establishment and management includes using unpredictable seeds for PRNGs that feed key generation.

Engineering principles can require cryptographically secure PRNGs seeded from high-entropy sources.

SC-13 requires selection and implementation of approved cryptographic algorithms and methods, which inherently depend on and enforce sufficiently random values.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly require cryptographically secure PRNG seeding, preventing predictable seeds while the control addresses many additional weaknesses.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

prevents

A well-implemented cryptography policy under A.8.24 names approved PRNGs and seeding practices as part of its cryptographic usage standards (guidance item f), so in first-party code a developer never seeds a PRNG with a predictable value like process ID or system time when cryptographic randomness is required; the remainder is bounded and nameable -- third-party, COTS, and legacy components that arrive with their seeding choices already made, mirroring the CWE-328 anchor.

finds

Security testing can detect and prevent use of weak or predictable PRNG seeds.

prevents

Training developers about cryptographic best practices, including proper PRNG seeding (avoiding time-based or constant seeds, using cryptographically secure entropy sources), prevents some instances of CWE-335, but PRNG seeding is a specialized topic that not all training programs cover in depth, and developers remain fallible on the technical details.

prevents

Secure coding standards explicitly forbid predictable PRNG seeds.

prevents

A.8.30 carries its effect through the secure-development practices its contract requires of the supplier (8.25 to 8.29), so it reduces ordinary software implementation weaknesses in delivered code the way those practices do; CWE-337 is a code-level seeding defect that secure coding guidance would address, but the clause depends on supplier implementation and human practice is fallible, matching the owner's `partial` ceiling on A.8.30.

blocks

A.8.5 blocks exploitation of weak user credentials through MFA (required for critical systems) and brute-force protection (item e: lockout, CAPTCHA), but does not block exploitation of hard-coded service credentials, default credentials that are publicly known, or previously-leaked credentials where the attacker already possesses the secret and brute-force resistance is irrelevant.

Hardening callouts derived

Configuration rules from DISA STIG baselines that bear on weaknesses of the type cited by this CVE. Each rule is shown with the relationship its mapping actually records, against the CWE it was authored against. Derived via CVE→CWE over our cross-walk; rows rated `none` are excluded, and each rule says how its mapping was checked.

Definition changed on 29 October 2026. Until then this section listed every rule rated above none, partial included. From that date it lists rules whose mapping is rated full or mostly and checked at llm_unverified or higher; partial mappings show when you ask.

Oracle Linux 8 (2 rules, 1 more partial)
  • V-248563 The OL 8 SSH server must be configured to use strong entropy. blocks CWE-335, CWE-337
  • V-248600 OL 8 must have the packages required to use the hardware random number generator entropy gatherer service. blocks CWE-337
  • V-248599 OL 8 must enable the hardware random number generator entropy gatherer service. blocks CWE-337
RHEL 8 (1 partial rule)
  • V-230253 RHEL 8 must ensure the SSH server uses strong entropy. blocks CWE-335

References