CVE-2026-115938Craft CMS Cms template injection
CVSS score
8.7
High
CVSS 4.0 from 7004884b-51e2-48e8-b4a2-5ca29e80453e
Exploit probability (EPSS)
0.37%
0.37% chance of exploitation in the next 30 days, higher than 31.4% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official 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 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.
The 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.
After 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.
Source: NVD · CNA: 7004884b-51e2-48e8-b4a2-5ca29e80453e
How to fix it, step by step
Check whether you're affected
Find every system running Craft CMS Cms and compare its version with the affected versions.
Update to a fixed version
- Update Cms to 4.18.9, 5.11.2 or later, on the branch you run.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Attack requirements
- None
- Privileges required
- Low
- User interaction
- None
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Values in red make the vulnerability easier to exploit or more damaging. 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Affected products
| Affected products | Versions |
|---|---|
| Craft CMS Cms | ≥ 5.0.0, < 5.11.2 · ≥ 4.0.0, < 4.18.9 |
Weakness
- CWE-1336 template injection
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-115938 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.4% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-115938?
CVE-2026-115938 has a CVSS 4.0 base score of 8.7 (high).
Which versions are affected?
Craft CMS Cms (≥ 5.0.0, < 5.11.2; ≥ 4.0.0, < 4.18.9)
Is there a patch for CVE-2026-115938?
The official record links to vendor advisories or patches; see “What to do” above.
References
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.