Intel

AIKIDO-2026-250803

prestashop/productcomments is vulnerable to SQL Injection

SQL InjectionGHSA-w68x-wjp2-mwc9 Published Today

72

High Risk

This Affects:

PHPprestashop/productcomments
6.0.0 - 8.0.0
Fixed in 8.0.1
Are you affected? Scan for Free

TL;DR

The ProductCommentCriterionRepository builds the SQL INSERT statements that link review criteria to categories and products by concatenating the submitted category and product IDs directly into the query string. A back-office employee with access to the product comments module configuration page can submit a crafted category or product ID that breaks out of the query and injects arbitrary SQL. Successful injection lets that user read, modify, or destroy arbitrary data in the shop database. The fix casts the IDs to integers and binds them as parameters instead of concatenating them into the query.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you grant back-office employees access to the product comments module's configuration page.

Background info

prestashop/productcomments is vulnerable to SQL Injection in versions 6.0.0 - 8.0.0.

How to fix this

Upgrade the prestashop/productcomments library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform