CVE-2016-6485 Unauthenticated crypto and weak IV in Magento\Framework\Encryption
Magento 2 uses a weak random number generator for encryption initialization vectors, allowing attackers to bypass cryptographic protections.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2016-6485?
CVE-2016-6485 is a high-severity vulnerability in n/a, published on 1 Mar 2017. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-327
Which versions are affected by CVE-2016-6485?
4 open source packages ship an affected version, including magento/community-edition and magento/project-community-edition. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
magento/community-edition Packagist | From 2.0 | 2.2.6 |
magento/community-edition Packagist | From 2.0 | 2.2.6 |
magento/project-community-edition Packagist | From 2.0 to 2.0.2 | None |
magento/project-community-edition Packagist | From 2.0 to 2.0.2 | None |
Products include Magento Magento2.
How do I fix CVE-2016-6485?
Upgrade magento/community-edition to 2.2.6 or later.
Is CVE-2016-6485 being exploited?
There is no known exploitation of CVE-2016-6485 in the wild and no public exploit code.
Sources
Also known as GHSA-h7qw-mxrm-c6h2.