# CVE-2024-37301: document-merge-service vulnerable to Remote Code Execution via Server-Side Template Injection

- Severity: High 7.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.04%, higher than 64% of CVEs (2026-12-01)
- Published: 2024-06-11T18:34:38.374Z
- Modified: 2026-07-07T17:56:45.564Z
- Also known as: GHSA-v5gf-r78h-55q6, PYSEC-2026-1314
- Weaknesses: CWE-1336
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- adfinis document-merge-service: < 6.5.2
- adfinis document_merge_service: up to 6.5.1
- document-merge-service (PyPI): before 6.5.2

## Every score

- GitHub_M: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/adfinis/document-merge-service/security/advisories/GHSA-v5gf-r78h-55q6> (web)
- <https://github.com/adfinis/document-merge-service/commit/a1edd39d33d1bdf75c31ea01c317547be90ca074> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-37301> (advisory)
- <https://github.com/adfinis/document-merge-service> (package)
- <https://pypi.org/project/document-merge-service> (package)
- <https://github.com/advisories/GHSA-v5gf-r78h-55q6> (advisory)

## Sources

- CVE List: [CVE-2024-37301](https://www.cve.org/CVERecord?id=CVE-2024-37301), CVE Terms of Use, modified 2026-02-04
- GitHub Advisory Database: [GHSA-v5gf-r78h-55q6](https://github.com/advisories/GHSA-v5gf-r78h-55q6), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2024-37301](https://nvd.nist.gov/vuln/detail/CVE-2024-37301), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1314](https://osv.dev/vulnerability/PYSEC-2026-1314), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-37301 · Whole record: https://cve.day/CVE-2024-37301.json · Rebuilt by cve.day 2026-11-25T22:58:41.720Z
