---
title: "CWE-343: Predictable Value Range from Previous Values"
url: https://radicalnotion.ai/cwe/cwe-343
type: cwe
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."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-343: Predictable Value Range from Previous Values

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Draft
- **CVEs with this as primary weakness:** 4
- **Of those, in CISA KEV:** 0
- **New in 2026:** 1
- **CWE catalog version:** 4.21

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

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | - |
| Implementation | - |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| 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 (Libraries or Frameworks)

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.

## Demonstrative examples

### Example 1

Suppose a product generates random numbers between 1 and 100,000, but it always produces a larger value until it reaches 100,000.

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2017-7901 | Predictable Value Range from Previous Values in Rockwell Automation Allen-Bradley MicroLogix 1100 and 1400 | high | 8.6 | - | No | 2017-06-30 |
| CVE-2026-32694 | Insecure Direct Object Reference attack via predictable secret ID in Juju | medium | 6.6 | - | No | 2026-03-18 |
| CVE-2017-6030 | Schneider Electric Modicon PLCs Predictable Value Range from Previous Values | medium | 6.5 | - | No | 2017-06-30 |
| CVE-2014-5409 | GE Hydran M2 Predictable Value Range from Previous Values | medium | 6.4 | - | No | 2015-03-14 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-340](https://radicalnotion.ai/cwe/cwe-340) | Generation of Predictable Numbers or Identifiers |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | Predictable Value Range from Previous Values | - | - |

## Frequently asked questions

### What is CWE-343?

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.

### What CVEs are caused by CWE-343?

4 recorded CVEs are attributed to CWE-343, including CVE-2017-7901, CVE-2026-32694 and CVE-2017-6030.

### How do you prevent CWE-343?

The output of a random number generator should not be predictable based on observations of previous values.

### What are the consequences of CWE-343?

Exploiting CWE-343 can lead to: Varies by Context.

### Is CWE-343 actively exploited?

4 recorded CVEs are caused by CWE-343; none are currently in CISA's KEV catalog of actively exploited flaws.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/343.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-343). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
