craftcms/cms is vulnerable to Remote Code Execution
82
High Risk
Craft CMS's Twig sandbox allowlists whole classes, and marking the element interface as allowed transitively permits methods from base classes up the hierarchy, reaching a Yii component gadget. That gadget exposes an arbitrary function-call primitive that remains callable from sandboxed templates. An authenticated control-panel user can render a crafted Twig template and achieve remote code execution even when the sandbox is enabled. The fix constrains the allowlist so the dangerous gadget is no longer reachable.
You are affected if you are using a version that falls within the vulnerable range and authenticated control-panel users can render Twig templates under the sandbox.
craftcms/cms is vulnerable to Remote Code Execution in versions 4.0.0 - 4.18.2 and 5.0.0 - 5.10.6.
Upgrade the craftcms/cms library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant