cve.bz

CWE-338: Use of Cryptographically Weak Pseudo-Random Number Generator (PRNG)

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. 6.3CVE-2026-134636webminEPSS 0.5%

    Webmin through 2.670 contains a weak randomness vulnerability that allows attackers to predict TOTP two-factor secrets generated by generate_base32_secret() using a time and PID seeded rand(). Attackers who know a user's password and estim…

  2. 6.3CVE-2026-134446webminEPSS 0.4%

    Webmin through 2.670 contains a weak random password generation vulnerability in generate_random_password() that allows attackers to predict generated account passwords because seed_random() effectively seeds Perl rand() with only time XOR…

  3. 9.1CVE-2026-101340nlnet labs net dnsEPSS 0.4%

    Net::DNS uses a 16-bit query ID to match responses to the corresponding requests. In versions up to and including 1.57, the ID is obtained from Perl's built-in rand() function. An attacker that can observe the sequence of query IDs is ab…

  4. 7.4CVE-2026-115463poweradminEPSS 0.6%

    Poweradmin is a web-based DNS administration tool for PowerDNS server. From 4.0.0 until 4.2.6, 4.3.5, and 4.4.1, lib/Domain/Service/MfaService.php verifies email second-factor codes through MfaService::verifyCode() without limiting failed …

  5. 9.1CVE-2026-111509dellEPSS 0.4%

    Dell PowerStore SDNAS contains a cryptographically weak PRNG vulnerability that could allow a network attacker to decrypt or tamper with NAS SSH/SFTP sessions.

  6. 4.4CVE-2026-127139pretix pretixscan proxyEPSS 0.1%

    pretixSCAN Proxy does not use a secure random generator to generate initialization tokens and API keys for the connection between pretixSCAN devices and the pretixSCAN Proxy. This could allow a skilled attacker with access to at least some…

  7. 6.9CVE-2026-18564the document foundation libreofficeEPSS 0.3%

    LibreOffice can export documents to PDF protected by a password. With the PDF 2.0 option the file is encrypted with 256-bit AES, using a file encryption key and salts that are meant to be random. The key and the salts were drawn from a pse…

  8. 6.9CVE-2025-71461diced ziplineEPSS 0.3%

    Zipline before 4.0.2 contains a predictable filename vulnerability that allows attackers to infer other users' upload filenames by recovering the Math.random generator state. Attackers with five consecutive gfycat-style filenames can recon…

  9. 9.1CVE-2026-111260apache software foundation apache tomeeEPSS 0.6%

    The Jakarta Security OpenID Connect authentication mechanism generates the state and nonce values with a non-cryptographic random number generator and insufficient entropy. A remote attacker who predicts these values can forge an authentic…

  10. 9.1CVE-2026-111259apache software foundation apache tomeeEPSS 0.6%

    The embedded server generates HTTP session identifiers with a non-cryptographic random number generator by default. A remote attacker who observes a session identifier can predict the identifiers issued to other users and hijack their sess…

  11. 2.3CVE-2026-125362haiwen seahubEPSS 0.3%

    Seahub through 14.0.10 contains a weak randomness vulnerability in MultiShareLinksBatch.post() that generates batch share link passwords using Python's non-cryptographic random.choices(). Authenticated users permitted to create share links…

  12. 5.1CVE-2026-17393ibm api connectEPSS 0.1%

    IBM API Connect 10.0.8.0 through 10.0.8.12 could allow a local attacker to obtain sensitive information due to the use of a cryptographically weak pseudo-random number generator.

  13. 8.1CVE-2026-17386ibm api connectEPSS 0.5%

    IBM API Connect 10.0.8.0 through 10.0.8.12 could allow a remote attacker to gain full administrative control due to the use of a cryptographically weak pseudo-random number generator.

  14. 6.3CVE-2026-121553cotontiEPSS 0.4%

    Cotonti through 1.0.0 generates registration and email-change validation tokens with md5(microtime()), allowing attackers to bypass email-ownership verification by predicting tokens. Attackers can derive the generation time from the HTTP D…

  15. 7.5CVE-2026-118986EPSS 0.4%

    CallBackery versions before 0.62.0 for Perl allow session cookie forgery via a signing secret generated with rand(). The secret that signs session cookies is built from two calls to the built-in rand(), which is seeded with 32 bits. The s…

  16. 6.1CVE-2026-102813tp-link systems inc. re305 v3EPSS 0.3%

    An authentication flaw exists in the password-recovery functionality of TP-Link RE305 V3. The verification-code interface allows an unauthenticated attacker on the same local network to trigger generation of an administrator password-reset…

  17. 3.7CVE-2026-19742zephyrproject zephyrEPSS 0.3%

    The IPv6 stack derived the long-lived secret key used to compute RFC 7217 stable interface identifiers (gen_stable_iid() in subsys/net/ip/ipv6.c) and RFC 8981 temporary interface identifiers (gen_temporary_iid() in subsys/net/ip/ipv6_pe.c)…

  18. 6.3CVE-2026-112240typo3 extension "typo3 fluid-form by coding.ms"EPSS 0.4%

    The download link for files uploaded through a form relied on a token that could be predicted. The file name in the request was also not verified in a way that resisted guessing. An unauthenticated attacker could use this to access files u…

  19. 2.9CVE-2026-112041diem-project diemEPSS 0.5%

    A vulnerability was identified in diem-project diem up to 116974edfb9a5b8bd69cb13586dc62bcdbb485ad. This vulnerability affects the function dmString::random of the file dmCorePlugin/lib/basic/dmString.php. Such manipulation leads to crypto…

  20. 7.8CVE-2026-107612glavsoft tightvncEPSS 0.1%

    Incorrect permission assignment in GlavSoft TightVNC Server for Windows before 2.8.88 allows a local authenticated user to read or overwrite the inter-process communication handles used between the TightVNC service and its desktop server p…

  21. 3.7CVE-2026-107283asynchttpclient async-http-clientEPSS 0.4%

    The AsyncHttpClient (AHC) library allows Java applications to easily execute HTTP requests and asynchronously process HTTP responses. Prior to 3.0.12 and 2.16.1, Realm.Builder generates the HTTP Digest client nonce with ThreadLocalRandom …

  22. 8.2CVE-2026-104356hascheksolutions pictshareEPSS 0.5%

    PictShare before version 3.7.1 contains a weak randomness vulnerability where the getRandomString() function uses the non-cryptographic rand() PRNG to generate the delete_code authorization token in src/inc/core.php. Attackers can predict …

  23. 9.1CVE-2026-53953getsimplecms-ceEPSS 0.5%

    GetSimple CMS is a content management system (CMS), and GetSimple CMS CE is the community edition of that CMS. In version 3.3.22, the password reset endpoint can be accessed without authentication. When a reset request is submitted for an …

  24. 4.8CVE-2026-9864fortra core privileged access manager (boks)EPSS 0.2%

    Fortra BoKS Server Agent contains a predictable password generation vulnerability in the adjoin utility. Machine-account passwords generated during Active Directory join or password renewal operations may have significantly less entropy th…

  25. 9.9CVE-2026-79901fortra boks manager boks-serverEPSS 0.5%

    In deployments using BoKS keytab management, affected versions of boks_keytabmd generate Active Directory service-account passwords from a predictable pseudo-random sequence seeded with the current Unix timestamp. An attacker who knows the…

  26. 6.3CVE-2026-102719eclipse foundation eclipse threadx netx duoEPSS 0.3%

    In Eclipse ThreadX NetX Duo versions 6.0 through 6.5.2.202603a, the NetX Secure DTLS server fills HelloVerifyRequest cookies from NX_RAND(), by default the C library rand(), with no key and no binding to the client. An attacker who can pre…

  27. 9.1CVE-2026-94456gitroomhq postiz-appEPSS 0.5%

    Postiz generates security-sensitive credentials using `Math.random()` instead of a cryptographically secure source. The same helper is used for OAuth access tokens, authorization codes, client secrets, organization API keys, and PKCE verif…

  28. 9.2CVE-2026-94107nivocartEPSS 0.6%

    NivoCart through 2.4.0 contains a predictable password reset token vulnerability in the forgotten.php endpoint that generates recovery codes using substr(md5(mt_rand()), 0, 10). Attackers who know an administrator's email address can reque…

  29. 9.2CVE-2026-93868cotontiEPSS 0.7%

    Cotonti through 1.0.0 derives password recovery validation tokens from md5(microtime()) in users.passrecover.php, creating a predictable token space of approximately one million values per second. Unauthenticated attackers can read the ser…

  30. 9.2CVE-2026-92749chaitin safelineEPSS 0.7%

    SafeLine through 9.4.1 derives the management console session-signing secret from a time-seeded math/rand generator, allowing attackers to reconstruct the key offline. Unauthenticated remote attackers who can bound the install timestamp ca…

  31. 6.3CVE-2026-92298espocrmEPSS 0.4%

    EspoCRM through 10.0.8 uses PHP's rand() function to generate tokens for lead-capture opt-in, event invitation, and campaign URLs instead of a cryptographically secure generator. Remote unauthenticated attackers can guess these roughly 31-…

  32. 6.3CVE-2026-74887jahlives openssl encryptEPSS 0.3%

    openssl_encrypt before 1.4.0 imports Python's non-cryptographic 'random' module (Mersenne Twister PRNG) at line 15 of openssl_encrypt/modules/pqc.py. No direct calls to random.* were present in the code, so no cryptographic operation is cu…

  33. 8.7CVE-2026-74874jahlives openssl encryptEPSS 0.4%

    openssl_encrypt versions before 1.4.0 use Python's non-cryptographic random module for steganographic pixel selection in the generate_pseudorandom_sequence function. Attackers who know the password can recover the Mersenne Twister state fr…

  34. 9.1CVE-2026-73567juneandgreen sm-cryptoEPSS 0.4%

    sm-crypto provides JavaScript implementations of the Chinese cryptographic algorithms SM2, SM3, and SM4. Prior to 0.5.0, the default no-argument sm2.generateKeyPairHex() path in Node.js uses the module-wide SecureRandom instance in src/sm2…

  35. 7.5CVE-2026-18611EPSS 0.6%

    A flaw was found in the Data Science Pipelines Operator. This vulnerability allows an unauthenticated attacker to derive sensitive credentials, such as MariaDB root/user passwords and MinIO access/secret keys, if they can access the MinIO …

  36. 9.0CVE-2026-71851brix crypto-jsEPSS 0.5%

    crypto-js is a JavaScript library of crypto standards. Versions of crypto-js prior to 4.0.0 generate randomness in CryptoJS.lib.WordArray.random() using a custom variation of the Multiply-With-Carry pseudorandom number generator, seeded fr…

  37. 9.8CVE-2026-9205langflowEPSS 0.4%

    IBM Langflow OSS contains a weak cryptographic key derivation vulnerability in the ensure_fernet_key() function.

  38. 8.3CVE-2026-47882broadcom spring toolsEPSS 0.2%

    When enabling Spring Boot DevTools support for a remote application target (for example a Docker container or Cloud Foundry app) from the Spring Tools Boot Dashboard, Spring Tools generates a shared secret that authenticates DevTools remot…

  39. 9.1CVE-2026-64798regularlabs.com ip login extension for joomlaEPSS 0.4%

    Joomla Extension - regularlabs.com - Insecure login URL keys in IP login extension - Persistent URL login keys were also generated using a non-cryptographic random generator with insufficient entropy.

  40. 6.8CVE-2026-16615EPSS 0.5%

    A flaw was found in librest. The PKCE implementation for OAuth authorization uses the GRand function from the GLib API, a cryptographically insecure pseudo-random number generator. Because the generated "code verifier" lacks sufficient cry…

  41. 8.7CVE-2026-8169extreme networks switch engine (exos)EPSS 0.4%

    ExtremeXOS (EXOS) uses a challenge-response mechanism to authorize access to the privileged debug-mode function. The challenge value is generated using an insufficiently random source, which under certain conditions may allow an attacker t…

  42. 8.2CVE-2026-13577EPSS 0.6%

    Dancer2 versions before 2.2.0 for Perl generate insecure session ids when required CSPRNG modules are unavailable. Dancer2::Core::Role::SessionFactory::generate_id silently falls back to a built-in rand-derived session id unless both Math…

  43. 9.8CVE-2026-16235drsteve crypt passwordEPSS 0.6%

    Crypt::Password versions through 0.28 for Perl generate insecure random values for salts. These versions use the built-in rand function, which is predictable and unsuitable for cryptography.

  44. 9.2CVE-2026-9323urwidEPSS 0.7%

    The urwid web display backend (urwid/display/web.py) generates web session identifiers (urwid_id) in Screen.start() by concatenating two random.randrange(10**9) calls that use Python's Mersenne Twister PRNG, which is not cryptographically …

  45. 5.3CVE-2026-13082burak gd securityimageEPSS 0.3%

    GD::SecurityImage versions through 1.75 for Perl use rand to generate secrets. The random method creates the challenge text used for the CAPTCHA by sampling characters from an array using Perl's built-in rand function, and generates a (by…

  46. 9.0CVE-2026-63089wg-easyEPSS 0.4%

    WireGuard Easy through 15.3.0, fixed in commit 66b292b, contains a cryptographically weak one-time link token generation vulnerability that allows unauthenticated network attackers to recover WireGuard peer credentials by brute-forcing a k…

  47. 9.3CVE-2026-61500rejetto hfsEPSS 2.3%

    Rejetto HFS 3.0.0 through 3.2.0 derives its session-cookie signing key from the non-cryptographic Math.random() generator and discloses outputs of the same generator to unauthenticated clients during login. A remote attacker can collect a …

  48. 8.8CVE-2026-14495wpdo5ea dologin securityEPSS 0.8%

    The DoLogin Security plugin for WordPress is vulnerable to Authentication Bypass via Insufficient Randomness in all versions up to, and including, 4.3. The vulnerability exists because `dologin\s::rrand()` seeds the Mersenne Twister with `…

  49. 5.9CVE-2026-56016markstos cgi session id md5EPSS 0.5%

    CGI::Session::ID::md5 versions before 4.49 for Perl generate predictable session ids from low-entropy sources. The generate_id method builds the session id from a MD5 digest of the process id, the epoch time, and the built-in rand() funct…

  50. 7.4CVE-2026-7830uvnc ultravncEPSS 0.3%

    UltraVNC through 1.8.2.2 uses inadequate cryptography in the MS-Logon II authentication scheme (rfbUltraVNC_MsLogonIIAuth). In rfb/dh.cpp the Diffie-Hellman key exchange is performed with parameters that fit in an unsigned 64-bit integer (…