# GHSA-3fmq-x9q6-wm39: random_compat Uses insecure CSPRNG

- Severity: Low (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2024-05-17T23:27:19.000Z
- Modified: 2024-12-02T05:42:56.201Z
- Weaknesses: CWE-331

## Description

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.

(As written by GitHub Advisory Database.)

## Affected

- paragonie/random_compat (Packagist): before 2.0

## References

- <https://github.com/paragonie/random_compat/issues/96> (web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/paragonie/random_compat/2016-03-16.yaml> (web)
- <https://github.com/paragonie/random_compat> (package)

## Sources

- GitHub Advisory Database: [GHSA-3fmq-x9q6-wm39](https://github.com/advisories/GHSA-3fmq-x9q6-wm39), CC-BY-4.0, modified 2024-12-02

---

Page: https://cve.day/GHSA-3fmq-x9q6-wm39 · Whole record: https://cve.day/GHSA-3fmq-x9q6-wm39.json · Rebuilt by cve.day 2026-11-25T22:56:30.892Z
