SQL Injection in Xwiki
CVE-2021-21380
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.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.7 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N.
EPSS exploit prediction
EPSS 0.013, 71.9th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Xwiki — versions 6.4
- Xwiki Xwiki-Platform — versions < 12.9
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- rvermeulen/codeql-workshop-cve-2021-21380 (12 stars, last pushed 2024-11-26): A CodeQL workshop covering CVE-2021-21380
Also mentioned in 6 other repositories (ARPSyndicate/cvemon, k0mi-tg/CVE-POC, manas3c/CVE-POC, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/xwiki/xwiki-platform/security/advisories/GHSA-79rg-7mv3-jrr5 (Third Party Advisory)
- jira.xwiki.org/browse/XWIKI-17662 (Issue Tracking, Vendor Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.