high7.5
CVE-2016-6485
Unauthenticated crypto and weak IV in Magento\Framework\Encryption
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| composer | magento/community-edition | >= 2.0, < 2.2.6 | 2.2.6 |
| composer | magento/project-community-edition | >= 2.0, <= 2.0.2 | none recorded |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Magento | Magento2 | All versions |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- http://www.openwall.com/lists/oss-security/2016/07/19/3
- http://www.openwall.com/lists/oss-security/2016/07/27/14
- https://github.com/magento/magento2/pull/15017
- https://github.com/advisories/GHSA-h7qw-mxrm-c6h2
- https://nvd.nist.gov/vuln/detail/CVE-2016-6485
- https://github.com/FriendsOfPHP/security-advisories/blob/master/magento/product-community-edition/CVE-2016-6485.yaml