The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-12107

CVE-2025-12107: WSO2 Identity Server RCE Vulnerability

CVE-2025-12107 is a remote code execution vulnerability in WSO2 Identity Server caused by a vulnerable Velocity template engine. Admins can inject malicious code leading to RCE and data access. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: February 20, 2026

CVE-2025-12107 Overview

CVE-2025-12107 is a Server-Side Template Injection (SSTI) vulnerability affecting WSO2 Identity Server. The vulnerability exists due to the use of a vulnerable third-party Apache Velocity template engine, which allows a malicious actor with administrative privileges to inject and execute arbitrary template syntax within server-side templates.

Successful exploitation of this vulnerability could enable an attacker with admin access to inject and execute arbitrary template code on the server, potentially leading to remote code execution, data manipulation, or unauthorized access to sensitive information stored within the identity management platform.

Critical Impact

Authenticated administrators can achieve remote code execution through Velocity template injection, compromising the entire identity management infrastructure and potentially accessing sensitive user credentials and authentication data.

Affected Products

  • WSO2 Identity Server 5.11.0
  • WSO2 Identity Server (check vendor advisory for complete version list)

Discovery Timeline

  • 2026-02-19 - CVE CVE-2025-12107 published to NVD
  • 2026-02-19 - Last updated in NVD database

Technical Details for CVE-2025-12107

Vulnerability Analysis

This vulnerability is classified under CWE-1336 (Improper Neutralization of Special Elements Used in a Template Engine). The flaw resides in WSO2 Identity Server's implementation of the Apache Velocity template engine, which fails to properly sanitize user-controlled input before processing it within server-side templates.

The vulnerability requires administrative privileges to exploit, which limits the attack surface but significantly amplifies the potential impact once access is obtained. An attacker with admin credentials can craft malicious Velocity Template Language (VTL) directives that escape the intended template context and execute arbitrary Java code on the underlying server.

The network-accessible nature of this vulnerability means that any authenticated administrator with network access to the WSO2 Identity Server management console can potentially exploit this flaw. Given that identity servers typically handle authentication tokens, user credentials, and access control policies, successful exploitation poses severe risks to organizational security.

Root Cause

The root cause of this vulnerability lies in the improper neutralization of special template elements before they are processed by the Velocity template engine. When user-supplied input containing Velocity directives (such as #set, #foreach, or direct method invocations via $object.method()) is incorporated into templates without adequate sanitization, attackers can manipulate the template processing logic.

The Velocity engine provides access to Java objects and methods through its context, which can be abused to instantiate arbitrary classes, invoke system commands, or access sensitive server resources.

Attack Vector

The attack vector for CVE-2025-12107 is network-based and requires authenticated administrative access to the WSO2 Identity Server. An attacker would need to:

  1. Obtain valid administrative credentials through credential theft, social engineering, or exploitation of other vulnerabilities
  2. Access administrative interfaces that accept template-related input
  3. Inject malicious Velocity template syntax designed to achieve code execution
  4. The template engine processes the malicious input, executing arbitrary commands with the privileges of the WSO2 Identity Server process

Common Velocity template injection payloads leverage reflection APIs to instantiate java.lang.Runtime objects for command execution or access file system resources. The specific injection points depend on which administrative features process user input through the Velocity engine.

Detection Methods for CVE-2025-12107

Indicators of Compromise

  • Unusual administrative login patterns or access from unexpected IP addresses
  • Anomalous template-related requests containing Velocity syntax characters (#, $, {})
  • Server process spawning unexpected child processes or network connections
  • Unexpected file system modifications in WSO2 Identity Server directories
  • Log entries showing template parsing errors or unusual object method invocations

Detection Strategies

  • Monitor administrative authentication logs for suspicious access patterns
  • Implement web application firewall (WAF) rules to detect common SSTI payloads in HTTP requests
  • Deploy endpoint detection solutions to identify anomalous process behavior from the WSO2 service
  • Analyze HTTP request payloads for Velocity-specific syntax patterns in administrative endpoints
  • Review audit logs for template modification activities by administrative users

Monitoring Recommendations

  • Enable verbose logging for the WSO2 Identity Server administration console
  • Configure SIEM alerts for template injection signature patterns in application logs
  • Monitor system calls and process creation events from the Java process running WSO2
  • Track outbound network connections from the identity server for potential reverse shell activity
  • Implement file integrity monitoring for critical WSO2 configuration and template files

How to Mitigate CVE-2025-12107

Immediate Actions Required

  • Review and restrict administrative access to the WSO2 Identity Server console
  • Audit existing administrative accounts and remove unnecessary privileged access
  • Implement network segmentation to limit administrative access to trusted networks only
  • Enable multi-factor authentication for all administrative accounts
  • Review audit logs for any suspicious administrative activity that may indicate prior exploitation

Patch Information

WSO2 has released a security advisory addressing this vulnerability. Organizations should consult the WSO2 Security Advisory WSO2-2025-4517 for specific patch versions and upgrade instructions.

Administrators should prioritize applying the official patch as it addresses the underlying template injection vulnerability in the Velocity engine integration.

Workarounds

  • Restrict administrative console access to a dedicated management network segment
  • Implement strict IP allowlisting for administrative interfaces
  • Deploy a web application firewall with SSTI detection rules in front of the identity server
  • Consider temporarily disabling features that utilize template processing if operationally feasible
  • Enable enhanced logging and monitoring while awaiting patch deployment
bash
# Example: Restrict administrative access via reverse proxy (nginx)
# Add to server block handling admin console
location /admin {
    allow 10.0.1.0/24;  # Management network only
    deny all;
    proxy_pass http://wso2_backend;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechWso2 Identity Server

  • SeverityHIGH

  • CVSS Score7.2

  • EPSS Probability0.30%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-1336
  • Vendor Resources
  • WSO2 Security Advisory WSO2-2025-4517
  • Latest CVEs
  • CVE-2025-9185: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9184: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9180: Mozilla Firefox Auth Bypass Vulnerability

  • CVE-2025-8030: Mozilla Firefox RCE Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English