{"id":"CVE-2016-6485","aliases":["EUVD-2019-0751","GHSA-h7qw-mxrm-c6h2"],"status":"published","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":{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.00846,"percentile":0.58307,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-327"],"published":"2017-03-01T20:00:00Z","modified":"2026-06-17T00:51:15Z","fixes":[{"ecosystem":"Packagist","package":"magento/community-edition","fixed_in":["2.2.6"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"magento/community-edition","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0"},{"fixed":"2.2.6"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"magento/project-community-edition","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0"},{"last_affected":"2.0.2"}]}]},{"source":"osv","ecosystem":"Packagist","package":"magento/community-edition","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0"},{"fixed":"2.2.6"}]}],"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"]},{"source":"osv","ecosystem":"Packagist","package":"magento/project-community-edition","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0"},{"last_affected":"2.0.2"}]}],"versions":["2.0.0","2.0.0-rc","2.0.0-rc2","2.0.1","2.0.2"]}],"products":[{"vendor":"magento","product":"magento2"}],"references":[{"url":"https://github.com/magento/magento2/pull/15017","tags":["x_refsource_CONFIRM","x_transferred","web"]},{"url":"http://www.openwall.com/lists/oss-security/2016/07/19/3","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","web"]},{"url":"http://www.openwall.com/lists/oss-security/2016/07/27/14","tags":["mailing-list","x_refsource_MLIST","x_transferred","Mailing List","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2016-6485","tags":["advisory"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/magento/product-community-edition/CVE-2016-6485.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-h7qw-mxrm-c6h2"}],"sources":{"cve":[{"id":"CVE-2016-6485","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.","status":"published","published":"2017-03-01T20:00:00Z","modified":"2024-08-06T01:29:20.24Z","updated_at":"2026-11-02T14:33:34.443637Z"}],"euvd":[{"id":"EUVD-2019-0751","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.","status":"published","published":"2017-03-01T20:00:00Z","modified":"2024-08-06T01:29:20Z","updated_at":"2026-11-03T02:22:36.370031Z"}],"ghsa":[{"id":"GHSA-h7qw-mxrm-c6h2","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.","status":"published","published":"2019-11-20T01:33:05Z","modified":"2025-02-10T20:07:40Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-327"],"updated_at":"2026-11-02T14:38:29.866763Z"}],"nvd":[{"id":"CVE-2016-6485","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.","status":"published","published":"2017-03-01T20:59:00.22Z","modified":"2026-06-17T00:51:15.333Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-327"],"updated_at":"2026-11-02T14:03:37.238712Z"}],"osv":[{"id":"GHSA-h7qw-mxrm-c6h2","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.","status":"published","published":"2019-11-20T01:33:05Z","modified":"2025-02-10T20:19:38.465331Z","cvss":[{"version":"3.0","score":7.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","level":"high"}],"cwes":["CWE-327"],"updated_at":"2026-11-02T15:46:48.920784Z"}]}}
