Description
In XWiki before version 12.5 and 11.10.6, any user with SCRIPT right (EDIT right before XWiki 7.4) can gain access to the application server Servlet context which contains tools allowing to instantiate arbitrary Java objects and invoke methods that may lead to arbitrary code execution. This is patched in XWiki 12.5 and XWiki 11.10.6.
Remediation
References
https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-5hv6-mh8q-q9v8
https://jira.xwiki.org/browse/XWIKI-17423
https://jira.xwiki.org/browse/XWIKI-17141
Related Vulnerabilities
CVE-2021-21254 Vulnerability in npm package @ckeditor/ckeditor5-markdown-gfm
CVE-2016-10663 Vulnerability in npm package wixtoolset
CVE-2021-43841 Vulnerability in maven package org.xwiki.platform:xwiki-platform-oldcore
CVE-2020-26870 Vulnerability in maven package org.webjars.npm:dompurify
CVE-2017-3156 Vulnerability in maven package org.apache.cxf:cxf-rt-rs-security-jose