cve.bz

CWE-340: Generation of Predictable Numbers or Identifiers, published in 2025

Filter

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

What the weakness is: CWE-340 at MITRE. OWASP Top 10: A04:2025 Cryptographic Failures. All weaknesses

Ask an AI about CWE-340

Show the promptExplain CWE-340: Generation of Predictable Numbers or Identifiers and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/340.html and https://cve.bz/cve/cwe/340?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.

By year: all 2026 2025 2024 2023 2022 2021

  1. 8.9CVE-2025-69286infiniflow ragflowEPSS 0.9%

    RAGFlow is an open-source RAG (Retrieval-Augmented Generation) engine. In versions prior to 0.22.0, the use of an insecure key generation algorithm in the API key and beta (assistant/agent share auth) token generation process allows these …

  2. 8.7CVE-2025-62294soplanningEPSS 0.6%

    SOPlanning is vulnerable to Predictable Generation of Password Recovery Token. Due to weak mechanism of generating recovery tokens, a malicious attacker is able to brute-force all possible values and takeover any account in reasonable amou…

  3. 6.3CVE-2025-58424f5EPSS 0.4%

    On BIG-IP systems, undisclosed traffic can cause data corruption and unauthorized data modification in protocols which do not have message integrity protection.  Note: Software versions which have reached End of Technical Support (EoTS) ar…

  4. 2.3CVE-2025-3449b&r industrial automation gmbh automation runtimeEPSS 0.3%

    A Generation of Predictable Numbers or Identifiers vulnerability in the SDM component of B&R Automation Runtime versions before 6.4 may allow an unauthenticated network-based attacker to take over already established sessions.

  5. 5.8CVE-2025-59452yosmart yolink apiEPSS 0.6%

    The YoSmart YoLink API through 2025-10-02 uses an endpoint URL that is derived from a device's MAC address along with an MD5 hash of non-secret information, such as a key that begins with cf50.

  6. 9.1CVE-2025-40925bluefeet starchEPSS 0.7%

    Starch versions 0.14 and earlier generate session ids insecurely. The default session id generator returns a SHA-1 hash seeded with a counter, the epoch time, the built-in rand function, the PID, and internal Perl reference addresses. The…

  7. 7.5CVE-2025-40933kgoldov apache authanyEPSS 0.6%

    Apache::AuthAny::Cookie v0.201 or earlier for Perl generates session ids insecurely. Session ids are generated using an MD5 hash of the epoch time and a call to the built-in rand function. The epoch time may be guessed, if it is not leake…

  8. 5.3CVE-2025-10148haxx curlEPSS 0.8%

    curl's WebSocket code did not update the 32-bit mask pattern for each new outgoing frame as the specification says. Instead it used a fixed mask that persisted and was used throughout the entire connection. A predictable mask pattern allo…

  9. 8.6CVE-2025-40920ether catalyst authentication credential httpEPSS 0.9%

    Catalyst::Authentication::Credential::HTTP versions 1.018 and earlier for Perl generate nonces using the Perl Data::UUID library. * Data::UUID does not use a strong cryptographic source for generating UUIDs. * Data::UUID returns v3 U…

  10. 6.5CVE-2025-40924haarg catalyst plugin sessionEPSS 0.6%

    Catalyst::Plugin::Session before version 0.44 for Perl generates session ids insecurely. The session id is generated from a (usually SHA-1) hash of a simple counter, the epoch time, the built-in rand function, the PID and the current Cata…

  11. 6.5CVE-2025-40919salva authen digestmd5EPSS 0.5%

    Authen::DigestMD5 versions 0.01 through 0.02 for Perl generate the cnonce insecurely. The cnonce (client nonce) is generated from an MD5 hash of the PID, the epoch time and the built-in rand function. The PID will come from a small set of…

  12. 6.5CVE-2025-40918ehuels authen sasl perl digest md5EPSS 0.7%

    Authen::SASL::Perl::DIGEST_MD5 versions 2.04 through 2.1800 for Perl generates the cnonce insecurely. The cnonce (client nonce) is generated from an MD5 hash of the PID, the epoch time and the built-in rand function. The PID will come fro…

  13. 7.3CVE-2025-40923miyagawa plack middleware sessionEPSS 0.7%

    Plack-Middleware-Session before version 0.35 for Perl generates session ids insecurely. The default session id generator returns a SHA-1 hash seeded with the built-in rand function, the epoch time, and the PID. The PID will come from a sm…

  14. 6.3CVE-2024-10603google gvisorEPSS 0.4%

    Weaknesses in the generation of TCP/UDP source ports and some other header values in Google's gVisor allowed them to be predicted by an external attacker in some circumstances.

  15. 7.1CVE-2025-0218pgadmin pgagentEPSS 0.3%

    When batch jobs are executed by pgAgent, a script is created in a temporary directory and then executed. In versions of pgAgent prior to 4.2.3, an insufficiently seeded random number generator is used when generating the directory name, le…