CVE-2026-112772

8.8High

Published Oct 19, 2026 · NVD status: Deferred · AI triage by gemini-3.8-flash

8.8CVSS

High

0CVSS v3.110

Attack vector
Network
Complexity
Low
Privileges
Low
User action
None
Impact
Full C/I/A compromise
Weakness
CWE-94

What an attacker gets

Authenticated Control Panel users can execute arbitrary code on the server as the web application user. They need valid credentials to access the Craft CMS Control Panel.

Root cause

The Asset::getMimeType method passes unfiltered 'as' and 'on' keys to Craft::createObject, allowing users to escape the Twig sandbox by attaching arbitrary behaviors or event handlers.

Affected versions

Craft CMS 5.0.0 before 5.11.0

CVSS v3.1 · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Fix & remediation

Upgrade Craft CMS to version 5.11.0 or later. If upgrading immediately is not possible, restrict Control Panel access to strictly trusted internal networks and accounts.

remediation — bash
$ composer update craftcms/cms --with-dependencies

AI-suggested. Run it in staging first and check it against the vendor advisory. Why?

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

References

Source: nvd.nist.gov/vuln/detail/CVE-2026-112772

More fully triaged vulnerabilities you may want to check next.