Intel

AIKIDO-2026-10370

craftcms/commerce is vulnerable to SQL Injection

SQL InjectionGHSA-875v-7m49-8x88 Published Mar 17, 2026

87

High Risk

This Affects:

PHPcraftcms/commerce
3.0.0 - 4.10.2
Fixed in 4.11.0
5.0.0 - 5.5.4
Fixed in 5.6.0
Are you affected? Scan for Free

TL;DR

Affected versions of this package are affected by a SQL injection vulnerability in the control panel’s revenue statistics functionality. Insufficient validation of the type parameter used when constructing SQL expressions allows user-controlled values to influence the column used in a query. Because this value is interpolated into the SQL expression, a crafted request could manipulate the query executed by the application. This could allow an authenticated attacker with access to the control panel to execute unintended SQL queries.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

craftcms/commerce is vulnerable to SQL Injection in versions 3.0.0 - 4.10.2 and 5.0.0 - 5.5.4.

How to fix this

Upgrade the craftcms/commerce library to the patch version.