{"id":"CVE-2016-6485","published":"2017-03-01T20:00:00Z","modified":"2024-08-06T01:29:20Z","title":"The __construct function in Framework/Encryption/Crypt.php in Magento 2 uses the PHP rand function to generate a…","vendor":null,"product":null,"tier":"tail","description":{"text":"The __construct function in Framework/Encryption/Crypt.php in Magento 2 uses the PHP rand function to generate a random number for the initialization vector, which makes it easier for remote attackers to defeat cryptographic protection mechanisms by guessing the value.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00846,"percentile":0.58947,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/magento/magento2/pull/15017","tags":["x_refsource_CONFIRM"]},{"url":"http://www.openwall.com/lists/oss-security/2016/07/19/3","tags":["mailing-list","x_refsource_MLIST"]},{"url":"http://www.openwall.com/lists/oss-security/2016/07/27/14","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":11.8,"factors":[{"name":"EPSS percentile","points":11.79}]},"affected":[{"ecosystem":"Packagist","package":"magento/community-edition","vulnerableRanges":[">=2.0, <2.2.6"],"patched":["2.2.6"],"from":["GHSA-h7qw-mxrm-c6h2"],"provenance":"source"},{"ecosystem":"Packagist","package":"magento/project-community-edition","vulnerableRanges":[">=2.0, <=2.0.2"],"patched":[],"from":["GHSA-h7qw-mxrm-c6h2"],"provenance":"source"}],"summary":{"text":"The __construct function in Framework/Encryption/Crypt.php within the Magento 2 platform generates the initialization vector using PHP's rand function, a weak source of randomness. Because the IV is predictable, a remote attacker can guess its value and thereby defeat the cryptographic protection applied to the data.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:04:21Z"},"euvd":{"id":"EUVD-2019-0751","exploited":false,"provenance":"source"}}