CVE-2016-6485 · mitre
CVE-2016-6485
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 2017-03-01, last changed 2026-06-17. Weakness: CWE-327.
How to fix
Upgrade to a fixed version: magento/community-edition 2.2.6 (Packagist). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in magento/magento2 by pull request #15017. Functions changed by the fix: _getCheckboxHtml, getTemporaryTreeIndexTableName, generateCode, getActualLength, acquireCoupon, __construct, generate, _saveFatalErrorReport, saveReport, generateAddress, generateRawDescription, apply. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).
Timeline
| 2017-03-01 | Published |
| 2019-11-20 | Package advisory GHSA-h7qw-mxrm-c6h2 |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 0.85% |
| 2026-12-04 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-h7qw-mxrm-c6h2 | magento/community-edition (Packagist) | 2.2.6 |
| GHSA-h7qw-mxrm-c6h2 | magento/project-community-edition (Packagist) | no fix yet |
Also known as: GHSA-h7qw-mxrm-c6h2
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2025-54267 | 2025-10-14 | 6.5 | Adobe Commerce | Incorrect Authorization (CWE-863) |
| CVE-2025-54266 | 2025-10-14 | 4.8 | Adobe Commerce | Cross-site Scripting (Stored XSS) (CWE-79) |
| CVE-2025-54265 | 2025-10-14 | 5.9 | Adobe Commerce | Incorrect Authorization (CWE-863) |
| CVE-2025-54264 | 2025-10-14 | 8.1 | Adobe Commerce | Cross-site Scripting (Stored XSS) (CWE-79) |
| CVE-2025-54263 | 2025-10-14 | 8.1 | Adobe Commerce | Incorrect Authorization (CWE-863) |
| CVE-2025-54236 KEV | 2025-09-09 | 9.1 | Adobe Commerce | Improper Input Validation (CWE-20) |
| CVE-2025-49559 | 2025-08-12 | 5.3 | Adobe Commerce | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (CWE-22) |
| CVE-2025-49558 | 2025-08-12 | 5.9 | Adobe Commerce | Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2016-6485, or call /api/v1/vulnerabilities/CVE-2016-6485. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.