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 | Vendor | Product | Affected 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.
References
- https://github.com/craftcms/commerce/pull/4232
- https://github.com/advisories/GHSA-r54v-qq87-px5r
- https://github.com/craftcms/commerce Product
- https://github.com/advisories/GHSA-2453-mppf-46cj
- https://github.com/craftcms/commerce/releases/tag/5.6.0
- https://github.com/craftcms/commerce/security/advisories/GHSA-r54v-qq87-px5r
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/32xxx/CVE-2026-32272... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2026-32272 Vendor Advisory
Internet-facing
14 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker full control
Type
CWE-89SQL Injection
Timeline
Published13 Apr 2026
Updated4 Nov 2026
First seen13 Apr 2026
Sources
CVE-2026-32272 · NVD
GHSA-r54v-qq87-px5r · GHSA
GHSA-r54v-qq87-px5r · OSV
CVE-2026-32272 · OSV
Track software like this
Free during beta