HighGHSA-f5wm-88jv-g5hx
Craft CMS: Authenticated RCE through Twig sandbox escape
Affected versions
5.0.0-RC1 to before 5.10.7, 4.0.0-RC1 to before 4.18.3 - fixed in 5.10.7Details
The Twig sandbox mechanism in Craft CMS is configured to allow dangerous functionality from the Yii framework, leading to authenticated RCE in a manner similar to previously disclosed vulnerabilities. The Twig sandbox in Craft CMS works by implementing Twig's `SecurityPolicyInterface`. The resulting `SecurityPolicy` class implements the `checkMethodAllowed` and `checkPropertyAllowed` methods of the interface. The implementations compare whether the called method or property is in a configured allowlist or is marked with the `AllowedInSandbox` attribute. Additionally, `SecurityPolicy` allows
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-72781
- https://github.com/craftcms/cms/security/advisories/GHSA-f5wm-88jv-g5hx
- https://nvd.nist.gov/vuln/detail/CVE-2026-72781
- https://github.com/craftcms/cms/commit/0b8be1556be4e030578ec779c3e17ffe2e69d7db
- https://github.com/craftcms/cms
- https://github.com/craftcms/cms/releases/tag/4.18.3
- https://github.com/craftcms/cms/releases/tag/5.10.7
- https://www.vulncheck.com/advisories/craft-cms-rc1-before-remote-code-execution-via-twig-sandbox-escape
Is your site exposed?Run a free passive scan. See your platform, versions and the issues on your surface in under a minute.
Check if my site is affected