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.
Published: 2026-10-19
Score: 8.7 High
EPSS: n/a
KEV: No
Impact: Remote Code Execution
Action: Immediate Patch
AI Analysis

Impact

Craft CMS versions prior to 4.18.8 and 5.11.0 contain a flaw in the Twig group filter that fails to enforce the required checkArrow guard. When an authenticated control panel user supplies an array‑callable such as FileHelper::writeToFile through element‑select condition rules, the system invokes the callable and writes data to the webroot. This allows the attacker to drop a webshell and execute arbitrary code as the web server process, resulting in a full compromise of the application, data, and surrounding infrastructure.

Affected Systems

The affected parties include users running Craft CMS 4.x lower than 4.18.8 or 5.x lower than 5.11.0. Administrators of these installations are directly exposed, while any organization hosting such sites is at risk.

Risk and Exploitability

The CVSS score of 8.7 classifies this issue as high severity, indicating that successful exploitation would have severe consequences. The EPSS score is not available, and the vulnerability is not listed in the CISA KEV catalog, suggesting that publicly known exploits are not yet confirmed. Extraction of an array‑callable only requires authenticated access to the control panel, so the likelihood of attack depends on the accessibility and protection of administrative credentials; exposed or weakly secured control panels elevate the threat level.

Generated by OpenCVE AI on October 19, 2026 at 20:28 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Craft CMS release (4.18.8 or 5.11.0) or later to remove the vulnerability.
  • If an update cannot be performed immediately, restrict control panel access to trusted users or IP addresses and monitor the webroot for unauthorized file creation.
  • Deploy file‑integrity monitoring or periodic scans for suspicious webshell files in the webroot to detect and mitigate any delayed exploitation attempts.

Generated by OpenCVE AI on October 19, 2026 at 20:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 19 Oct 2026 19:30:00 +0000

Type Values Removed Values Added
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.
Title Craft CMS before 4.18.8 and 5.11.0 Authenticated RCE via Twig group Filter Array-Callable
First Time appeared Craftcms
Craftcms craft Cms
Weaknesses CWE-94
CPEs cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*
Vendors & Products Craftcms
Craftcms craft Cms
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Craftcms Craft Cms
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-19T19:10:49.743Z

Reserved: 2026-10-19T18:10:49.940Z

Link: CVE-2026-112770

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Deferred

Published: 2026-10-19T20:17:54.060

Modified: 2026-10-19T20:59:50.503

Link: CVE-2026-112770

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-19T20:30:03Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')