{"id":"GHSA-3fmq-x9q6-wm39","aliases":["GHSA-3fmq-x9q6-wm39"],"related":[],"kind":"vulnerability","state":"published","title":"random_compat Uses insecure CSPRNG","summary":"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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"}],"published":"2024-05-17T23:27:19.000Z","modified":"2024-12-02T05:42:56.201Z","severity":{"scorer":"GitHub","scheme":"rating","rating":"LOW"},"severities":[{"scorer":"GitHub","scheme":"rating","rating":"LOW"}],"cwes":["CWE-331"],"affected":[{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.0"}],"ecosystem":"Packagist","package":"paragonie/random_compat","purl":"pkg:composer/paragonie/random_compat","source":"ghsa"}],"references":[{"url":"https://github.com/paragonie/random_compat/issues/96","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/paragonie/random_compat/2016-03-16.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/paragonie/random_compat","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3fmq-x9q6-wm39","url":"https://github.com/advisories/GHSA-3fmq-x9q6-wm39","licence":"CC-BY-4.0","modified":"2024-12-02T05:42:56.201Z"}],"updatedAt":"2026-11-25T22:56:30.892Z"}