Live threats

All CVEs / Magento

CVE-2016-6485Magento2

High 7.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Magento2.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
magentomagento2all

Official sources

References

Links published by the sources. Open them with care.