CVE-2026-112770
8.8 HIGHpublic exploit availablePublished 2026-10-19 · Updated 2026-10-22
AI risk analysis
- Summary
- A remote code execution flaw in Craft CMS allows authenticated control panel users to execute arbitrary PHP code by exploiting the Twig group filter's lack of a checkArrow guard when processing array-callable arguments, enabling them to write a webshell to the webroot.
- Exploitability
- Exploitation requires valid control panel credentials and knowledge of how to inject malicious array-callables via element-select condition rules; no privilege escalation is needed beyond standard authenticated user access.
- Blast radius
- Successful exploitation grants the web server process user full control over the application, including reading sensitive files, modifying data, and deploying persistent backdoors.
- Detection
- Monitor control panel access logs for requests containing element-select condition rules with non-string array-callable arguments (e.g., ['FileHelper', 'writeToFile']); look for unexpected webshell files (e.g., .php files) appearing in the webroot directory after such requests.
- Prioritized remediation
- Upgrade to Craft CMS 4.18.8 or later for 4.x branches, or 5.11.0 or later for 5.x branches.
rcetwigwebshellcraft-cmsauthenticatedcwe94
Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.
NVD description
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.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-94
Public exploit & PoC references
References
Data: NVD (public domain). Analysis: local $0 model. Defensive use only.