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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| xwiki | xwiki-platform | < 12.9 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
rvermeulen/codeql-workshop-cve-2021-21380 ★ 12 · Dec 6, 2022
A CodeQL workshop covering CVE-2021-21380
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.xwiki.platform:xwiki-platform-ratings-api | < 12.9 | 12.9 | GHSA-79rg-7mv3-jrr5 |