ClassStable

CWE-330Use of Insufficiently Random Values

Category: other

Description

The product uses insufficiently random numbers or values in a security context that depends on unpredictable numbers.

Common consequences· 3

  • Confidentiality / Other — Other
    When 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, Other
    If 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 to prevent the legitimate program from properly sending the resource to the intended user. For example, a product might maintain session information in a file whose name is based on a username. An attacker could pre-create this file for a victim user, then set the permissions so that the application cannot generate the session for the victim, preventing the victim from using the application.
  • Access Control — Bypass Protection Mechanism, Gain Privileges or Assume Identity
    When 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 functionality by guessing the ID or key.

Potential mitigations· 3

  • [Architecture and Design]
  • [Implementation]Consider a PRNG that re-seeds itself as needed from high quality pseudo-random output sources, such as hardware devices.
  • [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").

Related CAPEC attack patterns· 3

CAPEC-112CAPEC-485CAPEC-59

References

  1. https://cwe.mitre.org/data/definitions/330.html

Exploits (incoming)3

TypeTargetConfidenceTier
AttackPatternSignature Spoofing by Key Recreationcapec-485100%live
AttackPatternBrute Forcecapec-112100%live
AttackPatternSession Credential Falsification through Predictioncapec-59100%live

Compliance frameworks addressing this (incoming)1

TypeTargetConfidenceTier
ComplianceControlnis2-art21h100%live

(incoming)10

TypeTargetConfidenceTier
VulnerabilityCVE-2025-4607cve-2025-46070%live
VulnerabilityCVE-2025-64097cve-2025-640970%live
VulnerabilityCVE-2026-20101cve-2026-201010%live
VulnerabilityCVE-2026-25072cve-2026-250720%live
VulnerabilityCVE-2026-27515cve-2026-275150%live
VulnerabilityCVE-2026-27637cve-2026-276370%live
VulnerabilityCVE-2026-27755cve-2026-277550%live
VulnerabilityCVE-2026-40496cve-2026-404960%live
VulnerabilityCVE-2026-41505cve-2026-415050%live
KEVEntryMicrosoft Netlogon Privilege Escalation Vulnerabilitykev-cve-2020-14720%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)
CWE
Small Space of Random Values
CWE
Incorrect Usage of Seeds in Pseudo-Random Number Generator (PRNG)
CWE
Use of a Broken or Risky Cryptographic Algorithm
CWE
Inadequate Encryption Strength
CWE
Improperly Implemented Security Check for Standard
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.