CWE•Class•Stable•20 recent CVEs
CWE-330Use of Insufficiently Random Values
Description
The product uses insufficiently random numbers or values in a security context that depends on unpredictable numbers.
Common consequences
- Confidentiality,Other→OtherWhen a protection mechanism relies on random values to restrict access to a sensitive resource, such as a session ID or a seed for generating a cryptographic key, then the resource being protected could be accessed by guessing the ID or key
- Access Control,Other→Bypass Protection Mechanism,OtherIf product relies on unique, unguessable IDs to identify a resource, an attacker might be able to guess an ID for a resource that is owned by another user. The attacker could then read the resource, or pre-create a resource with the same ID
- Access Control→Bypass Protection Mechanism,Gain Privileges or Assume IdentityWhen an authorization or authentication mechanism relies on random values to restrict access to restricted functionality, such as a session ID or a seed for generating a cryptographic key, then an attacker may access the restricted function
Potential mitigations
- Architecture and Design[object Object]
- ImplementationConsider a PRNG that re-seeds itself as needed from high quality pseudo-random output sources, such as hardware devices.
- Architecture and Design,RequirementsUse 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").
Related CWEs
Recent CVEs classified under this CWE
CVE-2026-799816.52026-10-23CVE-2026-1060744.82026-10-23CVE-2026-463476.82026-10-23CVE-2026-463466.52026-10-23CVE-2026-558892026-10-23CVE-2026-1145763.72026-10-22CVE-2026-67197.52026-10-19CVE-2026-122725.32026-10-16CVE-2026-631497.42026-10-13CVE-2026-197354.82026-10-11CVE-2026-1056742026-10-08CVE-2026-761057.72026-10-06CVE-2026-1057862026-10-06CVE-2026-1027192026-09-29CVE-2026-965995.92026-09-23CVE-2026-929306.22026-09-23CVE-2026-944569.12026-09-22CVE-2026-801549.62026-09-22CVE-2026-929137.42026-09-17CVE-2026-929126.52026-09-17