CVE-2021-21380

HIGH

XWiki Platform 6.4.1-12.8 - Authenticated SQL Injection via Rating Script Service

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 2 public exploits for CVE-2021-21380. PoCs published by rvermeulen.

AI-analyzed exploit summary This repository is a CodeQL workshop focused on identifying SQL injection vulnerabilities in XWiki Platform's rating component (CVE-2021-21380). It provides a series of exercises to guide users through static analysis techniques using CodeQL to detect the vulnerability.

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

This repository is a CodeQL workshop focused on identifying SQL injection vulnerabilities in XWiki Platform's rating component (CVE-2021-21380). It provides a series of exercises to guide users through static analysis techniques using CodeQL to detect the vulnerability.

Classification
Writeup 100%
Attack Type
Sqli
Complexity
Moderate
Reliability
Theoretical
Target: XWiki Platform
No auth needed
Prerequisites: CodeQL extension for Visual Studio Code · XWiki Platform CodeQL database
devstral-2 · analyzed Feb 18, 2026 Full analysis →
inthewild WRITEUP
poc
https://github.com/advanced-security/codeql-workshop-cve-2021-21380

This repository is a CodeQL workshop focused on identifying SQL injection vulnerabilities in XWiki Platform's rating component (CVE-2021-21380). It provides a series of exercises to teach users how to use CodeQL to detect SQL injection by modeling sources and sinks.

Classification
Writeup 100%
Attack Type
Sqli
Complexity
Moderate
Reliability
Theoretical
Target: XWiki Platform
No auth needed
Prerequisites: CodeQL extension for VS Code · XWiki Platform CodeQL database
devstral-2 · analyzed Feb 23, 2026 Full analysis →

References (2)

Core 2
Core References
Issue Tracking, Vendor Advisory x_refsource_misc
https://jira.xwiki.org/browse/XWIKI-17662

Scores

CVSS v3 7.7
EPSS 0.0332
EPSS Percentile 87.6%
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