Description
LogicalDOC Community Edition through 9.3 contains a code injection vulnerability that allows authenticated users to execute OS commands by submitting Velocity templates in DocumentService.sendAsEmail subject or message fields. Attackers can invoke SystemTool exec methods or ClassTool, bypassing the forbidRuntimeUsage denylist, to run commands with LogicalDOC process privileges.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| LogicalDOC | LogicalDOC Community Edition | ≤ 9.3 | — |
References
- https://github.com/logicaldoc/community/discussions/119 technical-description
- Patch Commit patch
- https://github.com/logicaldoc/community/blob/9.3/logicaldoc-webapp/src/main/java/com/logicaldoc/web/service/DocumentServiceImpl.java#L1543 technical-description
- https://github.com/logicaldoc/community/blob/9.3/logicaldoc-core/src/main/java/com/logicaldoc/core/automation/SystemTool.java#L59 technical-description
- https://github.com/logicaldoc/community product
- VulnCheck Advisory: LogicalDOC Community Edition through 9.3 Code Injection via Velocity sendAsEmail Template third-party-advisory