CVE-2022-39218

Random number seed fixed during compilation

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.

Category

7.5
CVSS
Severity: High
CVSS 3.1 •
EPSS 0.11%
Third-Party Advisory github.com
Affected: fastly js-compute-runtime
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2022-39218?
CVE-2022-39218 has been scored as a high severity vulnerability.
How to fix CVE-2022-39218?
To fix CVE-2022-39218, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2022-39218 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2022-39218 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2022-39218?
CVE-2022-39218 affects fastly js-compute-runtime.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.