Skip to main content

CVE-2026-115938: CWE-1336 Improper neutralization of special elements used in a template engine in craftcms cms

0
High
VulnerabilityCVE-2026-115938cvecve-2026-115938cwe-1336
Published: 10/23/2026 (10/23/2026, 21:58:51 UTC)
Source: CVE Database V5
Vendor/Project: craftcms
Product: cms

Description

CVE-2026-115938 is a high-severity vulnerability in Craft CMS affecting versions 4.0.0 up to but not including 4.18.9, and 5.0.0 up to but not including 5.11.2. It involves improper neutralization of special elements in the template engine, allowing authenticated control panel users to exploit a sandbox bypass in Twig templates. This leads to leakage of the GeneralConfig::securityKey and enables offline computation of HMAC signatures, which can then be used to pass signed parameters to unsandboxed template rendering, potentially invoking native PHP callables.

CVSS v4.0

Score 8.7high

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
High
Vuln. Integrity
High
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

craftcms

cms

Affected versions
>=5.0.0 <5.11.2>=4.0.0 <4.18.9
Packagistmore threats →cve
craftcms/cms
pkg:composer/craftcms/cms
Affected versions
>=5.0.0 <5.11.2>=4.0.0 <4.18.9

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/23/2026, 22:20:12 UTC

Technical Analysis

Craft CMS allows authenticated control panel users to submit element-search conditions evaluated as sandboxed Twig templates. However, the allowed column filter delegates property lookup to Yii ArrayHelper outside Twig's SecurityPolicy, enabling repeated single-segment lookups to bypass sandbox restrictions. The vulnerability leaks the GeneralConfig::securityKey via a remote character oracle formed by JSON endpoint responses. With the recovered key, an attacker can compute Craft's generic HMAC wire format offline, allowing signed parameters to be accepted and passed to unsandboxed View::renderObjectTemplate(), where Twig's string-callable form can invoke native PHP callables. The proof-of-concept uses a harmless substr() callback and does not execute OS commands.

Potential Impact

An authenticated control panel user can exploit this vulnerability to recover the application's security key, enabling them to forge signed parameters and potentially execute arbitrary PHP callables within unsandboxed template rendering. This could lead to unauthorized actions within the CMS environment. The CVSS 4.0 score is 8.7 (high severity), reflecting network attack vector, low attack complexity, no user interaction, and high impacts on confidentiality, integrity, and availability.

Mitigation Recommendations

No explicit patch or remediation details are provided in the input data. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, restrict authenticated control panel user privileges to trusted personnel only and monitor for suspicious activity related to template rendering and signed parameter usage.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
Hackrate
Date Reserved
2026-10-23T21:25:32.945Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6adbda48d73cc49347c4c798

Added to database: 10/23/2026, 22:06:00 UTC

Last enriched: 10/23/2026, 22:20:12 UTC

Last updated: 10/23/2026, 22:20:46 UTC

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses