Critical, CVSS 9.9MavenPublished
org.xwiki.platform:xwiki-platform-office-importer vulnerable to arbitrary server side file writing from account through office converter
CVE-2023-37913 · GHSA-vcvr-v426-3m3m
- Affected
- Maven org.xwiki.platform:xwiki-platform-office-importer >= 3.5-milestone-1, < 14.10.8; >= 15.0-rc-1, < 15.3-rc-1
- Fixed in
- 14.10.815.3-rc-1· Vendor fix available
- Issue
- Impact 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. To reproduce the issue on versions since XWiki 14.0, execute the following steps: 1. Activate the office server 2. Upload an arbitrary file with the extension .doc, e.g., to your user profile (you can use a regular…
Recommended action: Upgrade to 15.3-rc-1 (pre-release) or 14.10.8 by release line, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.