Skip to main content

xdocreport EUVDEUVD-2026-60545

| CVE-2026-38165 CRITICAL
Code Injection (CWE-94)
2026-08-17 mitre GHSA-7747-6373-9653
9.8
CVSS 3.1 · Vendor: mitre
View

Attack ChainAIDerived

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

  1. Access
    Identify endpoint rendering user input as Velocity template
  2. Delivery
    Submit crafted expression with reflective payload
  3. Exploit
    Default UberspectImpl resolves getClass().forName()
  4. Execution
    Reach java.lang.Runtime and spawn process
  5. Impact
    Execute 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – 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

n/a n/a

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

Vendor (mitre) PRIMARY 9.8 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 9.8 CRITICAL

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.

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

Primary rating from Vendor (mitre).

CVSS VectorVendor: mitre

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

Lifecycle Timeline

3
CVSS changed
Aug 18, 2026 - 12:22 NVD
9.8 (CRITICAL)
CVE Published
Aug 17, 2026 - 00:00 cve.org
UNKNOWN (no severity yet)
CVE Published
Aug 17, 2026 - 00:00 cve.org
CRITICAL 9.8

DescriptionCVE.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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.3%
Top 81% exploitable
Prevalence
Medium
established Java DOCX/ODT/PDF report library, moderate but not universal footprint
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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 CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
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
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

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

Attack Technique

Code Injection CRITICAL

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.

More in N A

View all
CVE-2024-51092 CRITICAL POC
9.1 May 08

LibreNMS before 24.10.0 allows a remote attacker to execute arbitrary code via OS command injection involving AboutContr

CVE-2025-15684 MEDIUM POC
5.5 Aug 12

Reachable assertion in Open5GS up to version 2.7.6 allows remote unauthenticated attackers to crash the Diameter CER han

CVE-2024-45257 HIGH POC
7.3 May 08

A Command Injection issue in the payload build page in BYOB (Build Your Own Botnet) 2.0 allows attackers to execute arbi

CVE-2025-15687 LOW POC
2.1 Aug 12

Denial of service in Open5GS 2.7.6 and earlier allows network-adjacent attackers with low-privilege Diameter Gx peer acc

CVE-2025-15686 LOW POC
2.1 Aug 12

Denial of service in Open5GS HSS (Home Subscriber Server) versions 2.7.0 through 2.7.6 is triggered remotely by manipula

CVE-2025-67888 HIGH POC
7.3 May 08

Remote command injection in Control Web Panel allows unauthenticated attackers to execute arbitrary OS commands as root

CVE-2024-53326 HIGH POC
7.3 May 08

LINQPad before 5.52.01 Pro edition is vulnerable to Unsafe Deserialization in LINQPad.AutoRefManager::PopulateFromCache(

CVE-2026-38360 CRITICAL POC
9.8 May 08

Remote code execution in dash-uploader (Python package for Plotly Dash) versions 0.1.0 through 0.7.0a2 allows unauthenti

CVE-2026-30623 CRITICAL POC
9.8 Jul 15

Command injection in LiteLLM 1.18.10 lets attackers who can configure MCP (Model Context Protocol) servers supply arbitr

CVE-2026-67917 CRITICAL POC
9.8 Aug 17

SQL injection in AzuraCast's backup restore flow (versions up to and including 0.23.7) lets an attacker achieve privileg

CVE-2026-75337 CRITICAL POC
9.8 Aug 27

Arbitrary file read in Yu AI Code Mother v4.3 lets anonymous, remote attackers retrieve files outside the intended previ

CVE-2026-31072 CRITICAL POC
9.8 May 19

Remote code execution in APScheduler (all versions through 3.10.x and 4.0.0a5) is achievable when applications deseriali

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