# Craft Commerce has a SQL Injection can lead to Remote Code Execution via TotalRevenue Widget

Advisory record · `GHSA-875v-7m49-8x88`

- **Identifiers:** `GHSA-875v-7m49-8x88` · `CVE-2026-32271` · `PKSA-chpm-5f12-rdnt`
- **State:** Confirmed
- **Severity:** CVSS 7.7 High
- **Critical:** No
- **Weakness (CWE):** [CWE-89](https://cwe.mitre.org/data/definitions/89.html)
- **Tags:** [SQL injection](https://agentprime.io/advisories/tag/sql-injection.md)
- **Published:** 14 Apr 2026
- **Updated:** 14 Apr 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 14 Apr 2026, 00:07 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `craftcms/commerce` (Packagist): affected `>=4.0.0, <4.10.3 || >=5.0.0, <5.5.5`; fixed in `4.10.3`, `5.5.5`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Craft Commerce versions >=4.0.0 before 4.10.3 and >=5.0.0 before 5.5.5 are vulnerable to SQL injection through the TotalRevenue dashboard widget, which can lead to remote code execution. An attacker with a Craft control panel user account can exploit this by chaining the injection with queue processing, which is reachable without authentication, to run arbitrary commands as the PHP process user. Upgrade to Craft Commerce 4.10.3 or 5.5.5, depending on your major version.

Written 3 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.7 High, CVSS 4.0: `CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0050, the 43rd percentile, on 15 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:25 UTC: First seen by agentprime
- 31 Oct 2026, 14:25 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-875v-7m49-8x88)

## Sources

- [GitHub Advisory Database: GHSA-875v-7m49-8x88](https://github.com/advisories/GHSA-875v-7m49-8x88)
- [OSV: GHSA-875v-7m49-8x88](https://osv.dev/vulnerability/GHSA-875v-7m49-8x88)
- <https://github.com/craftcms/commerce/security/advisories/GHSA-875v-7m49-8x88>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-32271>
- <https://github.com/craftcms/commerce/commit/6d2d24b3a2b0c06593856d05446f82bd8af92d72>
- <https://github.com/craftcms/commerce>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-875v-7m49-8x88>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-875v-7m49-8x88/>. Everything for agents: <https://agentprime.io/llms.txt>.
