Vulnerability · GHSA-v4q3-2g5g-wjj6
Low privilege condition filter escapes Twig sandbox, recovers "securityKey" and reaches RCE
Published Oct 23, 2026 · catalog updated Oct 23, 2026 · Low privilege condition filter
Last checked Nov 1, 2026. A connected source was read within the last 7 days.
Open the advisory
Exploitation likelihood is not on this record for GHSA-v4q3-2g5g-wjj6. A missing EPSS score is not a low risk. Compare Low privilege condition filter with the linked advisory before you change production.
Gaps on this record
- The stored product name is a package slug. The name on this page is taken from the title (Low privilege condition filter).
- No vendor fix or required action is stored. Compare the linked advisory before you change production.
- EPSS is missing. A missing score is not a low risk.
- Severity
- High—
- Known exploitation
- Not in CISA/VulnCheck KEV
- EPSS
- Awaiting synchronization with FIRST
- Remediation
- Version ranges on file
- Affected products
- composer craftcms/cms
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 filter delegates property lookup to Yii , outside Twig’s . Repeated single-segment lookups therefore bypass the sandbox’s empty property/method allowlists. The vulnerable condition value is ultimately cast to an integer. That does not protect the secret: the template can return author ID 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. After recovering , the same user can compute Craft’s generic HMAC wire format offline. Signed parameters such as are then accepted and passed to unsandboxed , where Twig’s string-callable form can invoke native PHP callables. The regression proof uses the harmless callback and observes becoming ; it does not execute an OS command. ### Impact * Successful exploitation escapes the intended template security authority and executes attacker-selected PHP callables as the web server user. Report ID: 1887
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- composer craftcms/cms>= 4.0.0, < 4.18.9
- composer craftcms/cms>= 5.0.0, < 5.11.2
How to fix GHSA-v4q3-2g5g-wjj6
Upgrade
GHSA-v4q3-2g5g-wjj6 lists a fix boundary at 4.18.9. Compare the installed build with that boundary before you change production.
Version check
Affected < 4.18.9
Advisory
Open the inventory_github record and follow its fix.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
Exploitation likelihood is not on this record for GHSA-v4q3-2g5g-wjj6. A missing EPSS score is not a low risk. Compare Low privilege condition filter with the linked advisory before you change production.
Which versions are affected?
Compare what you have installed with >= 4.0.0, < 4.18.9, >= 5.0.0, < 5.11.2. Compare the installed version with the linked vendor advisory before you change production.
What should an analyst verify?
No weakness class is stored. EPSS is not on this record yet. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Technology hubs
Code
The project this record applies to. Exploit listings stay in References.
No public source repository is identified for this product.
Timeline
Detection, updates, and resolution for this record.
Oct 23, 2026 · Maintainer security tabs
Detected
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 filter delegates property lookup to Yii , outside Twig’s . Repeated single-segment lookups therefore bypass the sandbox’s empty property/method allowlists. The vulnerable condition value is ultimately cast to an integer
Sources
- Maintainer security tabsVendor advisoryGHSA-v4q3-2g5g-wjj6
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 filter delegates property lookup to Yii , outside Twig’s . Repeated single-segment lookups therefore bypass the sandbox’s empty property/method allowlists. The vulnerable condition value is ultimately cast to an integer
github.com
Freshness
Last verified in this catalog Oct 23, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.
- Maintainer security tabsNov 1, 2026