CVE-2021-21380

HIGH

Xwiki < 12.8 - SQL Injection

Title source: rule

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.

Exploits (2)

nomisec WRITEUP 12 stars
by rvermeulen · poc
https://github.com/rvermeulen/codeql-workshop-cve-2021-21380
inthewild WRITEUP
poc
https://github.com/advanced-security/codeql-workshop-cve-2021-21380

Scores

CVSS v3 7.7
EPSS 0.0332
EPSS Percentile 87.3%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N

Details

CWE
CWE-89
Status published
Products (3)
org.xwiki.platform/xwiki-platform-ratings-api 0 - 12.9Maven
xwiki/xwiki 6.4 (3 CPE variants)
xwiki/xwiki 6.4.1 - 12.8
Published Mar 23, 2021
Tracked Since Feb 18, 2026