cve.bz

CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG), published in 2025

Filter

The product uses a Pseudo-Random Number Generator (PRNG) in a security context, but the PRNG's algorithm is not cryptographically strong.

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

Ask an AI about CWE-338

Show the promptExplain CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/338.html and https://cve.bz/cve/cwe/338?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. 7.7CVE-2025-69217coturnEPSS 0.7%

    coturn is a free open source implementation of TURN and STUN Server. Versions 4.6.2r5 through 4.7.0-r4 have a bad random number generator for nonces and port randomization after refactoring. Additionally, random numbers aren't generated wi…

  2. 2.9CVE-2025-68932freshrssEPSS 1.0%

    FreshRSS is a free, self-hostable RSS aggregator. Prior to version 1.28.0, FreshRSS uses cryptographically weak random number generators (mt_rand() and uniqid()) to generate remember-me authentication tokens and challenge-response nonces. …

  3. 7.2CVE-2025-26379johnson controls iq panels2, 2+, iqhub, iqpanel 4, powergEPSS 0.3%

    Use of a weak pseudo-random number generator, which may allow an attacker to read or inject encrypted PowerG packets.

  4. 9.8CVE-2025-67504wbce cmsEPSS 0.9%

    WBCE CMS is a content management system. Versions 1.6.4 and below use function GenerateRandomPassword() to create passwords using PHP's rand(). rand() is not cryptographically secure, which allows password sequences to be predicted or brut…

  5. 9.3CVE-2025-66565gofiber utilsEPSS 0.7%

    Fiber Utils is a collection of common functions created for Fiber. In versions 2.0.0-rc.3 and below, when the system's cryptographic random number generator (crypto/rand) fails, both functions silently fall back to returning predictable UU…

  6. 9.8CVE-2025-59390apache druidEPSS 1.0%

    Apache Druid’s Kerberos authenticator uses a weak fallback secret when the `druid.auth.authenticator.kerberos.cookieSignatureSecret` configuration is not explicitly set. In this case, the secret is generated using `ThreadLocalRandom`, whi…

  7. 7.4CVE-2025-41731jumoEPSS 0.2%

    A vulnerability was identified in the password generation algorithm when accessing the debug-interface. An unauthenticated local attacker with knowledge of the password generation timeframe might be able to brute force the password in a ti…

  8. 9.1CVE-2024-58040qwer crypt\EPSS 0.4%

    Crypt::RandomEncryption for Perl version 0.01 uses insecure rand() function during encryption.

  9. 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…

  10. 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…

  11. 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…

  12. 9.3CVE-2025-54883davidosipov vision-uiEPSS 0.7%

    Vision UI is a collection of enterprise-grade, dependency-free modules for modern web projects. In versions 1.4.0 and below, the getSecureRandomInt function in security-kit versions prior to 3.5.0 (packaged in Vision-ui <= 1.4.0) contains …

  13. 7.0CVE-2025-7394wolfsslEPSS 0.7%

    In the OpenSSL compatibility layer implementation, the function RAND_poll() was not behaving as expected and leading to the potential for predictable values returned from RAND_bytes() after fork() is called. This can lead to weak or predic…

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

  15. 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…

  16. 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…

  17. 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…

  18. 9.1CVE-2025-40916gryphon mojolicious plugin captchapngEPSS 0.8%

    Mojolicious::Plugin::CaptchaPNG version 1.05 for Perl uses a weak random number source for generating the captcha. That version uses the built-in rand() function for generating the captcha text as well as image noise, which is insecure.

  19. 7.0CVE-2025-40915gryphon mojolicious plugin csrfEPSS 0.5%

    Mojolicious::Plugin::CSRF 1.03 for Perl uses a weak random number source for generating CSRF tokens. That version of the module generates tokens as an MD5 of the process id, the current time, and a single call to the built-in rand() funct…

  20. 5.3CVE-2024-58135mojoliciousEPSS 1.0%

    Mojolicious versions from 7.28 through 9.45 for Perl will generate weak HMAC session cookie secrets via "mojo generate app" by default. When creating a default app skeleton with the "mojo generate app" tool, a weak secret is written to th…

  21. 3.1CVE-2025-46653node-formidable formidableEPSS 0.6%

    Formidable (aka node-formidable) 2.1.0 through 3.x before 3.5.3 relies on hexoid to prevent guessing of filenames for untrusted executable content; however, hexoid is documented as not "cryptographically secure." (Also, there is a scenario…

  22. 9.8CVE-2025-3495delta electronics commgrEPSS 1.1%

    Delta Electronics COMMGR v1 and v2 uses insufficiently randomized values to generate session IDs (CWE-338). An attacker could easily brute force a session ID and load and execute arbitrary code.

  23. 4.0CVE-2025-2814lds crypt cbcEPSS 0.3%

    Crypt::CBC versions between 1.21 and 3.05 for Perl may use the rand() function as the default source of entropy, which is not cryptographically secure, for cryptographic functions. This issue affects operating systems where "/dev/urandom'…

  24. 9.1CVE-2025-32755jenkins ssh-slaveEPSS 0.7%

    In jenkins/ssh-slave Docker images based on Debian, SSH host keys are generated on image creation for images based on Debian, causing all containers based on images of the same version use the same SSH host keys, allowing attackers able to…

  25. 9.1CVE-2025-32754jenkins ssh-agentEPSS 0.7%

    In jenkins/ssh-agent Docker images 6.11.1 and earlier, SSH host keys are generated on image creation for images based on Debian, causing all containers based on images of the same version use the same SSH host keys, allowing attackers able…

  26. 6.5CVE-2024-56370elliott net xeroEPSS 0.6%

    Net::Xero 0.044 and earlier for Perl uses the rand() function as the default source of entropy, which is not cryptographically secure, for cryptographic functions. Specifically Net::Xero uses the Data::Random library which specifically st…

  27. 5.5CVE-2024-52322localshop webservice\EPSS 0.6%

    WebService::Xero 0.11 and earlier for Perl uses the rand() function as the default source of entropy, which is not cryptographically secure, for cryptographic functions. Specifically WebService::Xero uses the Data::Random library which sp…

  28. 5.5CVE-2024-58036norbu09 net\EPSS 0.5%

    Net::Dropbox::API 1.9 and earlier for Perl uses the rand() function as the default source of entropy, which is not cryptographically secure, for cryptographic functions. Specifically Net::Dropbox::API uses the Data::Random library which s…

  29. 5.5CVE-2024-57868lev web\EPSS 0.5%

    Web::API 2.8 and earlier for Perl uses the rand() function as the default source of entropy, which is not cryptographically secure, for cryptographic functions. Specifically Web::API uses the Data::Random library which specifically states…

  30. 5.5CVE-2024-57835nipotan line integration for amon2EPSS 0.5%

    Amon2::Auth::Site::LINE uses the String::Random module to generate nonce values.  String::Random defaults to Perl's built-in predictable random number generator, the rand() function, which is not cryptographically secure

  31. 5.3CVE-2025-1805hachi crypt saltEPSS 0.9%

    Crypt::Salt for Perl version 0.01 uses insecure rand() function when generating salts for cryptographic purposes.

  32. 7.7CVE-2025-1860zefram data entropyEPSS 0.3%

    Data::Entropy for Perl 0.007 and earlier use the rand() function as the default source of entropy, which is not cryptographically secure, for cryptographic functions.

  33. 4.0CVE-2025-27552wreis dbix class encodedcolumnEPSS 0.2%

    DBIx::Class::EncodedColumn use the rand() function, which is not cryptographically secure to salt password hashes. This vulnerability is associated with program files Crypt/Eksblowfish/Bcrypt.pm. This issue affects DBIx::Class::EncodedCo…

  34. 4.0CVE-2025-27551wreis dbix class encodedcolumnEPSS 0.2%

    DBIx::Class::EncodedColumn use the rand() function, which is not cryptographically secure to salt password hashes. This vulnerability is associated with program files lib/DBIx/Class/EncodedColumn/Digest.pm. This issue affects DBIx::Class…

  35. 7.5CVE-2021-26091fortinet fortimailEPSS 0.3%

    A use of a cryptographically weak pseudo-random number generator vulnerability in the authenticator of the Identity Based Encryption service of FortiMail 6.4.0 through 6.4.4, and 6.2.0 through 6.2.7 may allow an unauthenticated attacker to…

  36. 8.8CVE-2025-1796langgenius difyEPSS 0.8%

    A vulnerability in langgenius/dify v0.10.1 allows an attacker to take over any account, including administrator accounts, by exploiting a weak pseudo-random number generator (PRNG) used for generating password reset codes. The application …

  37. 8.8CVE-2025-1828timlegge crypt\EPSS 0.9%

    Crypt::Random Perl package 1.05 through 1.55 may use rand() function, which is not cryptographically strong, for cryptographic functions. If the Provider is not specified and /dev/urandom or an Entropy Gathering Daemon (egd) service is no…

  38. 9.8CVE-2024-40762sonicwall sonicosEPSS 1.1%

    Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG) in the SonicOS SSLVPN authentication token generator that, in certain cases, can be predicted by an attacker potentially resulting in authentication bypass.

  39. 6.3CVE-2025-21617guzzle oauth-subscriberEPSS 0.8%

    Guzzle OAuth Subscriber signs Guzzle requests using OAuth 1.0. Prior to 0.8.1, Nonce generation does not use sufficient entropy nor a cryptographically secure pseudorandom source. This can leave servers vulnerable to replay attacks when TL…

  40. 5.3CVE-2025-22376EPSS 1.1%

    In Net::OAuth::Client in the Net::OAuth package before 0.29 for Perl, the default nonce is a 32-bit integer generated from the built-in rand() function, which is not cryptographically strong.

  41. 5.4CVE-2024-56830EPSS 0.6%

    The Net::EasyTCP package 0.15 through 0.26 for Perl uses Perl's builtin rand() if no strong randomization module is present.

  42. 5.4CVE-2002-20002EPSS 0.3%

    The Net::EasyTCP package before 0.15 for Perl always uses Perl's builtin rand(), which is not a strong random number generator, for cryptographic keys.