{"id":"CVE-2026-115938","revision":"3b881b50e0854e849a7712fa52e2403a","records":[{"revision":"3b881b50e0854e849a7712fa52e2403a","observedAt":"2026-10-23T22:48:20.692+00:00","statement":{"source":"cve-program","id":"CVE-2026-115938","aliases":[],"title":"Low privilege condition filter escapes Twig sandbox, recovers \"securityKey\" and reaches RCE","description":"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\u00A0column\u00A0filter delegates property lookup to Yii\u00A0ArrayHelper, outside Twig’s\u00A0SecurityPolicy. 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\u00A01\u00A0when 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\u00A0GeneralConfig::securityKey, the same user can compute Craft’s generic HMAC wire format offline. Signed parameters such as\u00A0redirect\u00A0are then accepted and passed to unsandboxed\u00A0View::renderObjectTemplate(), where Twig’s string-callable form can invoke native PHP callables. The regression proof uses the harmless\u00A0substr()\u00A0callback and observes\u00A0abcdef\u00A0becoming\u00A0cdef; it does not execute an OS command.","state":0,"publishedAt":"2026-10-23T21:58:51.816+00:00","modifiedAt":"2026-10-23T21:58:51.816+00:00","affected":[{"ecosystem":"https://packagist.org","name":"craftcms/cms","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"craftcms\",\n                    \"product\": \"cms\",\n                    \"collectionURL\": \"https://packagist.org\",\n                    \"packageName\": \"craftcms/cms\",\n                    \"versions\": [\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"5.0.0\",\n                            \"lessThan\": \"5.11.2\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"status\": \"affected\",\n                            \"version\": \"4.0.0\",\n                            \"lessThan\": \"4.18.9\",\n                            \"versionType\": \"semver\"\n                        }\n                    ],\n                    \"defaultStatus\": \"unaffected\"\n                }"}],"metrics":[{"system":"CVSS 4.0","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","score":8.7,"severity":"HIGH"},{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"severity":"HIGH"}],"references":["https://www.hckrt.com/hacktivity/HCKRT-DRNL9W","https://github.com/craftcms/cms/releases/tag/5.11.2","https://github.com/craftcms/cms","https://github.com/craftcms/cms/security/advisories/GHSA-v4q3-2g5g-wjj6"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-115938","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-115938","identifiers":["CVE-2026-115938"]},"retained":false,"historicalAffected":[]}],"coverage":[]}