Description
XWiki Commons are technical libraries common to several other top level XWiki projects. Any user with view rights on commonly accessible documents including the legacy notification activity macro can execute arbitrary Groovy, Python or Velocity code in XWiki leading to full access to the XWiki installation. The root cause is improper escaping of the macro parameters of the legacy notification activity macro. This macro is installed by default in XWiki. The vulnerability can be exploited via every wiki page that is editable including the user's profile, but also with just view rights using the HTMLConverter that is part of the CKEditor integration which is bundled with XWiki. The vulnerability has been patched in XWiki 13.10.11, 14.4.7 and 14.10.
Remediation
References
https://github.com/xwiki/xwiki-platform/commit/94392490884635c028199275db059a4f471e57bc
https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-9pc2-x9qf-7j2q
https://jira.xwiki.org/browse/XWIKI-20258
Related Vulnerabilities
CVE-2016-3092 Vulnerability in maven package org.apache.tomcat:tomcat-util
CVE-2021-27906 Vulnerability in maven package org.apache.pdfbox:pdfbox
CVE-2023-50730 Vulnerability in maven package org.typelevel:grackle-core_native0.4_2.13
CVE-2022-22965 Vulnerability in maven package org.springframework:spring-webmvc
CVE-2022-31069 Vulnerability in npm package @ffdc/nestjs-proxy