CVE-2026-112770

Craft CMS before 4.18.8 and 5.11.0 Authenticated RCE via Twig group Filter Array-Callable

Published Oct 19, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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 available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Craftcms cms
Vendors & Products Craftcms cms
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'}

Weaknesses
  • CWE-94

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 22, 2026, 8:59 PM
Reserved
Oct 19, 2026, 6:10 PM
Status
Deferred
Published
Oct 19, 2026, 8:17 PM
Modified
Oct 22, 2026, 9:17 PM