CVE-2021-21380
HIGH 8.8CVSS 3.1Rating Script Service expose XWiki to SQL injection
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.
- Published
- 23 Mar 2021
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-89
- Also known as
- GHSA-79rg-7mv3-jrr5
- Sources
- NVDJSONOSV GHSA-79rg-7mv3-jrr5JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.5 | AV:N/AC:L/Au:S/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | xwiki | xwikicpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:* |
>= 6.4.1, <= 12.8 | |
| NVD | xwiki | xwikicpe:2.3:a:xwiki:xwiki:6.4:-:*:*:*:*:*:* |
= 6.4 | |
| NVD | xwiki | xwikicpe:2.3:a:xwiki:xwiki:6.4:milestone3:*:*:*:*:*:* |
= 6.4 | |
| NVD | xwiki | xwikicpe:2.3:a:xwiki:xwiki:6.4:rc1:*:*:*:*:*:* |
= 6.4 | |
| OSV | Maven | org.xwiki.platform:xwiki-platform-ratings-api | < 12.9 | 12.9 |
References
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-79rg-7mv3-jrr5 · Third Party Advisory, WEB
- https://jira.xwiki.org/browse/XWIKI-17662 · Issue Tracking, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-21380 · ADVISORY
History
- 25 Nov 2026 20:32 UTC · NVD: first stored (published 23 Mar 2021)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 23 Mar 2021)