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-539399.12026-09-09CVE-2026-795757.52026-09-08CVE-2026-861875.92026-09-05CVE-2026-172745.42026-09-04CVE-2026-34165.92026-09-03CVE-2026-660478.12026-08-31CVE-2026-818522026-08-31CVE-2026-825553.72026-08-30CVE-2026-194852026-08-26CVE-2026-628622026-08-25CVE-2026-567066.82026-08-25CVE-2026-274907.52026-08-21CVE-2026-199063.72026-08-15CVE-2026-198963.72026-08-15CVE-2026-197483.72026-08-13CVE-2026-185315.32026-08-05CVE-2026-712256.52026-08-05CVE-2026-663916.52026-07-27CVE-2026-463518.12026-07-16CVE-2026-477035.32026-07-15