Description
Craft CMS from 5.0.0 before 5.11.0 contains a remote code execution vulnerability that allows authenticated Control Panel users to escape the Twig sandbox via Asset::getMimeType transforms. Attackers can supply 'as' or 'on' keys passed unfiltered to Craft::createObject, attaching malicious behaviors or event handlers that execute code as the web user.
Published: 2026-10-19
Score: 8.7 High
EPSS: < 1% Very Low
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

The vulnerability resides in Craft CMS versions 5.0.0 through 5.10.x. It allows authenticated Control Panel users to inject transformation keys into the Asset::getMimeType method, causing the framework’s Craft::createObject function to be called with unfiltered 'as' or 'on' parameters. This bypasses the Twig sandbox and lets attackers attach malicious behaviors or event handlers that execute arbitrary code in the web‑user context, leading to full remote code execution.

Affected Systems

Impact applies to all installations of Craft CMS 5.0.0 to 5.10.99, including the craftcms:cms product. The vulnerability is present in all releases before the 5.11.0 release.

Risk and Exploitability

The CVSS score of 8.7 classifies this flaw as high severity. Although EPSS data is unavailable and the vulnerability is not listed in the CISA KEV catalog, the requirement of an authenticated Control Panel user does not mitigate the risk for sites that expose the CP to a broader audience or have privileged users. Attackers can trigger the flaw remotely via crafted requests that supply the vulnerable transformation keys, making the exploit achievable through the web application interface.

Generated by OpenCVE AI on October 19, 2026 at 20:27 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update Craft CMS to version 5.11.0 or later which removes the vulnerable transform handling.
  • If an update cannot be applied immediately, restrict Control Panel authentication to trusted users and disable or remove the ability to supply custom 'as' or 'on' keys in Asset::getMimeType transforms via configuration changes.
  • As a temporary safeguard, block or neutralize the Craft::createObject endpoint or filter its input to prevent unvalidated event handler registration.

Generated by OpenCVE AI on October 19, 2026 at 20:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 19 Oct 2026 21:15:00 +0000

Type Values Removed Values Added
First Time appeared Craftcms cms
Vendors & Products Craftcms cms

Mon, 19 Oct 2026 19:30:00 +0000

Type Values Removed Values Added
Description Craft CMS from 5.0.0 before 5.11.0 contains a remote code execution vulnerability that allows authenticated Control Panel users to escape the Twig sandbox via Asset::getMimeType transforms. Attackers can supply 'as' or 'on' keys passed unfiltered to Craft::createObject, attaching malicious behaviors or event handlers that execute code as the web user.
Title Craft CMS 5.0.0 before 5.11.0 RCE via Asset::getMimeType Transform Injection
First Time appeared Craftcms
Craftcms craft Cms
Weaknesses CWE-94
CPEs cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*
Vendors & Products Craftcms
Craftcms craft Cms
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 8.7, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-19T19:10:51.181Z

Reserved: 2026-10-19T18:10:49.940Z

Link: CVE-2026-112772

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-19T20:17:54.340

Modified: 2026-10-19T20:59:50.503

Link: CVE-2026-112772

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-19T21:00:04Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')