{"id":"GHSA-h7qw-mxrm-c6h2","aliases":["CVE-2016-6485"],"title":"Unauthenticated crypto and weak IV in Magento\\Framework\\Encryption","description":"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.","severity":"high","score":7.5,"published":"2019-11-20T01:33:05.000Z","modified":"2025-02-10T20:19:38.465Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"magento/community-edition","ranges":[{"events":[{"introduced":"2.0"},{"fixed":"2.2.6"}],"type":"ECOSYSTEM"}],"versions":["2.0.0","2.0.0-rc","2.0.0-rc2","2.0.1","2.0.10","2.0.11","2.0.12","2.0.13","2.0.14","2.0.15","2.0.16","2.0.17","2.0.18","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9","2.1.0","2.1.0-rc1","2.1.0-rc2","2.1.0-rc3","2.1.1","2.1.10","2.1.11","2.1.12","2.1.13","2.1.14","2.1.15","2.1.16","2.1.17","2.1.18","2.1.2","2.1.3","2.1.4","2.1.5","2.1.6","2.1.7","2.1.8","2.1.9","2.2.0","2.2.1","2.2.2","2.2.3","2.2.4","2.2.5"],"fixed":["2.2.6"]},{"ecosystem":"Packagist","name":"magento/project-community-edition","ranges":[{"events":[{"introduced":"2.0"},{"last_affected":"2.0.2"}],"type":"ECOSYSTEM"}],"versions":["2.0.0","2.0.0-rc","2.0.0-rc2","2.0.1","2.0.2"],"fixed":[]}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2016-6485","https://github.com/magento/magento2/pull/15017","https://github.com/FriendsOfPHP/security-advisories/blob/master/magento/product-community-edition/CVE-2016-6485.yaml","http://www.openwall.com/lists/oss-security/2016/07/19/3","http://www.openwall.com/lists/oss-security/2016/07/27/14"],"sources":[{"name":"OSV","id":"GHSA-h7qw-mxrm-c6h2","modified":"2025-02-10T20:19:38.465331Z","url":"https://osv.dev/vulnerability/GHSA-h7qw-mxrm-c6h2"}],"assessments":[{"source":"OSV","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5}]}