CVE-2026-130675

Craft CMS 5.0.0 before 5.11.4 RCE via Image Transform Class Guard Bypass

Published Nov 18, 2026 CVSS 4.0 · 9.3 Critical EPSS n/a KEV · Not listed
Description
Craft CMS from 5.0.0 before 5.11.4 contains a remote code execution vulnerability in ImageTransforms::normalizeTransform() that allows attackers to instantiate arbitrary classes by supplying class:null with a __class key. Attackers can reach the method through Craft Commerce's payments/pay redirect template calling customer.photo.getUrl() with a crafted transform to instantiate classes like yii\rbac\PhpManager and execute PHP.

Analysis

AI-generated

Technical impact

Craft CMS versions from 5.0.0 up to but not including 5.11.4 contain a flaw in the ImageTransforms::normalizeTransform() method that allows attackers to instantiate arbitrary PHP classes by supplying a null class reference with a __class key. Through the Craft Commerce payments/pay redirect template that calls customer.photo.getUrl() with a custom transform, the vulnerability can be triggered to create instances of classes such as yii\rbac\PhpManager, enabling arbitrary PHP code execution. The impact is full remote code execution on the web server, granting attackers complete control if successful.

Affected Systems

Any installation of Craft CMS 5.0.0 through 5.11.3 that includes Craft Commerce. The affected products are listed under the craftcms:cms vendor, covering all builds of Craft CMS in this version range.

Risk and Exploitability

The CVSS score of 9.3 indicates critical severity. EPSS data is not available, and the vulnerability is not yet listed in CISA’s KEV catalog. Attackers can reach the vulnerable method via the Craft Commerce payments/pay redirect template, so exploitation is likely limited to environments where an attacker can supply or influence a template transform. Once executed, the vulnerability permits arbitrary PHP code execution, effectively allowing a full system compromise.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Craft CMS to version 5.11.4 or later, which fixes the guard bypass in ImageTransforms::normalizeTransform().
  • Remove or neutralize the use of the __class key in any custom transform data by updating templates and configurations, ensuring that class instantiation is not allowed through user-supplied input.
  • Implement strict validation by whitelisting only approved classes for image transforms and applying explicit type checks within any custom transform logic to prevent unintended class loading.

Generated by OpenCVE AI on November 18, 2026 at 19:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description Craft CMS from 5.0.0 before 5.11.4 contains a remote code execution vulnerability in ImageTransforms::normalizeTransform() that allows attackers to instantiate arbitrary classes by supplying class:null with a __class key. Attackers can reach the method through Craft Commerce's payments/pay redirect template calling customer.photo.getUrl() with a crafted transform to instantiate classes like yii\rbac\PhpManager and execute PHP.
Title Craft CMS 5.0.0 before 5.11.4 RCE via Image Transform Class Guard Bypass
First Time appeared Craftcms
Craftcms craft Cms
Weaknesses CWE-697
CPEs cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*
Vendors & Products Craftcms
Craftcms craft Cms
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 18, 2026, 11:33 AM
Reserved
Nov 17, 2026, 3:35 PM
Status
Awaiting Analysis
Published
Nov 18, 2026, 12:17 PM
Modified
Nov 18, 2026, 12:17 PM