Adfinis document-merge-service
Document Merge Service vulnerable to RCE via SSTI (xlsx tempaltes)
Document Merge Service is a document template merge service providing an API to manage templates and merge them with given data. Prior to version 9.1.0, 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. The vulnerability is limited to XLSX templates, were the xltpl library uses a npn-sandboxed Jinja environment for the processing of the template. This issue has been patched in version 9.1.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 9.1.0
Fixed in 9.1.0
Mitigation
Upgrade document-merge-service to 9.1.0 or later.
References
- Vendor advisory github.com/adfinis/document-merge-service/secu…
- Release notes github.com/adfinis/document-merge-service/rele…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.