Skip to content

Unauthenticated crypto and weak IV in Magento\Framework\Encryption

High severity GitHub Reviewed Published Nov 20, 2019 to the GitHub Advisory Database • Updated Jan 9, 2023

Package

composer magento/community-edition (Composer)

Affected versions

>= 2.0, < 2.2.6

Patched versions

2.2.6

Description

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

Reviewed Nov 19, 2019
Published to the GitHub Advisory Database Nov 20, 2019
Last updated Jan 9, 2023

Severity

High
7.5
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Weaknesses

CVE ID

CVE-2016-6485

GHSA ID

GHSA-h7qw-mxrm-c6h2

Source code

No known source code
Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.