---
id: CVE-2026-38165
title: >-
  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.
summary: >-
  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.
severity: critical
cvss: 9.8
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'
cwe:
  - CWE-94
published: '2026-08-17'
updated: '2026-09-09'
sourceUpdated: '2026-09-09T16:04:24.933'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-38165'
references:
  - url: 'https://github.com/AT190510-Cuong/CVE-2026-38165-SSTI-'
    label: cve@mitre.org
  - url: 'https://github.com/opensagres/xdocreport'
    label: cve@mitre.org
  - url: 'https://github.com/opensagres/xdocreport/pull/723'
    label: cve@mitre.org
  - url: 'https://hackmd.io/@cuongnh/H1sB1RIy-g'
    label: cve@mitre.org
  - url: 'https://hackmd.io/@cuongnh/SyPn-XF0ll'
    label: cve@mitre.org
  - url: 'https://github.com/AT190510-Cuong/CVE-2026-38165-SSTI-'
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
tags:
  - nvd
  - cve.org
  - exploit-available
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'yes'
  technicalImpact: total
  timestamp: '2026-08-18T12:08:49.690478Z'
ingestedAt: '2026-09-09T18:16:47.763Z'
epss: 0.00866
epssPercentile: 0.569
exploits:
  github: 1
  githubRepos:
    - 'https://github.com/AT190510-Cuong/CVE-2026-38165-SSTI-'
  checkedAt: '2026-09-25T08:20:56.251Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
