{"id":"CVE-2021-21380","aliases":["CVE-2021-21380","GHSA-79rg-7mv3-jrr5"],"related":[],"kind":"vulnerability","state":"published","title":"Rating Script Service expose XWiki to SQL injection","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\nThis issue impacts only XWiki with the Ratings API installed.\nThe Rating Script Service expose an API to perform SQL requests without escaping the from and where search arguments. \nThis might lead to an SQL script injection quite easily for any user having Script rights on XWiki.\n\n### Patches\nThe problem has been patched in XWiki 12.9RC1.\n\n### Workarounds\nThe only workaround besides upgrading XWiki would be to uninstall the Ratings API in XWiki from the Extension Manager.\n\n### References\nhttps://jira.xwiki.org/browse/XWIKI-17662\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Jira XWiki](http://jira.xwiki.org)\n* Email us at our [security mailing list](mailto:security@xwiki.org)","format":"markdown","source":"ghsa"},{"lang":"es","text":"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","source":"nvd"}],"published":"2021-03-23T22:45:15.000Z","modified":"2026-09-10T03:49:26.633Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","score":7.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","score":7.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","score":7.7,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:P","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-89"],"affected":[{"ranges":[{"version":"< 12.9","status":"affected"}],"vendor":"xwiki","product":"xwiki-platform","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"12.9"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-ratings-api","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-ratings-api","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"6.4.1","lastAffected":"12.8"},{"status":"affected","version":"6.4"},{"status":"affected","version":"6.4"},{"status":"affected","version":"6.4"}],"vendor":"xwiki","product":"xwiki","cpe":"cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-79rg-7mv3-jrr5","tags":["third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jira.xwiki.org/browse/XWIKI-17662","tags":["issue-tracking","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21380","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-21380","url":"https://www.cve.org/CVERecord?id=CVE-2021-21380","licence":"CVE Terms of Use","modified":"2024-08-03T18:09:15.981Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-79rg-7mv3-jrr5","url":"https://github.com/advisories/GHSA-79rg-7mv3-jrr5","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:26.633Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-21380","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21380","licence":"Public domain","modified":"2026-06-17T03:35:26.977Z"}],"updatedAt":"2026-11-25T22:58:00.402Z","epss":{"score":0.01345,"percentile":0.72206,"date":"2026-12-01T12:00:22.000Z"}}