CVE-2021-21380: Rating Script Service expose XWiki to SQL injection
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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2021-21380?
CVE-2021-21380 is rated as a critical vulnerability due to its potential to expose SQL requests without proper escaping.
How do I fix CVE-2021-21380?
To remediate CVE-2021-21380, upgrade your XWiki Platform to a version greater than 12.8 or apply available patches.
Which versions of XWiki are affected by CVE-2021-21380?
CVE-2021-21380 affects XWiki Platform versions from 6.4.1 to 12.8, including other specific milestones and release candidates of 6.4.
What are the potential impacts of CVE-2021-21380?
Exploitation of CVE-2021-21380 can lead to unauthorized access and manipulation of the database through unescaped SQL queries.
Does CVE-2021-21380 affect all XWiki installations?
No, CVE-2021-21380 specifically affects installations that have the Ratings API enabled.