CVE-2026-112772: Craft CMS authenticated remote code execution via Twig sandbox escape

CVE-2026-112772 · Severity: high · CVSS 8.8 · Published 2026-10-19

Craft CMS is a content management system used to build and manage websites and applications. Authenticated administrators can execute arbitrary code on the web server by injecting malicious event handlers through the Asset MIME type transform feature, bypassing Craft's Twig sandbox protection. This allows an attacker with Control Panel access to gain full code execution as the web application user.

Technologies: Craft CMS CMS. Vendors: Craft CMS.

Quick answers

Is CVE-2026-112772 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-112772 being exploited in the wild.
How severe is CVE-2026-112772?
High severity, with a CVSS score of 8.8, published 19 October 2026.
Which products and versions are affected?
Craft CMS CMS 5.0.0 before 5.11.0.
Is there a fix for CVE-2026-112772?
Yes: fixed in 5.11.0. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-112772 attacked?
It is attacked over the network, in a software library.
Am I affected by CVE-2026-112772?
Check whether you run Craft CMS CMS at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • Fixed in: 5.11.0

Technical details

The vulnerability exists in the Asset::getMimeType() method, which passes untrusted transform array keys to Craft::createObject(). After rejecting only the 'class' key, the 'as' and 'on' keys survive and are processed by ImageTransform model construction, allowing attachment of malicious Yii behavior/event handlers that execute during EVENT_INIT. Exploitation requires Twig sandbox enabled (default: disabled) and authenticated Control Panel access via email template or condition rule rendering endpoints.

Affected products

  • Craft CMS CMS 5.0.0 before 5.11.0

Timeline

  • 2026-10-05: disclosed
  • 2026-10-19: advisory

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.