craftcms/cms is vulnerable to Code Injection
88
CVE Score
High
Code Injection
Before the fix, the #[AllowedInSandbox] method Asset::getMimeType passed a caller-supplied transform array to ImageTransforms::normalizeTransform, which spread it unfiltered into Craft::createObject; on and as keys attached Yii behaviors and event handlers to the ImageTransform model and ran code as the web user. Any signed-in Control Panel user who could influence content rendered by the Twig sandbox, such as system email message text, could reach it on installations with enableTwigSandbox turned on; it is off by default. An earlier guard rejected only the class key and left these keys intact. The fix passes transform arrays through Component::cleanseConfig, which strips on and as keys before object creation.
Upgrade the craftcms/cms package to 5.11.0 or later.
You are affected if you are using a version that falls within the vulnerable range and enable the Twig sandbox and let any signed-in Control Panel user influence content it renders, such as system email messages.
5.0.0 - 5.10.14
Fixed in 5.11.0craftcms/cms is vulnerable to Code Injection in versions 5.0.0 - 5.10.14.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.