Description
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In affected versions of XWiki Platform (and only those with the Ratings API installed), the Rating Script Service expose an API to perform SQL requests without escaping the from and where search arguments. This might lead to an SQL script injection quite easily for any user having Script rights on XWiki. The problem has been patched in XWiki 12.9RC1. The only workaround besides upgrading XWiki would be to uninstall the Ratings API in XWiki from the Extension Manager.
Remediation
References
https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-79rg-7mv3-jrr5
https://jira.xwiki.org/browse/XWIKI-17662
Related Vulnerabilities
CVE-2022-43427 Vulnerability in maven package com.compuware.jenkins:compuware-topaz-for-total-test
CVE-2022-41252 Vulnerability in maven package org.jenkins-ci.plugins:cons3rt
CVE-2017-7680 Vulnerability in maven package org.apache.openmeetings:openmeetings-server
CVE-2019-10744 Vulnerability in npm package @sailshq/lodash
CVE-2020-2221 Vulnerability in maven package org.jenkins-ci.main:jenkins-core