CWE-342: Predictable Exact Value from Previous Values
An exact value or random number can be precisely predicted by observing previous values.
Last updated
Overview
CWE-342 (Predictable Exact Value from Previous Values) is a base-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Real-world CVEs
7 recorded CVEs are caused by CWE-342 (Predictable Exact Value from Previous Values). The highest-severity and most recent are shown first. 1 new CWE-342 CVE has been recorded so far in 2026.
- CVE-2020-16226
Mitsubishi Electric Multiple Products
Critical · CVSS 9.8 · EPSS 83th2020-10-05 - CVE-2014-9196
Eaton’s Cooper Power Series Form 6 Control and Idea/IdeaPlus Relays with Ethernet
Critical · CVSS 9.3 · EPSS 85th2015-07-20 - CVE-2023-3373Critical · CVSS 9.1 · EPSS 64th2023-08-03
- CVE-2022-27577Critical · CVSS 9.1 · EPSS 73th2022-04-11
- CVE-2026-88778
TCP Initial Sequence Number (ISN) prediction
High · CVSS 8.8 · EPSS 53th2026-09-27 - CVE-2022-29930High · CVSS 8.7 · EPSS 60th2022-05-12
- CVE-2020-28388Medium · CVSS 6.5 · EPSS 72th2021-02-09
Common consequences
What can happen when CWE-342 is exploited.
Varies by Context
Affects: Other
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.
How to prevent it
Practical mitigations for CWE-342, grouped by where in the lifecycle they apply.
Increase the entropy used to seed a PRNG.
Use products or modules that conform to FIPS 140-2 [1] to avoid obvious entropy problems. Consult FIPS 140-2 Annex C ("Approved Random Number Generators").
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.
Illustrative examples
Real CVEs that MITRE cites as examples of this weakness.
- CVE-2002-1463 — Firewall generates easily predictable initial sequence numbers (ISN), which allows remote attackers to spoof connections.
- CVE-1999-0074 — Listening TCP ports are sequentially allocated, allowing spoofing attacks.
- CVE-1999-0077 — Predictable TCP sequence numbers allow spoofing.
- CVE-2000-0335 — DNS resolver uses predictable IDs, allowing a local user to spoof DNS query results.
Terminology & mappings
Mapped taxonomies
- PLOVER: Predictable Exact Value from Previous Values
Frequently asked questions
Common questions about CWE-342.
- What is CWE-342?
- An exact value or random number can be precisely predicted by observing previous values.
- What CVEs are caused by CWE-342?
- 7 recorded CVEs are attributed to CWE-342, including CVE-2020-16226, CVE-2014-9196 and CVE-2023-3373.
- How do you prevent CWE-342?
- Increase the entropy used to seed a PRNG.
- What are the consequences of CWE-342?
- Exploiting CWE-342 can lead to: Varies by Context.
- Is CWE-342 actively exploited?
- 7 recorded CVEs are caused by CWE-342; none are currently in CISA's KEV catalog of actively exploited flaws.
Sources
- [1]FIPS PUB 140-2: SECURITY REQUIREMENTS FOR CRYPTOGRAPHIC MODULES (2001)
- [2]24 Deadly Sins of Software Security (2010)
References
- MITRE CWE definition (CWE-342) (opens in a new tab)
- CWE-342 vulnerabilities on NVD (opens in a new tab)
- Learn: What is a CWE?
Weakness data is sourced from the MITRE CWE catalog (v4.20). CVE associations are aggregated and kept current by RadicalNotion.AI.
Track CWE-342 CVEs
Get an alert when a new CWE-342 CVE affects your products, with AI-written analysis and remediation steps.