CVE-2022-39218
published high CVSS 3.1 · 7.5Random number seed fixed during compilation
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| fastly | — | js-compute-runtime< 0.5.3 | Affected | Not stated | GitHub_M |
Description
The JS Compute Runtime for Fastly's Compute@Edge platform provides the environment JavaScript is executed in when using the Compute@Edge JavaScript SDK. In versions prior to 0.5.3, the `Math.random` and `crypto.getRandomValues` methods fail to use sufficiently random values. The initial value to seed the PRNG (pseudorandom number generator) is baked-in to the final WebAssembly module, making the sequence of random values for that specific WebAssembly module predictable. An attacker can use the fixed seed to predict random numbers generated by these functions and bypass cryptographic security controls, for example to disclose sensitive data encrypted by functions that use these generators. The problem has been patched in version 0.5.3. No known workarounds exist.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.5 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| fastly | js-compute-runtime | < 0.5.3 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-335 CWE-335: Incorrect Usage of Seeds in Pseudo-Random Number Generator (PRNG)
References
1Provider assertions
3GitHub_M · cna
Random number seed fixed during compilation
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 03f93da0d0c1df991f66135ca63170cbf9b329c638ed80d82a351b0991988771
- Ingested
- 23 Sep 2026, 08:02:02 UTC
- Source record
- Official CVE record