SecurityContext

CVE-2023-37913: XWiki Platform - Unrestricted File Upload

  • Cve: CVE-2023-37913
  • Name: XWiki Platform - Unrestricted File Upload
  • 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.
  • Impact: Attackers can write arbitrary files, potentially leading to remote code execution, data compromise, or system disruption.
  • Remediation: Update to version 14.10.8 or 15.3RC1 where the issue is fixed, or disable the office converter as a workaround.
  • Vulnerability type: unrestricted_file_upload
  • Vulnerability impact: file_system_write, remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.01357
  • Epss percentile: 0.72231
  • Assignee: [email protected]
  • Published at: 2023-10-25T18:17:28Z
  • Age in days: 1126
  • Modified at: 2026-06-17T06:08:53Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-37913
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

Public exploits

UrlSourceAdded date
https://jira.xwiki.org/browse/XWIKI-20715nvd2023-10-25

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/xwiki/xwiki-platform/commit/45d182a4141ff22f3ff289cf71e4669bdc714544Patch
https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-vcvr-v426-3m3mPatch, Vendor Advisory
https://jira.xwiki.org/browse/XWIKI-20715Exploit, Issue Tracking, Patch, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
xwiki:xwiki>= 15.0, < 15.3; >= 3.5, < 14.10.8nonvd/v1/products/xwiki/xwiki

Projects

RepositoryLink kindsIndexedUrl
xwiki/xwiki-platformcommit, fix, package, security_advisoryyes/v1/repositories/xwiki/xwiki-platform

Index

  • Repositories: 2
  • Repositories high signal: 1
  • Checked, none or zero: packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2023-10-25
  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 142594
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports