Rating Script Service expose XWiki to SQL injection
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-89.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| XWiki | xwiki-platform | before 12.9 | 12.9 | Patch available | CNA |
| — | org.xwiki.platform:xwiki-platform-ratings-api (Maven) | before 12.9 | 12.9 | Patch available | GHSA-79rg-7mv3-jrr5 |
- xwiki-platform VendorXWiki Affected before 12.9 Fixed in 12.9 Patch available CNA
- org.xwiki.platform:xwiki-platform-ratings-api (Maven) Vendor— Affected before 12.9 Fixed in 12.9 Patch available GHSA-79rg-7mv3-jrr5
CPE configurations NVD · 4
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:* | 6.4.1 – 12.8 | Vulnerable | XWiki |
| cpe:2.3:a:xwiki:xwiki:6.4:-:*:*:*:*:*:* | 6.4 | Vulnerable | XWiki |
| cpe:2.3:a:xwiki:xwiki:6.4:milestone3:*:*:*:*:*:* | 6.4 milestone3 | Vulnerable | XWiki |
| cpe:2.3:a:xwiki:xwiki:6.4:rc1:*:*:*:*:*:* | 6.4 rc1 | Vulnerable | XWiki |
- cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:* Versions 6.4.1 – 12.8 Vulnerable ·XWiki
- cpe:2.3:a:xwiki:xwiki:6.4:-:*:*:*:*:*:* Versions 6.4 Vulnerable ·XWiki
- cpe:2.3:a:xwiki:xwiki:6.4:milestone3:*:*:*:*:*:* Versions 6.4 milestone3 Vulnerable ·XWiki
- cpe:2.3:a:xwiki:xwiki:6.4:rc1:*:*:*:*:*:* Versions 6.4 rc1 Vulnerable ·XWiki
Remediation
- Fix · CNA xwiki-platform (xwiki) Fixed in 12.9
- Fix · GHSA-79rg-7mv3-jrr5 org.xwiki.platform:xwiki-platform-ratings-api (Maven) Fixed in 12.9 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-21380
- 2026-10-03 Alias added: GHSA-79rg-7mv3-jrr5
References
More Xwiki vulnerabilities
- TI-2025-18595 Remote code execution as guest via SolrSearchMacros request in xwiki KEVCVSS 3.1CRITICAL 9.8
- TI-2023-25214 Remote code execution through the section parameter in Administration as guest in XWiki Platform CVSS 3.1CRITICAL 10.0
- TI-2025-23500 XWiki Platform vulnerable to SQL injection through getdeleteddocuments.vm template sort parameter CVSS 4.0CRITICAL 9.3
- TI-2025-23979 org.xwiki.platform:xwiki-platform-rest-server allows SQL injection in query endpoint of REST API CVSS 4.0CRITICAL 9.3
- TI-2024-20829 XWiki Platform: Remote code execution from account via SearchSuggestSourceSheet CVSS 3.1CRITICAL 10.0
- TI-2024-14375 XWiki Remote Code Execution vulnerability via user registration CVSS 3.1CRITICAL 10.0
Sources
- CVE-2021-21380 · CVE Program
- CVE-2021-21380 · NVD
- FIRST EPSS
- GHSA-79rg-7mv3-jrr5 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences