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

Predictable Exact Value from Previous Values

An exact value or random number can be precisely predicted by observing previous values.

Part of: CWE-340 · Generation of Predictable Numbers or Identifiers

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

What it is

An exact value or random number can be precisely predicted by observing previous values.

Impact on systems

ScopeImpact
Other Varies by Context

How to prevent it

Increase the entropy used to seed a PRNG.
Architecture and Design · Requirements · Libraries or Frameworks Use products or modules that conform to FIPS 140-2 to avoid obvious entropy problems. Consult FIPS 140-2 Annex C (Approved Random Number Generators).
Implementation Use a PRNG that periodically re-seeds itself using input from high-quality sources, such as hardware devices with high entropy. However, do not re-seed too frequently, or else the entropy source might block.

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

CWE-342 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20151
20201
20211
20261

All CWE-342 CVEs

4 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.