UnratedPackagistPublished
random_compat Uses insecure CSPRNG
GHSA-3fmq-x9q6-wm39
- Affected
- Packagist paragonie/random_compat < 2.0
- Fixed in
- 2.0· Vendor fix available
- Issue
- randomcompat versions prior to 2.0 are affected by a security vulnerability related to the insecure usage of Cryptographically Secure Pseudo-Random Number Generators (CSPRNG). The affected versions use opensslrandompseudobytes(), which may result in insufficient entropy and compromise the security of generated random numbers.
Recommended action: Upgrade to 2.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.