CVE-2026-112771

Craft CMS before 4.18.8 and 5.11.0 Twig Sandbox Allowlist Bypass via Array Filters

Published Oct 19, 2026 CVSS 4.0 · 7.1 High EPSS < 1% KEV · Not listed
Description
Craft CMS 4.0.0 before 4.18.8 and 5.0.0 before 5.11.0 contains a Twig sandbox allowlist bypass because the column, contains, filterByValue, index, where, and multisort filters resolve caller-supplied keys via ArrayHelper::getValue() without consulting the sandbox security policy. Authenticated Control Panel users can supply dot-path keys to traverse the craft global and disclose the securityKey, database credentials, and auth tokens.

Analysis

AI-generated

Technical impact

Craft CMS versions prior to 4.18.8 and 5.11.0 suffer a Twig sandbox allowlist bypass that lets authenticated Control Panel users supply dot‑path keys to array filters. These filters call ArrayHelper::getValue() without consulting the sandbox policy, enabling traversal of the craft global namespace to read the securityKey, database credentials, and authentication tokens. The vulnerability is an information‑exposure flaw allowing an attacker with legitimate user credentials to disclose highly sensitive configuration values. Based on the description, it is inferred that a privileged user can simply add a malicious dot‑path to a template to trigger the bypass.

Affected Systems

The affected product is Craft CMS, produced by Craft CMS. The issue applies to all releases prior to 4.18.8 of the 4.x line and prior to 5.11.0 of the 5.x line. No additional version modifiers are listed, so any installation running a version earlier than these thresholds is vulnerable.

Risk and Exploitability

The CVSS score is 7.1, indicating a moderate to high severity for information disclosure. EPSS data is not available, so the current exploitation likelihood cannot be quantified. The vulnerability is not listed in the CISA KEV catalog. The likely attack vector is that an authenticated Control Panel user can supply arbitrary dot‑path keys; therefore exploitation requires valid credentials but does not require network traversal or remote code execution. Once the bypass is triggered, the attacker can read credentials that are otherwise protected by the CMS's configuration files.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the official update to Craft CMS 4.18.8 or 5.11.0 as soon as possible.
  • If an immediate update is not feasible, restrict Control Panel access to a minimal set of trusted administrators and monitor for any abnormal template usage patterns.
  • Audit custom Twig templates and third‑party plugins for the use of the vulnerable array filters and temporarily remove or disable them until the patch is applied.

Generated by OpenCVE AI on October 19, 2026 at 20:27 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': 'partial'}, '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.0.0 before 4.18.8 and 5.0.0 before 5.11.0 contains a Twig sandbox allowlist bypass because the column, contains, filterByValue, index, where, and multisort filters resolve caller-supplied keys via ArrayHelper::getValue() without consulting the sandbox security policy. Authenticated Control Panel users can supply dot-path keys to traverse the craft global and disclose the securityKey, database credentials, and auth tokens.
Title Craft CMS before 4.18.8 and 5.11.0 Twig Sandbox Allowlist Bypass via Array Filters
First Time appeared Craftcms
Craftcms craft Cms
Weaknesses CWE-200
CPEs cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*
Vendors & Products Craftcms
Craftcms craft Cms
References
Metrics cvssV3_1

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

cvssV4_0

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

Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 20, 2026, 3:11 PM
Reserved
Oct 19, 2026, 6:10 PM
Status
Deferred
Published
Oct 19, 2026, 8:17 PM
Modified
Oct 20, 2026, 4:17 PM