Read the docs

Twig sandbox allowlist bypass in Craft CMS exposes secrets

Priority LOW 31CWE-200Published · Updated

Key facts

Attack vector
Network
Privileges required
Low
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
Information disclosure
Confidentiality · integrity · availability
High · None · None
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-200.

Summary

Craft CMS from 4.0.0 before 4.18.8 and from 5.0.0 before 5.11.0 contains a Twig sandbox allowlist bypass in array filters such as column. The filters resolve caller-supplied keys without consulting the sandbox security policy, which exposes sensitive information (CWE-200). An authenticated Control Panel user can supply dot-path keys to reach the craft global and disclose the securityKey, database credentials and auth tokens.

Written with Claude Haiku 5.5 from the sources below · 2026-10-28

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00317 24th percentileScored 2026-11-07
Fix Fixed cms (craftcms): 4.18.8, 5.11.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Craft CMScms4.0.0 to before 4.18.84.18.8Patch availableCNA
Craft CMScms5.0.0 to before 5.11.05.11.0Patch availableCNA
  • cms VendorCraft CMS Affected 4.0.0 to before 4.18.8 Fixed in 4.18.8 Patch available CNA
  • cms VendorCraft CMS Affected 5.0.0 to before 5.11.0 Fixed in 5.11.0 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*——Craft CMS
  • cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:* Versions — — ·Craft CMS

Remediation

Upgrade Craft CMS 4 installations to 4.18.8 and Craft CMS 5 installations to 5.11.0.

Written with Claude Haiku 5.5 from the sources below · 2026-10-28

  • Fix · CNA cms (craftcms) Fixed in 4.18.8
  • Fix · CNA cms (craftcms) Fixed in 5.11.0

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    craftcms cms 5.11.0

    8 records Highest priority Priority MEDIUM 7 MEDIUM, 1 LOW

    Other records, highest priority first

    • TI-2026-76615 Craft CMS GraphQL Site-Scope Bypass via MutationsPriority MEDIUM 48
    • TI-2026-76616 Craft CMS Twig create() blocklist bypass allows remote code executionPriority MEDIUM 45
    • TI-2026-76614 Verification code reuse in Craft CMS allows account takeoverPriority MEDIUM 44
  • Release ·

    craftcms cms 4.18.8

    3 records Highest priority Priority MEDIUM 2 MEDIUM, 1 LOW

    Other records, highest priority first

    • TI-2026-76616 Craft CMS Twig create() blocklist bypass allows remote code executionPriority MEDIUM 45
    • TI-2026-76609 Code injection in Craft CMS Twig group filter allows remote code executionPriority MEDIUM 41

Timeline

  1. 2026-10-20 Threatist record created from CVE-2026-112771
  2. 2026-10-20 Alias added: GHSA-238j-2hq5-wrgg
  3. 2026-10-20 CISA SSVC decision points changed
  4. 2026-10-20 Priority changed: MEDIUM → LOW

References

  • TI-2025-23503 Craft CMS Allows Remote Code Execution KEVCVSS 3.1CRITICAL 10.0
  • TI-2024-37138 RCE when PHP `register_argc_argv` config setting is enabled in craftcms/cms KEVCVSS 4.0CRITICAL 9.3
  • TI-2025-16994 Potential RCE with a compromised security key in craft/cms KEVCVSS 3.1HIGH 8.1
  • TI-2025-24595 Craft CMS stores user-provided content in session files KEVCVSS 4.0MEDIUM 6.9
  • TI-2023-22284 Craft CMS Remote Code Execution vulnerability CVSS 3.1CRITICAL 10.0
  • TI-2024-25171 Craft CMS up to v3.7.31 was discovered to contain a SQL injection vulnerability via the GraphQL API endpoint. CVSS 3.1CRITICAL 9.8
See all 203 →

Sources