ADVISORIES

GitHub Advisory Database

GHSA-h7qw-mxrm-c6h2

Unauthenticated crypto and weak IV in Magento\Framework\Encryption

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.

Affected packages

EcosystemPackageAffected versions
Packagistmagento/community-edition
From 2.0 before 2.2.6 (fixed in 2.2.6)
Packagistmagento/project-community-edition
From 2.0 up to and including 2.0.2

References