Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
8.7

CVE-2026-32272: Craft Commerce lets logged-in users read database data

CVE-2026-32272 · published 6 months ago
Summary

Versions 5.0.0 through 5.5.4 of Craft Commerce let anyone with a control‑panel login run specially crafted searches that reveal hidden database information, including keys that could be used to pretend to be an admin. The problem occurs because certain search filters skip the normal safety checks. Updating to version 5.6.0 removes the risk.

What to do
  • Update craftcms commerce to version 5.6.0.
  • Update craftcms craftcms/commerce to version 5.6.0.
Affected software
Ecosystem VendorProductAffected versions
composer craftcms commerce >= 5.0.0, < 5.6.0
Fix: upgrade to 5.6.0
Packagist craftcms craftcms/commerce >= 5.0.0, < 5.6.0
Fix: upgrade to 5.6.0
Original advisory text
Craft Commerce: Blind SQL Injection via hasVariant/hasProduct
Craft Commerce is an ecommerce platform for Craft CMS. In versions 5.0.0 through 5.5.4, an SQL injection vulnerability exists where the ProductQuery::hasVariant and VariantQuery::hasProduct properties bypass the input sanitization blocklist added to ElementIndexesController in a prior security fix (GHSA-2453-mppf-46cj). The blocklist only strips top-level Yii2 Query properties such as where and orderBy, but hasVariant and hasProduct pass through untouched and internally call Craft::configure() on a subquery without sanitization, re-introducing SQL injection. Any authenticated control panel user can exploit this via boolean-based blind SQL injection to extract arbitrary database contents, including security keys that enable forging admin sessions for privilege escalation. This issue has been fixed in version 5.6.0.
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker full control
Severity
8.7 High
Exploitation
<1% chance of attack within 30 days
Type
CWE-89SQL Injection
Timeline
Published13 Apr 2026
Updated4 Nov 2026
First seen13 Apr 2026
Track software like this
Free during beta