CVE-2020-26248 Blind SQL injection during the CommentGrade process

Medium 6.8 Published Updated

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.

PackageAffectedFixed in
prestashop/productcomments PackagistFrom 4.0.04.2.1
prestashop/productcomments PackagistFrom 4.0.04.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.

Sources

Also known as GHSA-5v44-7647-xfw9.

Is CVE-2020-26248 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free