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

Predictable from Observable State

A number or object is predictable based on observations that the attacker can make about the state of the system or network, such as time, process ID, etc.

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

14CVEs of this type in the archive
1critical (CVSS ≥ 9)
8high severity (7–8.9)
Dec 1, 2026latest published

What it is

A number or object is predictable based on observations that the attacker can make about the state of the system or network, such as time, process ID, etc.

Impact on systems

ScopeImpact
Other Varies by Context
This weakness could be exploited by an attacker in a number of ways depending on the context. If a predictable number is used to generate IDs or keys that are used within protection mechanisms, then an attacker could gain unauthorized access to the system. If predictable filenames are used for storing sensitive information, then an attacker might gain access to the system and may be able to gain access to the information in the file.

How to prevent it

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 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-341 CVEs published per year

2026: year in progress, updated every hour

Show the data as a table
YearCVE
20241
20253
202610

All CWE-341 CVEs

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