CVE-2026-126099: Velocity sandbox escape to RCE through servlet container objects by a template author
The Velocity template sandbox (SecureIntrospectorImpl) in dotCMS through 26.11.03-01, and in the 25.07 LTS line, did not stop templates from reaching servlet container internals through the request and session objects. A back-end user who can edit templates, containers or widgets, without the CMS Administrator or Scripting Developer role, could use a container object to create an embedded script interpreter and run arbitrary Java code and operating system commands on the server. The original chain is blocked from 26.10.19-01; the remaining routes to the container objects are closed in 26.11.06-03 and later, where templates can no longer unwrap the request, response or session or call methods on servlet container, script interpreter, CDI, EL or JSP types.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 26.11.06-03 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 25.07.10 LTS v28
Event History
Frequently Asked Questions
Who can exploit this issue?
A back-end user who can edit templates, containers, or widgets can exploit it. The affected permission set does not require the CMS Administrator or Scripting Developer role.
What access does an attacker need to achieve code execution?
The attacker needs authenticated back-end access with permission to modify a template, container, or widget. They can then use servlet container objects exposed through request or session objects to create an embedded script interpreter and execute Java code or operating-system commands on the server.
Which releases address the issue?
The original exploit chain is blocked from 26.10.19-01. Remaining paths to servlet container objects are closed in 26.11.06-03 and later; affected releases include dotCMS through 26.11.03-01 and the 25.07 LTS line.