{"id":"CVE-2026-115938","published":"2026-10-23T21:58:51Z","modified":"2026-11-02T15:03:03Z","title":"Low privilege condition filter escapes Twig sandbox, recovers \"securityKey\" and reaches RCE","vendor":"Craft CMS","product":"cms","tier":"tail","description":{"text":"Craft CMS allows any authenticated control panel user to submit an element-search condition whose element selector is evaluated as a sandboxed Twig object template. Craft’s allowed column filter delegates property lookup to Yii ArrayHelper, outside Twig’s SecurityPolicy. Repeated single-segment lookups therefore bypass the sandbox’s empty property/method allowlists.\n\n\n\nThe vulnerable condition value is ultimately cast to an integer. That does not protect the secret: the template can return author ID 1 when a guessed key character is correct and an impossible ID otherwise. The JSON endpoint returns entries for the first case and an empty array for the second, forming a stable remote character oracle.\n\n\n\nAfter recovering GeneralConfig::securityKey, the same user can compute Craft’s generic HMAC wire format offline. Signed parameters such as redirect are then accepted and passed to unsandboxed View::renderObjectTemplate(), where Twig’s string-callable form can invoke native PHP callables. The regression proof uses the harmless substr() callback and observes abcdef becoming cdef; it does not execute an OS command.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00369,"percentile":0.31584,"provenance":"source"},"cwes":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"references":[{"url":"https://www.hckrt.com/hacktivity/HCKRT-DRNL9W","tags":["third-party-advisory","technical-description","mitigation"]},{"url":"https://github.com/craftcms/cms/releases/tag/5.11.2","tags":["release-notes"]},{"url":"https://github.com/craftcms/cms","tags":["product"]},{"url":"https://github.com/craftcms/cms/security/advisories/GHSA-v4q3-2g5g-wjj6","tags":["third-party-advisory"]}],"priority":{"score":12.5,"factors":[{"name":"EPSS percentile","points":6.32},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"craft-cms","affectedVersions":[{"vendor":"craftcms","product":"cms","versions":[">= 5.0.0, < 5.11.2",">= 4.0.0, < 4.18.9"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-11-02T15:02:44.482817Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-109206","exploited":false,"provenance":"source"}}