{"id":"GHSA-3fmq-x9q6-wm39","aliases":[],"status":"published","title":"random_compat Uses insecure CSPRNG","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.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-331"],"published":"2024-05-17T23:27:19Z","modified":"2024-12-02T05:42:56Z","fixes":[{"ecosystem":"Packagist","package":"paragonie/random_compat","fixed_in":["2.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"paragonie/random_compat","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0"}]}]},{"source":"osv","ecosystem":"Packagist","package":"paragonie/random_compat","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0"}]}],"versions":["0.9.0","0.9.1","0.9.2","0.9.3","0.9.4","0.9.5","1.0.10","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","1.1.0","1.1.1","1.1.2","1.1.3","1.1.4","1.1.5","1.1.6","v0.9.7","v1.0.0","v1.0.1","v1.2.0","v1.2.1","v1.2.2","v1.2.3","v1.3.0","v1.3.1","v1.4.0","v1.4.1","v1.4.2","v1.4.3"]}],"references":[{"url":"https://github.com/paragonie/random_compat/issues/96","tags":["web"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/paragonie/random_compat/2016-03-16.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-3fmq-x9q6-wm39"},{"url":"https://github.com/paragonie/random_compat","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-3fmq-x9q6-wm39","title":"random_compat Uses insecure CSPRNG","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.","status":"published","published":"2024-05-17T23:27:19Z","modified":"2024-05-17T23:27:21Z","cwes":["CWE-331"],"updated_at":"2026-11-02T14:37:49.987036Z"}],"osv":[{"id":"GHSA-3fmq-x9q6-wm39","title":"random_compat Uses insecure CSPRNG","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.","status":"published","published":"2024-05-17T23:27:19Z","modified":"2024-12-02T05:42:56.201685Z","cwes":["CWE-331"],"updated_at":"2026-11-02T15:46:35.747385Z"}]}}
