Horizon Alert
Summary of the vulnerability and why it matters
A vulnerability exists in the Velocity view tool within dotCMS, specifically in its XSLT transformer. This allows authenticated users with specific scripting privileges to execute arbitrary code on the server by calling Java methods through an XSLT stylesheet. The exploitability depends on the Java runtime version and configuration, with potential impact on servers running Java 21 or earlier unless specific security settings are altered.
- Code execution risk from internal scripting.
- Confirms need for internal access control review.
- Verify relevance and exposure of scripting tools.
Attack Path
How an attacker could exploit the issue
An attacker could execute arbitrary code on the server by crafting a Velocity-enabled XSLT stylesheet. This requires the attacker to first gain access to the dotCMS application with the specific "Scripting Developer" role, which allows authoring Velocity code. By embedding malicious Java calls within an XSLT stylesheet, the attacker can exploit the transformer's missing secure processing to run commands on the server.
- Authenticated access required.
- XSLT transformer calls Java methods.
- Arbitrary code execution on server.
Live Threat
Current exploitation, exposure, and threat context
A back-end user with the Scripting Developer role could execute arbitrary code on the server as the dotCMS service user. This is possible when the system runs on specific Java versions or when a JVM is configured to allow extension functions, enabling the user to call Java methods from an XSLT stylesheet.
- Server-side code execution.
- Exploiting XSLT transformation feature.
- Compromised service user access.
Operational Fix
Recommended remediation, mitigation, and detection steps
This vulnerability impacts dotCMS installations where users with the Scripting Developer role can execute arbitrary code. The first practical step is to identify all dotCMS instances, confirm their reachability and business criticality, and then identify the accountable owner for each instance to plan remediation.
- Identify dotCMS instance owners.
- Verify Java version and configuration.
- Plan vendor-coordinated updates.