WSO2 Identity Server
CVE-2025-12107
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain admin credentials via phishing or credential compromise
-
DeliveryAuthenticate to WSO2 admin console
-
ExploitNavigate to Velocity-rendered template configuration surface
-
ExecutionInject SSTI payload using class-loading directives
-
PersistServer renders template and executes JVM payload
-
ImpactAchieve arbitrary OS command execution as server process
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V1 - Encoding and Sanitization Template injection prevention
|
| Exploitation Conditions | Exploitation requires a valid WSO2 Identity Server administrator account - confirmed by CVSS PR:H. The attacker must authenticate to the administrative interface and access a feature that passes admin-supplied input to the Velocity template engine without directive sanitization, such as email notification template configuration. No non-default configuration is required beyond possessing admin credentials. Exploitation is bounded by: (1) the hard requirement for administrator authentication, ruling out anonymous or low-privileged users entirely; (2) network reachability of the admin console, which is commonly restricted to internal or VPN-only networks in production deployments. Organizations that enforce MFA on admin accounts and restrict console access to management networks materially reduce real-world exploitability beyond what the raw CVSS score suggests. |
| Impact | The CVSS 7.2 score with vector AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H accurately captures the central constraint: exploitation requires full administrator credentials. An adversary who already controls an admin account has substantial alternative impact paths, making this vulnerability most relevant to insider-threat or post-credential-compromise escalation scenarios rather than opportunistic external attack. The EPSS score of 0.44% (63rd percentile) reflects moderate relative interest against the broader CVE population but a low absolute probability of exploitation in the near term. The absence of a CISA KEV listing and the lack of confirmed public exploit code further reduce operational urgency. The C:H/I:H/A:H impact triad is realistic once template injection is achieved, as Velocity SSTI to RCE is a well-understood technique with published generic payloads. The 'Authentication Bypass' tag appearing in the source metadata is inconsistent with the PR:H requirement and should be disregarded as a mislabel. |
| Exploit ScenarioDerived | An attacker who has compromised an administrator account - through phishing, credential stuffing against a reused password, or insider access - logs into the WSO2 Identity Server management console and navigates to a Velocity-rendered template configuration surface such as email notification templates. The attacker injects a Velocity SSTI payload using reflection-based class-loading (e.g., invoking Runtime.exec() via ClassTool or #set with ClassLoader calls) into a template field. When the server renders or previews the template, the payload executes arbitrary OS commands in the context of the Identity Server process, granting full system access. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Sep 03, 2026
Server-side template injection via Apache Velocity in WSO2 Identity Server 5.11.0 enables an authenticated administrator to execute arbitrary code on the underlying server. The vulnerability stems from insufficient sandboxing of user-controlled input passed to the Velocity rendering engine in admin-accessible surfaces, allowing template directives to invoke JVM reflection and reach OS-level execution. No public exploit code has been identified at time of analysis; EPSS of 0.44% at the 63rd percentile indicates moderate relative interest but low absolute near-term exploitation probability.
Earlier versions of this analysis (1)
Identity Server versions up to 5.11.0 contains a vulnerability that allows attackers to a malicious actor with admin privilege to inject and execute arbitrary template (CVSS 8.4).
RemediationAI
Consult vendor advisory WSO2-2025-4517 at https://security.docs.wso2.com/en/latest/security-announcements/security-advisories/2026/WSO2-2025-4517/ for the exact patched release version and upgrade instructions - no specific fix version number is independently confirmed in the available data. As a compensating control, restrict admin console access to trusted internal networks or VPN-only segments via firewall rules, reducing the network attack surface despite the existing PR:H requirement. Enforce multi-factor authentication on all administrator accounts to reduce risk from credential-compromise scenarios, which represent the primary realistic attack path. Audit administrator account assignments and apply least-privilege principles to limit the number of accounts that could reach the vulnerable template configuration surfaces. Monitoring admin console activity for unusual template modifications provides detection coverage while a patch is pending.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
WSO2 Identity Server is an enterprise open-source identity and access management platform widely deployed for SSO, federation, and API security. The affected version (5.11.0, CPE: cpe:2.3:a:wso2:identity_server:5.11.0:*:*:*:*:*:*:*) uses Apache Velocity as a server-side template engine, typically for rendering email notification templates and certain administrative views. CWE-1336 (Improper Neutralization of Special Elements Used in a Template Engine) identifies the root cause: the application fails to sanitize or sandbox Velocity directives submitted by administrators, permitting constructs such as #set, #evaluate, or class-loading chains that escape the intended rendering context and execute arbitrary JVM code. Apache Velocity's permissive default execution model - which allows reflection-based class instantiation - is a well-documented SSTI escalation path to OS command execution.
Know when Ssti gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Admin console is network-accessible with no interaction required, but full admin authentication is mandatory; successful SSTI enables full confidentiality, integrity, and availability impact.
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
3DescriptionNVD
Due to the use of a vulnerable third-party Velocity template engine, a malicious actor with admin privilege may inject and execute arbitrary template syntax within server-side templates.
Successful exploitation of this vulnerability could allow a malicious actor with admin privilege to inject and execute arbitrary template code on the server, potentially leading to remote code execution, data manipulation, or unauthorized access to sensitive information.
Executive ViewAI
WSO2 Identity Server 5.11.0 contains a server-side template injection vulnerability allowing authenticated administrators to execute arbitrary code on the authentication infrastructure. Identity platform compromise would enable unauthorized access to dependent applications, credential theft, and policy manipulation across systems relying on centralized authentication. No public exploit has been identified at this time, but the lack of a vendor patch creates sustained risk for organizations using this version.
Restrict administrative console access via network firewall rules; enforce multi-factor authentication on all admin accounts; deploy WAF introspection rules blocking template injection patterns (${}, #foreach, #set directives); monitor logs for Velocity processing errors and unexpected code execution; maintain current configuration backups; request vendor workaround guidance pending patch release.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)NVD
Rejetto HTTP File Server, up to and including version 2.3m, is vulnerable to a template injection vulnerability. Rated c
Invision Community 5.0.0 through 5.0.6 contains an unauthenticated remote code execution vulnerability in the template e
Remote code execution in the WPML WordPress multilingual plugin (versions up to and including 4.6.12) allows Contributor
Server-side template injection in Adobe Commerce, Adobe Commerce B2B, and Magento Open Source allows remote unauthentica
Server-Side Template Injection in OpenCTI notifier templates allows privileged administrators with 'Manage customization
Unauthenticated remote code execution in Rejetto HFS2 (HTTP File Server) through version 2.4.0 lets an attacker execute
Tandoor Recipes is an application for managing recipes, planning meals, and building shopping lists. Rated critical seve
changedetection.io is an open source web page change detection, website watcher, restock monitor and notification servic
A server side template injection vulnerability in CrushFTP in all versions before 10.7.1 and 11.1.0 on all platforms all
Server-side template injection in OneBlog v2.3.9 and earlier lets an attacker who can supply FreeMarker template content
Remote code execution in WGDashboard 4.3.2 and earlier lets authenticated attackers inject Server-Side Template Injectio
Gibbon through 26.0.00 allows /modules/School%20Admin/messengerSettings.php Server Side Template Injection leading to Re
NVD
CVE.org
EPSS
VulDB
GitHub PoC
Exploit-DB