{"id":"GHSA-8xhv-gqm4-3w99","aliases":["GHSA-8xhv-gqm4-3w99"],"related":[],"kind":"vulnerability","state":"published","title":"ZendFramework1 Potential Insufficient Entropy Vulnerability","summary":"We discovered several methods used to generate random numbers in ZF1 that potentially used insufficient entropy. These random number generators are used in the following method calls:\n```\nZend_Ldap_Attribute::createPassword\nZend_Form_Element_Hash::_generateHash\nZend_Gdata_HttpClient::filterHttpRequest\nZend_Filter_Encrypt_Mcrypt::_srand\nZend_OpenId::randomBytes\n```\nIn each case, the methods were using rand() or mt_rand(), neither of which can generate cryptographically secure values. This could potentially lead to information disclosure should an attacker be able to brute force the random number generation.\n\nMoreover, we discovered a potential security issue in the usage of the [openssl_random_pseudo_bytes()](http://php.net/manual/en/function.openssl-random-pseudo-bytes.php) function in Zend_Crypt_Math::randBytes, reported in PHP BUG [#70014](https://bugs.php.net/bug.php?id=70014), and the security implications reported in a discussion [on the random_compat library.](https://github.com/paragonie/random_compat/issues/96)","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"We discovered several methods used to generate random numbers in ZF1 that potentially used insufficient entropy. These random number generators are used in the following method calls:\n```\nZend_Ldap_Attribute::createPassword\nZend_Form_Element_Hash::_generateHash\nZend_Gdata_HttpClient::filterHttpRequest\nZend_Filter_Encrypt_Mcrypt::_srand\nZend_OpenId::randomBytes\n```\nIn each case, the methods were using rand() or mt_rand(), neither of which can generate cryptographically secure values. This could potentially lead to information disclosure should an attacker be able to brute force the random number generation.\n\nMoreover, we discovered a potential security issue in the usage of the [openssl_random_pseudo_bytes()](http://php.net/manual/en/function.openssl-random-pseudo-bytes.php) function in Zend_Crypt_Math::randBytes, reported in PHP BUG [#70014](https://bugs.php.net/bug.php?id=70014), and the security implications reported in a discussion [on the random_compat library.](https://github.com/paragonie/random_compat/issues/96)","format":"markdown","source":"ghsa"}],"published":"2024-06-07T22:26:25.000Z","modified":"2024-12-04T05:41:20.457Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-331"],"affected":[{"ranges":[{"type":"ecosystem","introduced":"1.12.0","status":"affected","fixed":"1.12.18"}],"ecosystem":"Packagist","package":"zendframework/zendframework1","purl":"pkg:composer/zendframework/zendframework1","source":"ghsa"}],"references":[{"url":"https://framework.zend.com/security/advisory/ZF2016-01","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/zendframework/zendframework1/ZF2016-01.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/zendframework/zf1","tags":["package"],"sources":["ghsa"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8xhv-gqm4-3w99","url":"https://github.com/advisories/GHSA-8xhv-gqm4-3w99","licence":"CC-BY-4.0","modified":"2024-12-04T05:41:20.457Z"}],"updatedAt":"2026-11-25T22:56:31.668Z"}