CVE-2021-21380
JSON

7.7high

Rating Script Service expose XWiki to SQL injection

Severity
7.7high CVSS:3.1 by GitHub_M
Exploit likelihood
1.34% (higher than 72% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-79rg-7mv3-jrr5

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.

Affected

Product or packageVersionsReported by
xwiki xwiki-platform< 12.9CVE List
org.xwiki.platform:xwiki-platform-ratings-api (Maven)before 12.9GitHub Advisory Database
xwiki xwikifrom 6.4.1 up to 12.8, 6.4NVD

All scores

GitHub_M7.7high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
GitHub7.7high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
NVD6.5medium CVSS:2.0AV:N/AC:L/Au:S/C:P/I:P/A:P

Classification

What each source says

CVE List

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.

GitHub Advisory Database
Impact

This issue impacts only XWiki 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.

Patches

The problem has been patched in XWiki 12.9RC1.

Workarounds

The only workaround besides upgrading XWiki would be to uninstall the Ratings API in XWiki from the Extension Manager.

References

https://jira.xwiki.org/browse/XWIKI-17662

For more information

If you have any questions or comments about this advisory:

NVD (es)

XWiki Platform es una plataforma wiki genérica que ofrece servicios en tiempo de ejecución para aplicaciones creadas sobre ella.&#xa0;En las versiones afectadas de la plataforma XWiki (y solo aquellas con la API Ratings instalada), el Rating Script Service expone una API para llevar a cabo peticiones SQL sin escapar de los argumentos de búsqueda desde y dónde.&#xa0;Esto podría conllevar a una inyección de Script SQL con bastante facilidad para cualquier usuario que tenga derechos de Script en XWiki.&#xa0;El problema ha sido parcheado en XWiki versión 12.9RC1.&#xa0;La única solución alternativa además de actualizar XWiki sería desinstalar la API Ratings en XWiki desde el Extension Manager

References

Sources

SourceRecordLicence
CVE ListCVE-2021-21380 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-79rg-7mv3-jrr5 changed 2026-09-10CC-BY-4.0
NVDCVE-2021-21380 changed 2026-06-17Public domain