CVE-2026-112771: Craft CMS before 4.18.8 and 5.11.0 Twig Sandbox Allowlist Bypass via Array Filters
Craft CMS 4.0.0 before 4.18.8 and 5.0.0 before 5.11.0 contains a Twig sandbox allowlist bypass because the column, contains, filterByValue, index, where, and multisort filters resolve caller-supplied keys via ArrayHelper::getValue() without consulting the sandbox security policy. Authenticated Control Panel users can supply dot-path keys to traverse the craft global and disclose the securityKey, database credentials, and auth tokens.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
Craft CMSto a version that resolves this vulnerability.Fixed in 4.18.8 - Upgrade
Upgrade
Craft CMSto a version that resolves this vulnerability.Fixed in 5.11.0
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated Craft CMS Control Panel user can exploit it. The provided data does not state that unauthenticated visitors or front-end users can trigger it.
What access or input is required for exploitation?
The attacker needs Control Panel authentication and must be able to supply dot-path keys to the affected Twig array filters. The vulnerable filters are column, contains, filterByValue, index, where, and multisort.
What information could be exposed?
An attacker can traverse the craft global and disclose the securityKey, database credentials, and authentication tokens. The stated impact is confidentiality loss; no integrity or availability impact is identified.
Which releases are affected?
Affected releases are Craft CMS 4.0.0 through versions before 4.18.8, and 5.0.0 through versions before 5.11.0. Upgrading to 4.18.8 or 5.11.0 addresses the affected version ranges.