Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.xwiki.platform/xwiki-platform-ratings-api
  4. ›
  5. CVE-2021-21380

CVE-2021-21380: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

March 23, 2021 (updated March 25, 2021)

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.

References

  • github.com/advisories/GHSA-79rg-7mv3-jrr5
  • github.com/xwiki/xwiki-platform/security/advisories/GHSA-79rg-7mv3-jrr5
  • nvd.nist.gov/vuln/detail/CVE-2021-21380

Code Behaviors & Features

Detect and mitigate CVE-2021-21380 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 12.9

Fixed versions

  • 12.9

Solution

Upgrade to version 12.9 or above.

Impact 8.8 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

maven/org.xwiki.platform/xwiki-platform-ratings-api/CVE-2021-21380.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:20 +0000.