Security Resilience

CWE · MITRE source

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

Abstraction: Base · CVEs in our corpus: 242

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: 29 November 2026 15:34 UTC

Cumulative inbound coverage

How completely the frameworks we cross-walk collectively cover this — the verdict is the strongest single mapping (overlapping partials are not summed); breadth shows the corroboration behind it.

Collective: full · 24 mapping(s) from 8 framework(s): ATT&CK 9 (mostly) · ISO_IEC_27002_2022 7 (mostly) · ASVS 5.0 2 (full) · 800-53 2 (full) · STIG oracle linux 8 1 (mostly) · STIG ubuntu 22 04 1 (mostly) · 1 (mostly) · STIG rhel 8 1 (partial)

See the full cumulative-coverage rollup →

OWASP Top 10 for Web (2025)

This weakness contributes to A04:2025 Cryptographic Failures.

Control responseHuman-reviewed

Answering this weakness across the control lifecycle, from our framework cross-walks.

Prevent
Stop it (NIST 800-53 / CSF Protect)
  • AT-5 Contacts with Security Groups and Associations
  • SC-12 Cryptographic Key Establishment and Management
  • PR.PS-06
  • SC-13 Cryptographic Protection
Detect
Catch it (CSF Detect / Respond)

—

Harden
Shrink the surface (DISA STIG)
  • 3 hardening rules · 3 OS baselines
Validate
Prove the fix (OWASP ASVS)
  • V7.2.3
  • V11.5.1
Our mappings

NIST 800-53 r5 controls PROPOSED for this weakness (2)

These are model PROPOSALS, not graded mappings. They come from controls_to_cwe_proposals, which carries no grade field at all; across the CWE pages 1,540 of 1,722 such associations (89%) have never been graded by anything. The heading said “address” until 2026-09-29, which asserted a relationship the data does not carry. Graded cross-walks are on the framework map, not here.

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.
Our mappings

MITRE ATT&CK techniques this weakness enables

Our own two-way CWE↔ATT&CK cross-walk — a direct mapping with no public source (the CWE→CAPEC→ATT&CK chain leaves most top weaknesses, incl. XSS and SQLi, mapped to nothing).

Direction: ← other covers this; → this covers other (F/M/P = full / mostly / partial). gov = governs / implements (a mandate, not coverage).

Top CVEs of this weakness type, ranked by Risk Priority

CVE Risk CVSS EPSS Published
CVE-2009-2367 8.69.80.23192009-07-08
CVE-2008-0166 8.47.50.70722008-05-13
CVE-2019-16303 7.89.80.03672019-09-14
CVE-2017-18021 7.79.80.02362018-01-05
CVE-2015-9435 7.79.80.02062019-09-26
CVE-2020-28642 7.79.80.02552020-11-16
CVE-2021-3538 7.79.80.02312021-06-02
CVE-2026-61500 7.79.80.02272026-07-13
CVE-2024-29868 7.69.10.06742024-06-24
CVE-2019-14480 7.59.80.01132020-12-16
CVE-2011-4574 7.59.80.01092021-10-27
CVE-2022-44796 7.59.80.00972022-11-07
CVE-2023-2884 7.59.80.00942023-05-25
CVE-2023-36993 7.59.80.01052023-07-07
CVE-2024-40762 7.59.80.01062025-01-09
CVE-2025-3495 7.59.80.01132025-04-16
CVE-2025-59390 7.59.80.01002025-11-26
CVE-2025-68932 7.59.80.00972025-12-27
CVE-2026-2439 7.59.80.00882026-02-16
CVE-2025-409267.59.80.00922026-03-05
CVE-2025-7394 7.49.80.00692025-07-18
CVE-2025-66565 7.49.80.00732025-12-09
CVE-2025-15578 7.49.80.00622026-02-16
CVE-2025-156047.49.80.00812026-03-28
CVE-2026-3256 7.49.80.00822026-03-28