CWE-334 — Small Space of Random Values
CWE-334: Small Space of Random Values
MITRE CWE weakness
| Kind | Weakness |
| Abstraction | Base |
| Status | Draft |
| Likelihood of exploit | — |
Description
The number of possible random values is smaller than needed by the product, making it more susceptible to brute force attacks.
Common consequences
- Access Control, Other: Bypass Protection Mechanism, Other
Mitigations
Architecture and Design — 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").
References
- CWE page: https://cwe.mitre.org/data/definitions/334.html
- CWE list: https://cwe.mitre.org/data/index.html