CWEweakness

CWE-343 Predictable Value Range from Previous Values

Official page ↗
Abstraction
Base
Structure
Simple
Status
Draft
Languages
Not Language-Specific
CWE version
5.0

Description

The product's random number generator produces a series of values which, when observed, can be used to infer a relatively small range of possibilities for the next value that could be generated.

Common consequences

• Other: Varies by Context — In some cases, an attacker cannot predict the exact value that will be produced next, but can narrow down the possibilities significantly. This reduces the amount of effort to perform a brute force attack.

Potential mitigations

• [Architecture and Design, Implementation] The output of a random number generator should not be predictable based on observations of previous values. • [Implementation] Increase the entropy used to seed a PRNG. • [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"). • [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.

Related

Child of · CWE (1)

  • CWE-340 Generation of Predictable Numbers or Identifiers weakness

Referenced by CVE · weakness (5)

  • CVE-2026-33221 Nhost is an open source Firebase alternative with GraphQL. vulnerability
  • CVE-2026-32694 In Juju from version 3.0.0 through 3.6.18, when a secret owner grants permissions to a secret to a grantee, the secret owner relies… vulnerability
  • CVE-2017-6030 A predictable value range from previous values issue was discovered in Schneider Electric Modicon PLCs Modicon M221, firmware versions… vulnerability
  • CVE-2017-7901 A Predictable Value Range from Previous Values issue was discovered in Rockwell Automation Allen-Bradley MicroLogix 1100 programmable-logic… vulnerability
  • CVE-2014-5409 The 17046 Ethernet card before 94450214LFMT100SEM-L.R3-CL for the GE Digital Energy Hydran M2 does not properly generate random values for… vulnerability