GHSA-phh4-3hmm-24rx: Duplicate Advisory: Juju makes Use of Weak Credentials
8.7
CVSS Score
3.1
Basic Information
CVE ID
-
GHSA ID
EPSS Score
-
CWE
Published
10/2/2024
Updated
10/2/2024
KEV Status
No
Technology
Go
Technical Details
CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| github.com/juju/juju | go | < 0.0.0-20241001032836-2af7bd8e310b | 0.0.0-20241001032836-2af7bd8e310b |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from two key functions:
- NewContextFactory initializes a predictable random number generator using math/rand with time.Now().Unix() seed
- createContextID uses this weak RNG to generate the JUJU_CONTEXT_ID credential These functions would appear in profiler traces when generating/validating charm context IDs. The advisory's code references and PoC both directly implicate these functions as the source of credential predictability.