Remote code execution in Craft CMS via signed Twig templates
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-1336.
Summary
Craft CMS from 5.10.0 before 5.11.2 contains a remote code execution flaw caused by improper neutralization of special elements in a template engine (CWE-1336). Non-administrator control panel users can obtain HMAC-signed Twig templates through the app/render-elements endpoint, and the templates are then evaluated without the sandbox. An authenticated remote attacker with low privileges can execute OS commands as the PHP worker.
Written with Claude Haiku 5.5 from the sources below · 2026-11-08
Description from the CNA
Craft CMS from 5.10.0 before 5.11.2 contains a remote code execution vulnerability that allows non-administrator control panel users to obtain HMAC-signed Twig templates via the app/render-elements endpoint. Attackers can submit the signed templated returnUrl as the login redirect parameter, triggering unsandboxed renderObjectTemplate() evaluation and executing OS commands as the PHP worker.
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 to version 5.11.2, which is the fixed version listed for this range.
Written with Claude Haiku 5.5 from the sources below · 2026-11-08
- Fix · CNA cms (craftcms) Fixed in 5.11.2
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
craftcms cms 5.11.2
6 records Highest priority Priority MEDIUM 3 MEDIUM, 3 LOW
Other records, highest priority first
- TI-2026-86790 Authorization bypass in Craft CMS GraphQL prev/next fields exposes entriesPriority MEDIUM 48
- TI-2026-86792 Privilege escalation in Craft CMS via public registrationPriority MEDIUM 43
- TI-2026-86789 Craft CMS GraphQL bypass exposes content from out-of-scope sitesPriority LOW 36
Timeline
- 2026-11-08 Threatist record created from CVE-2026-124430
- 2026-11-08 Alias added: GHSA-6pc2-3wgv-f5mj
- 2026-11-10 Priority changed: MEDIUM → LOW
- 2026-11-12 CISA SSVC decision points changed
References
More Craft CMS vulnerabilities
- TI-2025-23503 Code injection in Craft CMS allows remote code execution KEVCVSS 3.1CRITICAL 10.0
- TI-2024-37138 Remote code execution in Craft CMS when register_argc_argv is enabled KEVCVSS 4.0CRITICAL 9.3
- TI-2025-16994 Remote code execution in Craft CMS via a compromised security key 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-124430 · CVE Program
- CVE-2026-124430 · NVD
- FIRST EPSS
- GHSA-6pc2-3wgv-f5mj · 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