CVE-2020-24400: Magento SQL Injection vulnerability
7.1
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.41109%
CWE
Published
5/24/2022
Updated
1/11/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:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
magento/community-edition | composer | < 2.3.6 | 2.3.6 |
magento/community-edition | composer | = 2.4.0 | 2.4.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability involves SQL injection via authenticated access to the product listing page. Magento's product grid uses collections with addFieldToFilter
to build WHERE clauses. If user input from grid filters (like sort parameters or search criteria) is passed directly to this method without proper sanitization, it could enable SQL injection. This aligns with Magento's architecture patterns and known historical vulnerabilities (e.g., CVE-2019-8141) where improper input handling in collection filters led to SQLi. The first patched versions (2.3.6/2.4.1) likely introduced input validation/escaping in this method's implementation.