CVE-2026-112771 Craft CMS before 4.18.8 and 5.11.0 Twig Sandbox Allowlist Bypass via Array Filters

High 7.1 Published Updated

Authenticated users can bypass Twig sandbox restrictions to disclose sensitive configuration data like security keys and database credentials.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2026-112771?

CVE-2026-112771 is a high-severity vulnerability in craftcms cms, published on 19 Oct 2026. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

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.

Weakness: CWE-200

Which versions are affected by CVE-2026-112771?

How do I fix CVE-2026-112771?

No fix has been published for CVE-2026-112771 yet. Limit exposure of the affected software until one is available.

Is CVE-2026-112771 being exploited?

There is no known exploitation of CVE-2026-112771 in the wild and no public exploit code.

Sources

Also known as GHSA-238j-2hq5-wrgg, GHSA-j697-8x93-7mp2.

Is CVE-2026-112771 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free