Code injection in Craft CMS Twig group filter allows remote code execution
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-94.
Summary
Craft CMS 4.x before 4.18.8 and 5.x before 5.11.0 contains a code injection flaw (CWE-94) in the Twig group filter. The filter invokes non-string arrow arguments as callables without the checkArrow guard used by other arrow-accepting filters. An authenticated control panel user with element-select condition rules can pass an array callable to write a webshell to the webroot and execute code as the web user.
Written with Claude Haiku 5.5 from the sources below · 2026-10-28
Description from the CNA
Craft CMS 4.x before 4.18.8 and 5.x before 5.11.0 contains a remote code execution vulnerability in the Twig group filter, which invokes non-string arrow arguments as callables without the checkArrow guard used by other arrow-accepting filters. Authenticated control panel users can pass an array-callable such as FileHelper::writeToFile via element-select condition rules to write a webshell to the webroot and execute code as the web user.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade Craft CMS 4.x to 4.18.8 and Craft CMS 5.x 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-76610 Twig sandbox allowlist bypass in Craft CMS exposes secretsPriority LOW 31
Timeline
- 2026-10-20 Threatist record created from CVE-2026-112770
- 2026-10-20 Alias added: GHSA-xw77-mfcc-54f8
- 2026-10-21 Priority changed: MEDIUM → LOW
- 2026-10-23 CISA SSVC decision points changed
- 2026-10-23 Priority changed: LOW → MEDIUM
- 2026-10-25 EPSS moved to the 50th–90th percentile
References
More Craft CMS vulnerabilities
- 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
Sources
- CVE-2026-112770 · CVE Program
- CVE-2026-112770 · NVD
- FIRST EPSS
- GHSA-xw77-mfcc-54f8 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences