CVE-2016-6485
HIGH 7.5CVSS 3.0Unauthenticated crypto and weak IV in Magento\Framework\Encryption
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.
- Published
- 1 Mar 2017
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-327
- Also known as
- GHSA-h7qw-mxrm-c6h2
- Sources
- NVDJSONOSV GHSA-h7qw-mxrm-c6h2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | magento | magento2cpe:2.3:a:magento:magento2:-:*:*:*:*:*:*:* |
(no version) | |
| OSV | Packagist | magento/community-edition | >= 2.0, < 2.2.6 | 2.2.6 |
| OSV | Packagist | magento/project-community-edition | >= 2.0, <= 2.0.2 |
References
- http://www.openwall.com/lists/oss-security/2016/07/19/3 · Mailing List, Third Party Advisory, WEB
- http://www.openwall.com/lists/oss-security/2016/07/27/14 · Mailing List, Third Party Advisory, WEB
- https://github.com/magento/magento2/pull/15017 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2016-6485 · ADVISORY
- https://github.com/FriendsOfPHP/security-advisories/blob/master/magento/product-community-edition/CVE-2016-6485.yaml · WEB
History
- 25 Nov 2026 20:19 UTC · NVD: first stored (published 1 Mar 2017)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 20 Nov 2019)