Description
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Starting in version 5.1-rc-1 and prior to versions 14.10.8 and 15.3-rc-1, any user who can edit their own user profile can execute arbitrary script macros including Groovy and Python macros that allow remote code execution including unrestricted read and write access to all wiki contents. This has been patched in XWiki 14.10.8 and 15.3-rc-1 by adding proper escaping. As a workaround, the patch can be manually applied to the document `Menu.UIExtensionSheet`; only three lines need to be changed.
Remediation
References
https://github.com/xwiki/xwiki-platform/commit/9e8f080094333dec63a8583229a3799208d773be
https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-v2rr-xw95-wcjx
https://jira.xwiki.org/browse/XWIKI-20746
Related Vulnerabilities
CVE-2019-16761 Vulnerability in npm package slp-validate
CVE-2023-41329 Vulnerability in maven package com.github.tomakehurst:wiremock-jre8
CVE-2023-32315 Vulnerability in maven package org.igniterealtime.openfire:xmppserver
CVE-2023-26031 Vulnerability in maven package org.apache.hadoop:hadoop-yarn-project
CVE-2023-41046 Vulnerability in maven package org.xwiki.platform:xwiki-platform-oldcore