CVE-2019-8134: Magento SQL injection via marketing account with access to email templates variables
8.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.33839%
CWE
Published
5/24/2022
Updated
5/15/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
magento/community-edition | composer | >= 2.2, < 2.2.10 | 2.2.10 |
magento/community-edition | composer | >= 2.3, < 2.3.2-p1 | 2.3.2-p1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper handling of user input in email template configuration. Marketing users with access to email template variables could manipulate the 'config_path' parameter, which was directly interpolated into SQL queries without parameterization. The loadByConfigPath method in Magento\Email\Model\Template is a known vector for this vulnerability, as it uses the attacker-controlled value to build a WHERE clause in a raw SQL query. This matches the CWE-89 pattern and the described attack scenario.