CVE-2026-112772 Craft CMS 5.0.0 before 5.11.0 RCE via Asset::getMimeType Transform Injection

High 8.7 Published Updated

Authenticated Craft CMS users can execute arbitrary code by injecting malicious behaviors via asset transforms, bypassing the Twig sandbox.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-112772?

CVE-2026-112772 is a high-severity code injection vulnerability in craftcms cms, published on 19 Oct 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-94

Which versions are affected by CVE-2026-112772?

How do I fix CVE-2026-112772?

No fix has been published for CVE-2026-112772 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2026-112772 being exploited?

There is no known exploitation of CVE-2026-112772 in the wild and no public exploit code.

Sources

Also known as GHSA-qm9x-rmcj-h2rc, GHSA-rvqf-xwq6-2q7c.

Is CVE-2026-112772 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free