CVE-2016-6485
Unauthenticated 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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
7.5
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.
- Record
CVE-2016-6485- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:P/I:N/A:N - Weakness
- CWE-327
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2016-6485- Updated
- 2026-11-02
EUVDEUVD-2019-0751 No score
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.
- Record
EUVD-2019-0751- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-h7qw-mxrm-c6h2
7.5
Unauthenticated 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.
- Record
GHSA-h7qw-mxrm-c6h2- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-327
- Updated
- 2026-11-02
OSVGHSA-h7qw-mxrm-c6h2
7.5
Unauthenticated 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.
- Record
GHSA-h7qw-mxrm-c6h2- CVSS 3.0
- 7.5 High
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-327
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
magento/community-editionPackagist |
2.0 up to 2.2.6 | 2.2.6 |
magento/project-community-editionPackagist |
2.0 to 2.0.2 | None known |
magento/community-editionPackagist |
2.0 up to 2.2.6, plus listed versions 2.0.02.0.0-rc2.0.0-rc22.0.12.0.10 Show 44 moreShow less2.0.112.0.122.0.132.0.142.0.152.0.162.0.172.0.182.0.22.0.32.0.42.0.52.0.62.0.72.0.82.0.92.1.02.1.0-rc12.1.0-rc22.1.0-rc32.1.12.1.102.1.112.1.122.1.132.1.142.1.152.1.162.1.172.1.182.1.22.1.32.1.42.1.52.1.62.1.72.1.82.1.92.2.02.2.12.2.22.2.32.2.42.2.5 |
2.2.6 |
magento/project-community-editionPackagist |
2.0 to 2.0.2, plus listed versions 2.0.02.0.0-rc2.0.0-rc22.0.1 |
None known |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2016-6485 is a high vulnerability (CVSS 7.5) in Magento Magento2, published March 1, 2017. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.85%, the 58th percentile. Fixed in magento/community-edition 2.2.6.
References
github.com/magento/magento2/pull/15017
openwall.com/lists/oss-security/2016/07/19/3
openwall.com/lists/oss-security/2016/07/27/14
nvd.nist.gov/vuln/detail/CVE-2016-6485
github.com/FriendsOfPHP/security-advisories/blob/master/magento/product-community-edition/CVE-2016-6485.yaml
github.com/advisories/GHSA-h7qw-mxrm-c6h2