CVE-2020-26248 Blind SQL injection during the CommentGrade process
Attackers can exploit blind SQL injection in the PrestaShop productcomments module to retrieve data or crash the MySQL service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-26248?
CVE-2020-26248 is a medium-severity SQL injection vulnerability in PrestaShop productcomments, published on 3 Dec 2020. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the PrestaShop module "productcomments" before version 4.2.1, an attacker can use a Blind SQL injection to retrieve data or stop the MySQL service. The problem is fixed in 4.2.1 of the module.
Weakness: CWE-89
Which versions are affected by CVE-2020-26248?
2 open source packages ship an affected version, including prestashop/productcomments. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
prestashop/productcomments Packagist | From 4.0.0 | 4.2.1 |
prestashop/productcomments Packagist | From 4.0.0 | 4.2.1 |
Products include Prestashop Productcomments.
How do I fix CVE-2020-26248?
Upgrade prestashop/productcomments to 4.2.1 or later.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2020-26248 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-26248 exists.
Public exploit code: 1 Nuclei template.
Other vulnerabilities in PrestaShop productcomments
Sources
Also known as GHSA-5v44-7647-xfw9.