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-663916.52026-07-27CVE-2026-463518.12026-07-16CVE-2026-477035.32026-07-15CVE-2026-147022.52026-07-05CVE-2026-145707.52026-07-05CVE-2026-570825.92026-06-30CVE-2026-113749.02026-06-23CVE-2026-500094.82026-06-12CVE-2026-456736.82026-06-12CVE-2026-417014.42026-06-10CVE-2026-418384.82026-06-09CVE-2026-412075.32026-06-04CVE-2026-502089.42026-06-04CVE-2026-440546.52026-05-21CVE-2026-421552026-05-15CVE-2026-415058.72026-05-07CVE-2026-78472.62026-05-05CVE-2026-409754.82026-04-28CVE-2026-404969.12026-04-21CVE-2026-403066.52026-04-17