{"id":"CVE-2021-21380","published":"2021-03-23T22:45:15Z","modified":"2024-08-03T18:09:15Z","title":"Rating Script Service expose XWiki to SQL injection","vendor":"xwiki","product":"xwiki-platform","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01345,"percentile":0.72108,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-79rg-7mv3-jrr5","tags":["x_refsource_CONFIRM"]},{"url":"https://jira.xwiki.org/browse/XWIKI-17662","tags":["x_refsource_MISC"]}],"priority":{"score":24.8,"factors":[{"name":"EPSS percentile","points":14.42},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.39}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2022-12-06","earliestUrl":"https://github.com/rvermeulen/codeql-workshop-cve-2021-21380","repos":[{"name":"rvermeulen/codeql-workshop-cve-2021-21380","url":"https://github.com/rvermeulen/codeql-workshop-cve-2021-21380","stars":12,"created":"2022-12-06"}]},"first":{"date":"2022-12-06","source":"PoC-in-GitHub","url":"https://github.com/rvermeulen/codeql-workshop-cve-2021-21380"},"provenance":"source"},"vendorSlug":"xwiki","affectedVersions":[{"vendor":"xwiki","product":"xwiki-platform","versions":["< 12.9"]}],"affected":[{"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-ratings-api","vulnerableRanges":["<12.9"],"patched":["12.9"],"from":["GHSA-79rg-7mv3-jrr5"],"provenance":"source"}],"summary":{"text":"The flaw is an SQL injection in the Rating Script Service of xwiki-platform, the XWiki Platform wiki engine, and it only affects installations that have the Ratings API extension installed. The service exposes an API that builds SQL queries from its from and where search arguments without escaping them. An attacker with network access and low privileges, specifically a user holding Script rights on the wiki, can inject SQL through those arguments to alter database operations, requiring no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T15:01:46Z"},"euvd":{"id":"EUVD-2021-0624","exploited":false,"provenance":"source"}}