CWE-334: Small Space of Random Values
13 CVEs have CWE-334 as their primary weakness. 0 of them are in the CISA KEV catalog. The highest EPSS score among them is 1.522%.
The number of possible random values is smaller than needed by the product, making it more susceptible to brute force attacks.
Child of CWE-330: Use of Insufficiently Random Values
Mitigations
- Architecture and Design Requirements: 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).
Observed examples
- CVE-2002-0583: Product uses 5 alphanumeric characters for filenames of expense claim reports, stored under web root.
- CVE-2002-0903: Product uses a small number of random numbers for a code to approve an action, and also uses predictable new user IDs, allowing attackers to hijack new accounts.
- CVE-2003-1230: SYN cookies implementation only uses 32-bit keys, making it easier to brute force ISN.
- CVE-2004-0230: Complex predictability / randomness (reduced space).
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-334'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-334'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).