Skip to main content

WSO2 Identity Server CVE-2025-12107

HIGH
Improper Neutralization of Special Elements Used in a Template Engine (CWE-1336)
2026-02-19 ed10eef1-636d-4fbe-9993-6890dfa878f8
7.2
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain admin credentials via phishing or credential compromise
  2. Delivery
    Authenticate to WSO2 admin console
  3. Exploit
    Navigate to Velocity-rendered template configuration surface
  4. Execution
    Inject SSTI payload using class-loading directives
  5. Persist
    Server renders template and executes JVM payload
  6. Impact
    Achieve 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – 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)
v1 Mar 12, 2026 - 22:03 CVSS 8.4

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

NVD PRIMARY 7.2 HIGH
AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 7.2 HIGH

Admin console is network-accessible with no interaction required, but full admin authentication is mandatory; successful SSTI enables full confidentiality, integrity, and availability impact.

3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
Analysis Updated
Sep 03, 2026 - 14:34 vuln.today
v2 - CVSS changed
CVSS changed
Sep 03, 2026 - 14:22 NVD
8.4 (HIGH) 7.2 (HIGH)
CVE Published
Feb 19, 2026 - 10:16 nvd
HIGH 8.4

DescriptionNVD

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.4%
Top 37% exploitable
Prevalence
Medium
enterprise IAM platform with significant adoption in APAC and WSO2 ecosystem
Data Quality
3 sources
Confidence: Low

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:wso2:identity_server:5.11.0:*:*:*:*:*:*:*

More in Ssti

View all
CVE-2024-23692 CRITICAL POC
9.8 May 31

Rejetto HTTP File Server, up to and including version 2.3m, is vulnerable to a template injection vulnerability. Rated c

CVE-2025-47916 CRITICAL POC
10.0 May 16

Invision Community 5.0.0 through 5.0.6 contains an unauthenticated remote code execution vulnerability in the template e

CVE-2024-6386 CRITICAL POC
9.9 Aug 21

Remote code execution in the WPML WordPress multilingual plugin (versions up to and including 4.6.12) allows Contributor

CVE-2026-75650 CRITICAL POC
10.0 Sep 07

Server-side template injection in Adobe Commerce, Adobe Commerce B2B, and Magento Open Source allows remote unauthentica

CVE-2026-39980 CRITICAL POC
9.1 Apr 09

Server-Side Template Injection in OpenCTI notifier templates allows privileged administrators with 'Manage customization

CVE-2026-97359 CRITICAL POC
10.0 Sep 24

Unauthenticated remote code execution in Rejetto HFS2 (HTTP File Server) through version 2.4.0 lets an attacker execute

CVE-2025-23211 CRITICAL POC
9.9 Jan 28

Tandoor Recipes is an application for managing recipes, planning meals, and building shopping lists. Rated critical seve

CVE-2024-32651 CRITICAL POC
10.0 Apr 26

changedetection.io is an open source web page change detection, website watcher, restock monitor and notification servic

CVE-2024-4040 CRITICAL POC
10.0 Apr 22

A server side template injection vulnerability in CrushFTP in all versions before 10.7.1 and 11.1.0 on all platforms all

CVE-2025-60355 CRITICAL POC
9.8 Oct 28

Server-side template injection in OneBlog v2.3.9 and earlier lets an attacker who can supply FreeMarker template content

CVE-2026-15734 CRITICAL POC
9.8 Aug 06

Remote code execution in WGDashboard 4.3.2 and earlier lets authenticated attackers inject Server-Side Template Injectio

CVE-2024-24724 CRITICAL POC
9.8 Apr 03

Gibbon through 26.0.00 allows /modules/School%20Admin/messengerSettings.php Server Side Template Injection leading to Re

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy