Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-32271

HIGH 7.7EPSS 44%

Craft Commerce: SQL Injection can lead to Remote Code Execution via TotalRevenue Widget

Also known as GHSA-875v-7m49-8x88

Mitigation

  • Upgrade craftcms/commerce to one of 4.10.3, 5.5.5 (or later in the same release line).

Who should check

  • Projects that depend on Packagist package craftcms/commerce (>= 4.0.0, < 4.10.3)
  • Anyone running craftcms commerce >= 4.0.0, < 4.10.3; >= 5.0.0, < 5.5.5

Vulnerability facts

Affected
craftcms/commerce >= 4.0.0, < 4.10.3
Fixed in
4.10.3, 5.5.5
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, login needed
CVSS
7.7 (v4.0, CNA)CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
  • Attack vector: Network
  • Attack complexity: High
  • Attack requirements: None
  • Privileges required: Low
  • User interaction: None
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
  • Confidentiality impact on other systems: None
  • Integrity impact on other systems: None
  • Availability impact on other systems: None
EPSS
0.62% chance of exploitation in 30 days (percentile 44, 2026-11-26)
CWE
CWE-89
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Packagist craftcms/commerce>= 4.0.0, < 4.10.34.10.3, 5.5.5osv
craftcms commerce>= 4.0.0, < 4.10.3; >= 5.0.0, < 5.5.5—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-32271. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-32271.md
Affected: craftcms/commerce >= 4.0.0, < 4.10.3
Fixed in: 4.10.3, 5.5.5

Steps:
1. Search this machine and project for craftcms/commerce (Packagist), craftcms commerce: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2026-32271 being exploited?

There is no confirmed exploitation: CVE-2026-32271 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.62% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-32271?

High: CVSS 7.7 (v4.0, scored by CNA). Remote, login needed. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2026-32271?

craftcms/commerce >= 4.0.0, < 4.10.3.

Is there a fix for CVE-2026-32271?

Yes. Fixed in 4.10.3, 5.5.5. Upgrade craftcms/commerce to one of 4.10.3, 5.5.5 (or later in the same release line).

How do I check if I'm affected by CVE-2026-32271?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors