7.5high

CVE-2016-6485

Unauthenticated crypto and weak IV in Magento\Framework\Encryption

Also known as GHSA-h7qw-mxrm-c6h2

Published 9 y ago · modified 4 mo ago · JSON

CVSS
7.5
v3.0 · NVD
CISA KEV
No
not known exploited
EPSS
0.8%
percentile 58%
Public exploits
0
none known

Summary

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.

Exploit prediction (EPSS)

0.85% probability of exploitation in the next 30 days, higher than 58% of all scored CVEs.

CVSS scores

Assigned byVersionScoreVector
NVD3.07.5CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD2.05.0AV:N/AC:L/Au:N/C:P/I:N/A:N
GitHub3.07.5CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Affected packages

EcosystemPackageAffectedFixed in
packagistmagento/community-edition
>=2.0, <2.2.6
2.2.6
packagistmagento/project-community-edition
>=2.0, <=2.0.2
no fix listed

Classification

Weakness
  • CWE-327 Use of a Broken or Risky Cryptographic Algorithm

References

  • github.com /magento/magento2/pull/15017 · x_refsource_CONFIRM, x_transferred
  • openwall.com /lists/oss-security/2016/07/19/3 · mailing-list, x_refsource_MLIST, x_transferred
  • openwall.com /lists/oss-security/2016/07/27/14 · mailing-list, x_refsource_MLIST, x_transferred
  • nvd.nist.gov /vuln/detail/CVE-2016-6485 · advisory
  • github.com /FriendsOfPHP/security-advisories/blob/master/magento/product-community-edition/CVE-2016-6 · web

Sources

vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.