WaratekVRT Sign in

CVE-2021-21380 XWiki

Affected softwareXWiki
Severity8.8 High CVSS 3.1 3 scores
Fixed in12.9
WeaknessSQL injection (CWE-89)
Published23 Mar 2021
Updated17 Jun 2026

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.

Exploitation status

Proof of concept only

A proof of concept exists, but no reviewed exploit catalogue lists this CVE.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC 1 indexed Published artifacts you can open, in GitHub PoC; first seen 2022-12-06.
  • EPSS 1.3% chance in 30 days
IndexArtifactStarsFirst seen
GitHub PoC A CodeQL workshop covering CVE-2021-21380 12 2022-12-06

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR sql-injection security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-89: SQL Injection.
Candidate fix https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-79rg-7mv3-jrr5 : the maintainers' own security advisory: names the version that fixes it, so the fix is the difference between two releases

How to mitigate CVE-2021-21380

Upgrade XWiki to 12.9 or later. Until you can, Waratek RASP blocks exploitation with its SQL injection rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

8.8 HIGH v3.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H 3 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 8.8 HIGH CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H NVD Primary published
CVSS 3.1 7.7 HIGH CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N security-advisories@github.com Secondary
CVSS 2.0 6.5 none AV:N/AC:L/Au:S/C:P/I:P/A:P NVD Primary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.xwiki.platform:xwiki-platform-ratings-api 0 12.9 unbounded

Products and versions

2 products, 5 version entries
SourceVendorProductSchemeAffected versions
osv org.xwiki.platform xwiki-platform-ratings-api generic < 12.9
nvd xwiki xwiki generic 6.4 · 6.4:milestone3 · 6.4:rc1 · ≥ 6.4.1 and ≤ 12.8

References

URLTags
https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-79rg-7mv3-jrr5 advisory
https://jira.xwiki.org/browse/XWIKI-17662 WEB

Timeline

Published2021-03-23By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.