KeygraphLabs · CVE MCP

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.

CVSS
7.5
high, from NVD
EPSS
0.85%
percentile 59.4%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

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-01Published
2019-11-20Package advisory GHSA-h7qw-mxrm-c6h2
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 0.85%
2026-12-04Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-h7qw-mxrm-c6h2magento/community-edition (Packagist)2.2.6
GHSA-h7qw-mxrm-c6h2magento/project-community-edition (Packagist)no fix yet

Also known as: GHSA-h7qw-mxrm-c6h2

Related

CVEPublishedCVSSSummary
CVE-2025-542672025-10-146.5Adobe Commerce | Incorrect Authorization (CWE-863)
CVE-2025-542662025-10-144.8Adobe Commerce | Cross-site Scripting (Stored XSS) (CWE-79)
CVE-2025-542652025-10-145.9Adobe Commerce | Incorrect Authorization (CWE-863)
CVE-2025-542642025-10-148.1Adobe Commerce | Cross-site Scripting (Stored XSS) (CWE-79)
CVE-2025-542632025-10-148.1Adobe Commerce | Incorrect Authorization (CWE-863)
CVE-2025-54236 KEV2025-09-099.1Adobe Commerce | Improper Input Validation (CWE-20)
CVE-2025-495592025-08-125.3Adobe Commerce | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (CWE-22)
CVE-2025-495582025-08-125.9Adobe 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.

NVD · CVE.org