Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. magento/community-edition
  4. ›
  5. CVE-2016-6485

CVE-2016-6485: Unauthenticated crypto and weak IV in Magento\Framework\Encryption

November 20, 2019 (updated February 10, 2025)

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.

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/magento/product-community-edition/CVE-2016-6485.yaml
  • github.com/advisories/GHSA-h7qw-mxrm-c6h2
  • github.com/magento/magento2/pull/15017
  • nvd.nist.gov/vuln/detail/CVE-2016-6485

Code Behaviors & Features

Detect and mitigate CVE-2016-6485 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.0 before 2.2.6

Fixed versions

  • 2.2.6

Solution

Upgrade to version 2.2.6 or above.

Impact 7.5 HIGH

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

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

Source file

packagist/magento/community-edition/CVE-2016-6485.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:37 +0000.