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-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-17CVE-2026-337107.52026-04-10CVE-2026-345115.32026-04-03CVE-2025-156033.72026-03-09CVE-2026-29663.72026-02-23CVE-2025-106713.72025-09-18CVE-2025-69313.72025-06-30CVE-2024-58686.52024-06-15CVE-2024-51496.52024-06-05CVE-2024-41858.12024-04-30CVE-2023-67995.92024-04-09