# CVE-2026-32271: Craft Commerce: SQL Injection can lead to Remote Code Execution via TotalRevenue Widget

- Severity: High 7.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 44% of CVEs (2026-12-02)
- Published: 2026-04-13T20:19:19.486Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-875v-7m49-8x88
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Craft Commerce is an ecommerce platform for Craft CMS. In versions 4.0.0 through 4.10.2 and 5.0.0 through 5.5.4, there is an SQL injection vulnerability in the Commerce TotalRevenue widget which allows any authenticated control panel user to achieve remote code execution through a four-step exploitation chain. The attack exploits unsanitized widget settings interpolated into SQL expressions, combined with PDO's default multi-statement query support, to inject a maliciously serialized PHP object into the queue table. When the queue consumer processes the injected job, the unrestricted unserialize() call in yii2-queue instantiates a GuzzleHttp FileCookieJar gadget chain whose __destruct() method writes a PHP webshell to the server's webroot. The complete chain requires only three HTTP requests, no administrative privileges, and results in arbitrary command execution as the PHP process user, with queue processing triggered via an unauthenticated endpoint. This issue has been fixed in versions 4.10.3 and 5.5.5.

(As written by CVE List.)

## Affected

- craftcms commerce: >= 4.0.0, < 4.10.3; >= 5.0.0, < 5.5.5
- craftcms/commerce (Packagist): from 4.0.0 before 4.10.3; from 5.0.0 before 5.5.5

## Every score

- GitHub_M: CVSS:4.0 7.7 High `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`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`

## References

- <https://github.com/craftcms/commerce/security/advisories/GHSA-875v-7m49-8x88> (web)
- <https://github.com/craftcms/commerce/commit/6d2d24b3a2b0c06593856d05446f82bd8af92d72> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-32271> (advisory)
- <https://github.com/craftcms/commerce> (package)

## Sources

- CVE List: [CVE-2026-32271](https://www.cve.org/CVERecord?id=CVE-2026-32271), CVE Terms of Use, modified 2026-04-16
- GitHub Advisory Database: [GHSA-875v-7m49-8x88](https://github.com/advisories/GHSA-875v-7m49-8x88), CC-BY-4.0, modified 2026-04-14
- NVD: [CVE-2026-32271](https://nvd.nist.gov/vuln/detail/CVE-2026-32271), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-32271 · Whole record: https://cve.day/CVE-2026-32271.json · Rebuilt by cve.day 2026-11-25T22:59:18.642Z
