Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify endpoint rendering user input as Velocity template
-
DeliverySubmit crafted expression with reflective payload
-
ExploitDefault UberspectImpl resolves getClass().forName()
-
ExecutionReach java.lang.Runtime and spawn process
-
ImpactExecute arbitrary commands on server
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that attacker-controlled content be rendered as a Velocity template by an application using xdocreport 0.9.2-2.2.0 with the default (unmodified) introspector configuration - i.e., the app must expose a path where user input reaches the Velocity engine as template source or an evaluated expression. The critical limiting factor is template control: if templates are exclusively developer-authored and users only supply data bound to a secure context, direct SSTI does not occur. The vulnerability is default-configuration (the insecure UberspectImpl is shipped by default), so no special feature flag must be enabled; conversely, any deployment that has already set SecureUberspector or restricted introspection is not affected. No authentication or user interaction is required at the library level (PR:N/UI:N per CVSS), but network reachability of the template-processing endpoint is assumed. |
| Impact | The supplied CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N, C:H/I:H/A:H, score 9.8) treats this as trivially exploitable unauthenticated RCE, which holds ONLY when the embedding application feeds attacker-controlled content into a Velocity template. Because xdocreport is a library rather than a standalone network service, real exploitability is application-dependent: deployments where templates are entirely developer-authored are not directly exposed, while those accepting user-supplied or user-influenced templates are at critical risk. No EPSS score and no SSVC decision data were provided, so automatability and probability signals cannot be weighed. It is NOT in CISA KEV (no confirmed active exploitation), but publicly available exploit code exists, raising the practical threat above a theoretical high-CVSS finding. Net assessment: a genuine high priority for any stack that renders untrusted templates through xdocreport, but the raw 9.8 overstates risk for closed template deployments - verify how templates reach the engine before triaging. |
| Exploit ScenarioDerived | An application uses xdocreport to generate reports from a template whose fields or body incorporate user-supplied input. An attacker submits a value containing a Velocity payload such as $x.getClass().forName("java.lang.Runtime")... which the default UberspectImpl introspector evaluates, executing OS commands on the server. A public PoC repository and HackMD write-ups demonstrate the technique, lowering the skill needed to weaponize it. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 18, 2026
Remote code execution in opensagres xdocreport (versions 0.9.2 through 2.2.0) arises because the bundled Velocity template engine ships with the insecure default UberspectImpl introspector, letting a crafted Velocity expression reach reflective JDK classes and run arbitrary code. Any application that renders untrusted template content through xdocreport's Velocity engine is exposed to full server compromise. Publicly available exploit code exists (a dedicated PoC GitHub repository and two HackMD write-ups), though the flaw is not listed in CISA KEV and no EPSS score was supplied.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed - apply the change in https://github.com/opensagres/xdocreport/pull/723, which sets runtime.introspector.uberspect to org.apache.velocity.util.introspection.SecureUberspector by default and restricts reflective classes/packages; upgrade to a release built after v2.2.0 that incorporates PR #723 once published, or build from the patched source. Until a tagged release is available, apply the same hardening in your own application by explicitly setting runtime.introspector.uberspect=org.apache.velocity.util.introspection.SecureUberspector plus introspector.restrict.packages=java.lang.reflect and the class deny-list (java.lang.Runtime, Process, System, ClassLoader, Class, Thread, etc.) in the Velocity properties you pass to xdocreport - this preserves normal POJO/property access while blocking the reflective escape (side effect: templates that legitimately call restricted JDK reflection will break). As a deployment control, treat all template content as untrusted: do not allow end users to upload or influence Velocity template sources, and validate/sandbox any dynamic template input. See VulDB https://vuldb.com/vuln/391515 for tracking.
Affected VersionsENISA
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
xdocreport is a Java library for generating reports (DOCX/ODT/PDF) from templates, and its fr.opensagres.xdocreport.template.velocity module wraps Apache Velocity. The root cause (CWE-94, Code Injection) is a configuration weakness: xdocreport-velocity.properties set 'introspector.uberspect.class = org.apache.velocity.util.introspection.UberspectImpl', the permissive default introspector that allows templates to call getClass().forName() and reach java.lang.Runtime/Process/ClassLoader via reflection. Server-Side Template Injection occurs when attacker-controlled data is evaluated as a Velocity expression; without a secure introspector, this converts into arbitrary code execution. The fix (PR #723) switches the default to org.apache.velocity.util.introspection.SecureUberspector and adds introspector.restrict.packages (java.lang.reflect) and an explicit restrict.classes deny-list (Class, ClassLoader, Runtime, Process, System, Thread, etc.), with a regression test confirming Class.forName() is blocked. The CPE provided is a placeholder ('n/a'), so exact machine-readable product identification is unavailable.
Know when N A 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:N/UI:N/S:U/C:H/I:H/A:H
When the app renders untrusted content as a Velocity template, exploitation is unauthenticated, network-reachable, low-complexity RCE with full CIA loss; the untrusted-template requirement is an application deployment condition, not a base metric.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
3DescriptionCVE.org
A Server-Side Template Injection (SSTI) vulnerability in the Velocity template engine configuration of xdocreport v0.9.2 to v2.2.0 allows attackers to execute arbitrary code via a crafted expression.
Executive ViewAI
OpenSagres XDocReport versions 0.9.2-2.2.0 contain a critical remote code execution vulnerability that enables attackers to fully compromise application servers when processing untrusted document templates. Organizations using this library face immediate risk of server compromise, data theft, and operational disruption, with no available vendor patch to mitigate the threat. Publicly available exploit code exists, making this an urgent priority for any organization dependent on affected versions.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Prohibit rendering of untrusted or user-supplied content through XDocReport; (2) Implement strict input validation and sanitization of all template sources before processing; (3) Restrict network access to affected systems, particularly internet-facing exposure; (4) Disable Velocity template processing capabilities if not essential to business operations; (5) Monitor application logs for suspicious class loading activity and reflection-based API calls; (6) Segment affected systems from critical business infrastructure to limit lateral movement potential.
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
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr
Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han
A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi
Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc
Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula
Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root
LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(
Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti
Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr
SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg
Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ
Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali
EUVD-2026-60545
GHSA-7747-6373-9653
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB