CVE-2023-37913 org.xwiki.platform:xwiki-platform-office-importer vulnerable to arbitrary server side file writing from account through office converter
Attackers can write arbitrary files to the server via crafted filenames in the office converter, potentially leading to remote code execution.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-37913?
CVE-2023-37913 is a critical path traversal vulnerability in Xwiki Xwiki, published on 25 Oct 2023. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Starting in version 3.5-milestone-1 and prior to versions 14.10.8 and 15.3-rc-1, triggering the office converter with a specially crafted file name allows writing the attachment's content to an attacker-controlled location on the server as long as the Java process has write access to that location. In particular in the combination with attachment moving, a feature introduced in XWiki 14.0, this is easy to reproduce but it also possible to reproduce in versions as old as XWiki 3.5 by uploading the attachment through the REST API which doesn't remove `/` or `\` from the filename. As the mime type of the attachment doesn't matter for the exploitation, this could e.g., be used to replace the `jar`-file of an extension which would allow executing arbitrary Java code and thus impact the confidentiality, integrity and availability of the XWiki installation. This vulnerability has been patched in XWiki 14.10.8 and 15.3RC1. There are no known workarounds apart from disabling the office converter.
Which versions are affected by CVE-2023-37913?
4 open source packages ship an affected version, including org.xwiki.platform:xwiki-platform-office-importer. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
org.xwiki.platform:xwiki-platform-office-importer Maven | From 15.0-rc-1 | 15.3-rc-1 |
org.xwiki.platform:xwiki-platform-office-importer Maven | From 15.0-rc-1 | 15.3-rc-1 |
org.xwiki.platform:xwiki-platform-office-importer Maven | From 3.5-milestone-1 | 14.10.8 |
org.xwiki.platform:xwiki-platform-office-importer Maven | From 3.5-milestone-1 | 14.10.8 |
Products include Xwiki Xwiki.
How do I fix CVE-2023-37913?
Upgrade org.xwiki.platform:xwiki-platform-office-importer to a fixed version for your release line: 15.3-rc-1 or 14.10.8.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2023-37913 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-37913 exists.
Other vulnerabilities in Xwiki Xwiki
- CVE-2025-24893 XWiki Platform Eval Injection
- CVE-2025-53836 XWiki Rendering is vulnerable to RCE attacks when processing nested macros
- CVE-2024-55662 XWiki allows remote code execution through the extension sheet
- CVE-2024-55877 XWiki allows remote code execution from account through macro descriptions and XWiki.XWikiSyntaxMacrosList
- CVE-2024-37901 XWiki Platform vulnerable to remote code execution from account via SearchSuggestConfigSheet
Sources
Also known as GHSA-vcvr-v426-3m3m.