{"id":"CVE-2024-37301","published":"2024-06-11T18:34:38Z","modified":"2026-02-04T19:40:11Z","title":"document-merge-service vulnerable to Remote Code Execution via Server-Side Template Injection","vendor":"adfinis","product":"document-merge-service","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0104,"percentile":0.64799,"provenance":"source"},"cwes":[{"id":"CWE-1336","name":"Improper Neutralization of Special Elements Used in a Template Engine"}],"references":[{"url":"https://github.com/adfinis/document-merge-service/security/advisories/GHSA-v5gf-r78h-55q6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/adfinis/document-merge-service/commit/a1edd39d33d1bdf75c31ea01c317547be90ca074","tags":["x_refsource_MISC"]}],"priority":{"score":18.0,"factors":[{"name":"EPSS percentile","points":12.96},{"name":"CVSS severity","points":5.04}]},"vendorSlug":"adfinis","affectedVersions":[{"vendor":"adfinis","product":"document-merge-service","versions":["< 6.5.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-06-11T20:18:28.016202Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"document-merge-service","vulnerableRanges":["<6.5.2"],"patched":["6.5.2"],"from":["GHSA-v5gf-r78h-55q6","PYSEC-2026-1314"],"provenance":"source"}],"summary":{"text":"The Document Merge Service product from adfinis contains a server-side template injection flaw in its template-merging component, which is the part that renders templates with supplied data. An attacker with network access and high-privilege credentials can inject template expressions that execute code on the server, which can lead to full takeover of the affected system when the service runs as root.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:55Z"},"euvd":{"id":"EUVD-2024-2170","exploited":false,"provenance":"source"}}