CVE-2025-12107

Server-Side Template Injection via Velocity Template Engine in Multiple WSO2 Products Allows Remote Code Execution

State
Published
Severity
8.4 High
Published
Feb 19, 2026
Updated
Sep 3, 2026
Reserved
Oct 23, 2025

Read the record on cve.org

Description

The Velocity template engine, utilized by the affected product, accepts and processes template syntax without sufficient sanitization or validation of user-controlled input. This allows an authenticated administrator to inject arbitrary template syntax.

Successful exploitation enables an attacker with administrative privileges to execute arbitrary template code on the server. This can lead to significant security consequences, including remote code execution, manipulation of data, and unauthorized access to sensitive information.

Scores

CVSSScoreVectorSource
3.18.4 HighCVSS:3.1/AV:A/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:HWSO2

Weaknesses

  • CWE-77 Improper Neutralization of Special Elements used in OS Commands ('OS Command Injection')
  • CWE-94 Improper Control of Generation of Code ('Code Injection')

Affected Products

ProductVersions
Identity ServerWSO2
  • before 5.11.0Not affected
  • 5.11.0 to before 5.11.0.299Affected
  • 6.0.0 to before 6.0.0.140Affected
  • 6.1.0 to before 6.1.0.122Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.