CVE-2023-37913 org.xwiki.platform:xwiki-platform-office-importer vulnerable to arbitrary server side file writing from account through office converter

Critical 10.0 Published Updated

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.

Weakness: CWE-23, CWE-22

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.

PackageAffectedFixed in
org.xwiki.platform:xwiki-platform-office-importer MavenFrom 15.0-rc-115.3-rc-1
org.xwiki.platform:xwiki-platform-office-importer MavenFrom 15.0-rc-115.3-rc-1
org.xwiki.platform:xwiki-platform-office-importer MavenFrom 3.5-milestone-114.10.8
org.xwiki.platform:xwiki-platform-office-importer MavenFrom 3.5-milestone-114.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.

All Xwiki Xwiki vulnerabilities

Sources

Also known as GHSA-vcvr-v426-3m3m.

Is CVE-2023-37913 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free