GHSA-3fmq-x9q6-wm39: random_compat Uses insecure CSPRNG
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.
Published May 17, 2024
Affected packages
paragonie/random_compat
- Ecosystem
- Composer (PHP)
- Affected
- < 2.0
- Fixed in
- 2.0
- Check
composer show paragonie/random_compat
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
random_compat 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 openssl_random_pseudo_bytes(), which may result in insufficient entropy and compromise the security of generated random numbers.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
