CWE-340: Generation of Predictable Numbers or Identifiers
58 CVEs have CWE-340 as their primary weakness. 1 of them are in the CISA KEV catalog. The highest EPSS score among them is 2.523%.
The product uses a scheme that generates numbers or identifiers that are more predictable than required.
Child of CWE-330: Use of Insufficiently Random Values
Observed examples
- CVE-2022-29330: Product for administering PBX systems uses predictable identifiers and timestamps for filenames (CWE-340) which allows attackers to access files via direct request (CWE-425).
- CVE-2001-1141: PRNG allows attackers to use the output of small PRNG requests to determine the internal state information, which could be used by attackers to predict future pseudo-random numbers.
- CVE-1999-0074: Listening TCP ports are sequentially allocated, allowing spoofing attacks.
Top released CVEs
KEV first, then the highest EPSS score, the highest CVSS score and the newest.
| CVE | Published | Severity | CVSS | EPSS | Description |
|---|---|---|---|---|---|
| CVE-2026-118527 | 2026-11-03 | MEDIUM | 4.3 | 0.822% | Use of predictable filenames in Ivanti Connect Secure before versions 25.1.1.3 and 22.8R2.6 allows a remote authenticated attacker to upload files with… |
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cwe_lookup/CWE-340'curl 'https://api.contrastcyber.com/cve_search?cwe_id=CWE-340'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).