1. CVE archive
  2. Vulnerability types
  3. CWE-336
CWE-336 · #642 most frequent type in the archive

Same Seed in Pseudo-Random Number Generator (PRNG)

The product uses a Pseudo-Random Number Generator (PRNG) that uses the same seed each time the product is initialized.

Part of: CWE-335 · Incorrect Usage of Seeds in Pseudo-Random Number Generator (PRNG)

2CVEs of this type in the archive
1critical (CVSS ≥ 9)
1high severity (7–8.9)
Jul 23, 2026latest published

What it is

The product uses a Pseudo-Random Number Generator (PRNG) that uses the same seed each time the product is initialized.

Impact on systems

ScopeImpact
Other, Access Control Varies by Context, Bypass Protection Mechanism
Given the deterministic nature of PRNGs, using the same seed for each initialization will lead to the same output in the same order. If an attacker can guess (or knows) the seed, then they may be able to determine the random numbers that will be produced from the PRNG.

How to prevent it

Architecture and Design Do not reuse PRNG seeds. Consider a PRNG that periodically re-seeds itself as needed from a high quality pseudo-random output, such as hardware devices.
Architecture and Design · Requirements · Libraries or Frameworks Use products or modules that conform to FIPS 140-2 to avoid obvious entropy problems, or use the more recent FIPS 140-3 if possible.

Source: MITRE CWE catalog · Official entry on the MITRE website

All CWE-336 CVEs

2 results

Dottor Marc

Is this type of vulnerability in your systems?

An archive tells you what exists; a Vulnerability Assessment tells you what is exposed on your side. Dottor Marc tests your web applications and network with automated and manual checks.