# CVE-2026-112771: Craft CMS Twig sandbox allowlist bypass via array filters

Source: https://junglewise.ai/threats/cve-2026-112771-craft-cms-4-0-0-before-4-18-8-and-5-0-0-before-5-11-0-contains-a  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-10-19. Updated: 2026-10-19  
License: CC BY 4.0 with a link back

CVE-2026-112771 · Severity: medium · CVSS 6.5 · Published 2026-10-19

Craft CMS is a content management system that allows authenticated users to create and manage website content through a control panel. A flaw in Craft CMS's Twig template sandbox allows authenticated control panel users to bypass security restrictions and read sensitive configuration data including encryption keys, database credentials, and authentication tokens. This vulnerability requires the Twig sandbox security feature to be enabled (which is disabled by default) and authenticated access to the control panel.

Technologies: [Craft CMS](https://junglewise.ai/threats/technologies/craft-cms-1). Vendors: [Craft](https://junglewise.ai/threats/vendors/craft).

## Quick answers

**Is CVE-2026-112771 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-112771 being exploited in the wild.

**How severe is CVE-2026-112771?** Medium severity, with a CVSS score of 6.5, published 19 October 2026.

**Which products and versions are affected?** Craft CMS 4.0.0 before 4.18.8, 5.0.0 before 5.11.0.

**Is there a fix for CVE-2026-112771?** Yes: fixed in 4.18.8, 5.11.0. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-112771 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-112771?** Check whether you run Craft CMS at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in 4.18.8, 5.11.0

## Technical details

Six Twig filters (column, contains, filterByValue, index, where, multisort) registered as sandbox-allowlisted resolve caller-supplied string keys through ArrayHelper::getValue() without consulting the sandbox SecurityPolicy, allowing dot-path graph traversal. Authenticated control panel users can exploit this to access non-allowlisted getters and traverse the craft global object to disclose securityKey, database credentials, and auth tokens. This is a read-only vulnerability; arbitrary code execution is not possible since Closures cannot be constructed in Twig templates.

## Affected products

- Craft CMS 4.0.0 before 4.18.8, 5.0.0 before 5.11.0

## Timeline

- 2026-10-05: disclosed
- 2026-10-19: advisory

## References

- [https://github.com/craftcms/cms/security/advisories/GHSA-j697-8x93-7mp2](https://github.com/craftcms/cms/security/advisories/GHSA-j697-8x93-7mp2)
- [https://www.vulncheck.com/advisories/craft-cms-before-4.18.8-and-5.11.0-twig-sandbox-allowlist-bypass-via-array-filters](https://www.vulncheck.com/advisories/craft-cms-before-4.18.8-and-5.11.0-twig-sandbox-allowlist-bypass-via-array-filters)

## Related threats

- [Craft CMS SQL injection in craft.search](https://junglewise.ai/threats/cve-2026-115934-an-unauthenticated-sql-injection-can-occur-on-the-front-end-of)
- [Craft CMS authorization bypass in volume browser](https://junglewise.ai/threats/cve-2026-124431-craft-cms-from-5-10-0-before-5-11-2-contains-an-authorization)
- [Craft CMS privilege escalation in public registration](https://junglewise.ai/threats/cve-2026-124429-craft-cms-from-5-0-0-before-5-11-2-contains-a-privilege)
- [Craft CMS path traversal in app/icon-svg endpoint](https://junglewise.ai/threats/cve-2026-124428-craft-cms-from-5-7-0-before-5-11-2-contains-an-arbitrary-file)
- [Craft CMS authorization bypass in GraphQL schema scope](https://junglewise.ai/threats/cve-2026-124427-craft-cms-from-5-0-0-before-5-11-2-contains-an-authorization)
