CVE-2016-6485Magento2
High 7.5 No auth needed
Follow: this CVE · Magento · Magento2 We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.0
- 7.5
- EPSS
- 0.8% probability of exploitation in 30 days · percentile 56
- Auth required
- No
- Published
- Mar 1, 2017
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-327
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Magento2.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | magento/community-edition |
≥ 2.0 < 2.2.6 |
2.2.6 |
composer require "magento/community-edition:^2.2.6" |
| Packagist | magento/project-community-edition |
≥ 2.0 ≤ 2.0.2 |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-h7qw-mxrm-c6h2). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| magento | magento2 | all |
Official sources
References
Links published by the sources. Open them with care.
- www.openwall.com Mailing List Third Party Advisory
- www.openwall.com Mailing List Third Party Advisory
- github.com