CWE-340: Generation of Predictable Numbers or Identifiers

ClassIncomplete

The product uses a scheme that generates numbers or identifiers that are more predictable than required.

View on MITRE
Back to CWE Lookup

Technical Details

Structure
Simple

Applicable To

Languages
Platforms

Frequently Asked Questions

What is CWE-340: Generation of Predictable Numbers or Identifiers?+

CWE-340: Generation of Predictable Numbers or Identifiers is a Common Weakness Enumeration (CWE) entry maintained by MITRE. The product uses a scheme that generates numbers or identifiers that are more predictable than required.

What are the security consequences of Generation of Predictable Numbers or Identifiers?+

If exploited, CWE-340 (Generation of Predictable Numbers or Identifiers) it can compromise Other, leading to outcomes such as Varies by Context.

What are real-world examples of Generation of Predictable Numbers or Identifiers?+

MITRE documents real CVEs mapped to CWE-340, including CVE-2022-29330, CVE-2001-1141 and CVE-1999-0074. You can look up the full details of each CVE, including CVSS scores and remediation guidance, on our CVE Lookup tool.

What is the difference between a CWE and a CVE?+

A CWE (Common Weakness Enumeration) like CWE-340 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.

Learn More