VDB
Sign up
HIGH7.5

GHSA-h7qw-mxrm-c6h2

Unauthenticated crypto and weak IV in Magento\Framework\Encryption

Quick fix

GHSA-h7qw-mxrm-c6h2 — magento/community-edition: upgrade to the fixed version with the command below.

composer require magento/community-edition:^2.2.6

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Packagist/magento/community-edition
Introduced in: 2.0Fixed in: 2.2.6
Fixcomposer require magento/community-edition:^2.2.6
Packagist/magento/project-community-edition
Introduced in: 2.0

No fixed version published yet for magento/project-community-edition (composer). Pin to a known-safe version or switch to an alternative.

References