Description
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.
Published: 2026-08-17
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A Server‑Side Template Injection vulnerability in the Velocity template engine configuration of the xdocreport library, versions 0.9.2 through 2.2.0, allows an attacker to supply a malicious expression that is evaluated by the engine and executed on the host system. This flaw, a code‑injection weakness (CWE‑94), can compromise confidentiality, integrity, and availability.

Affected Systems

Affected systems are applications that incorporate xdocreport v0.9.2‑v2.2.0 and use the Velocity engine with unrestricted expression evaluation. No specific vendor or product name is listed in the CNA data, and later releases beyond 2.2.0 are assumed to contain the fix.

Risk and Exploitability

With a CVSS score of 9.8 and an EPSS below 1 %, this vulnerability is critical but currently has a low probability of exploitation. It is not listed in the CISA KEV catalog. Exploitation requires processing a crafted expression by the Velocity engine, thus necessitating the application to load untrusted template data. The impact is arbitrary code execution on the host.

Generated by OpenCVE AI on August 18, 2026 at 19:08 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade xdocreport to a version newer than 2.2.0 to obtain the patched code.
  • If an upgrade is not possible, adjust the Velocity configuration to disallow arbitrary expression evaluation—disable the FunctionMapper and remove dynamic class references in the Velocity properties.
  • Ensure that templates originate from trusted sources, validate inputs, and, if feasible, sandbox the rendering context to prevent injection of malicious expressions.

Generated by OpenCVE AI on August 18, 2026 at 19:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 18 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Title Server‑Side Template Injection in xdocreport Velocity Engine Allows Arbitrary Code Execution

Tue, 18 Aug 2026 12:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-94
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 18 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
First Time appeared Opensagres
Opensagres xdocreport
Vendors & Products Opensagres
Opensagres xdocreport

Mon, 17 Aug 2026 22:45:00 +0000

Type Values Removed Values Added
Description 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.
References

Subscriptions

Opensagres Xdocreport
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-08-18T12:08:57.532Z

Reserved: 2026-04-06T00:00:00.000Z

Link: CVE-2026-38165

cve-icon Vulnrichment

Updated: 2026-08-18T12:08:42.463Z

cve-icon NVD

Status : Received

Published: 2026-08-17T23:16:51.230

Modified: 2026-08-18T12:18:30.817

Link: CVE-2026-38165

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T19:15:03Z

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')