Cyber Posture

CWE · MITRE source

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

Abstraction: Base · CVEs in our corpus: 172

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

When a non-cryptographic PRNG is used in a cryptographic context, it can expose the cryptography to certain types of attacks. Often a pseudo-random number generator (PRNG) is not designed for cryptography. Sometimes a mediocre source of randomness is sufficient or preferable for algorithms that use random numbers. Weak generators generally take less processing power and/or do not use the precious, finite, entropy sources on a system. While such PRNGs might have very useful features, these same features could be used to break the cryptography.

Last updated: 09 May 2026 03:25 UTC

NIST 800-53 r5 controls that address this weakness (2)AI

Control Title Family Why it addresses this CWE
AT-5Contacts with Security Groups and AssociationsATSecurity associations share details on cryptographically weak PRNGs, helping avoid their implementation in security-critical functions.
SC-12Cryptographic Key Establishment and ManagementSCCryptographic key management standards require cryptographically strong PRNGs for key material, blocking use of weak generators.

Top CVEs of this weakness type, ranked by Risk Priority

CVE Risk CVSS EPSS Published
CVE-2024-298686.59.10.78442024-06-24
CVE-2009-23673.99.80.32332009-07-08
CVE-2024-314972.55.90.21972024-04-15
CVE-2019-163032.19.80.01902019-09-14
CVE-2017-180212.09.80.00582018-01-05
CVE-2015-94352.09.80.00522019-09-26
CVE-2020-286422.09.80.00702020-11-16
CVE-2019-144802.09.80.00292020-12-16
CVE-2021-35382.09.80.00932021-06-02
CVE-2011-45742.09.80.00432021-10-27
CVE-2021-437992.08.60.05272022-01-25
CVE-2022-447962.09.80.00502022-11-07
CVE-2023-28842.09.80.00132023-05-25
CVE-2023-369932.09.80.00132023-07-07
CVE-2024-407622.09.80.00042025-01-09
CVE-2025-34952.09.80.00492025-04-16
CVE-2025-73942.09.80.00082025-07-18
CVE-2025-593902.09.80.00052025-11-26
CVE-2025-665652.09.80.00072025-12-09
CVE-2025-689322.09.80.00042025-12-27
CVE-2025-155782.09.80.00062026-02-16
CVE-2026-24392.09.80.00072026-02-16
CVE-2025-409262.09.80.00072026-03-05
CVE-2025-156042.09.80.00022026-03-28
CVE-2026-32562.09.80.00022026-03-28