Weakness · Medium

CWE-333: Improper Handling of Insufficient Entropy in TRNG

What it is

True random number generators (TRNG) generally have a limited source of entropy and therefore can fail or block.

Likelihood of exploit: LowMITRE CWE 4.19.1

Severity (our rating)
Medium
Likelihood of exploit
Low
Introduced during
Architecture and Design, Implementation
Exploited in the wild
No CVE in CISA's catalog

In more detail

The rate at which true random numbers can be generated is limited. It is important that one uses them only when they are needed for security.

What an attacker can do

  • DoS: Crash, Exit, or Restart (Availability)

How to prevent it

Implementation

  • Rather than failing on a lack of random numbers, it is often preferable to wait for more numbers to be created.

CWE-333 on MITRE's CWE site

H2 Security

Found it in your code?

We review where it appears, fix it with your team, and check it was not already used against you.

Talk to our team

T Academy

Stop writing it in the first place

Learn to build software and systems without weaknesses like this one, with practice on real hosts in your browser, every objective checked on the machine.

Start free

Source: MITRE Common Weakness Enumeration, CWE version 4.19.1. CWE is a trademark of The MITRE Corporation.