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.
Metrics
CVSS 3.0 7.5/10
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NWeakness enumeration
Affected software
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
References
- http://www.openwall.com/lists/oss-security/2016/07/19/3Mailing List, Third Party Advisory
- http://www.openwall.com/lists/oss-security/2016/07/27/14Mailing List, Third Party Advisory
- https://github.com/magento/magento2/pull/15017
- http://www.openwall.com/lists/oss-security/2016/07/19/3Mailing List, Third Party Advisory
- http://www.openwall.com/lists/oss-security/2016/07/27/14Mailing List, Third Party Advisory
- https://github.com/magento/magento2/pull/15017
Timeline
- Published
- Mar 1, 2017
- Last modified
- Jun 17, 2026
- NVD status
- Modified