- What is CWE-332?
- The lack of entropy available for, or used by, a Pseudo-Random Number Generator (PRNG) can be a stability and security threat.
- What CVEs are caused by CWE-332?
- 5 recorded CVEs are attributed to CWE-332, including CVE-2023-20107, CVE-2019-1715, CVE-2016-9154.
- How do you prevent CWE-332?
- Use products or modules that conform to FIPS 140-2 [REF-267] to avoid obvious entropy problems. Consult FIPS 140-2 Annex C ("Approved Random Number Generators").
- How is CWE-332 detected?
- Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
- What are the consequences of CWE-332?
- Exploiting CWE-332 can lead to: DoS: Crash, Exit, or Restart, Bypass Protection Mechanism, Other.
- Is CWE-332 actively exploited?
- 5 recorded CVEs are caused by CWE-332; none are currently in CISA's KEV catalog of actively exploited flaws.