Vulnerability · Published Dec 15, 2023 · Assigned by GitHub_M
CVE-2023-50721XWiki Platform RCE from account through SearchAdmin
Critical 10.0
In plain English
A critical-severity code injection in xwiki-platform from xwiki. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 78.8% (higher than 99.6% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
XWiki Platform is a generic wiki platform. Starting in 4.5-rc-1 and prior to versions 14.10.15, 15.5.2, and 15.7-rc-1, the search administration interface doesn't properly escape the id and label of search user interface extensions, allowing the injection of XWiki syntax containing script macros including Groovy macros that allow remote code execution, impacting the confidentiality, integrity and availability of the whole XWiki instance. This attack can be executed by any user who can edit some wiki page like the user's profile (editable by default) as user interface extensions that will be displayed in the search administration can be added on any document by any user. The necessary escaping has been added in XWiki 14.10.15, 15.5.2 and 15.7RC1. As a workaround, the patch can be applied manually applied to the page `XWiki.SearchAdmin`.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.xwiki.platform:xwiki-platform-search-ui | 14.10.15 | GHSA-7654-vfh6-rw6x |
| Maven | org.xwiki.platform:xwiki-platform-search-ui | 15.5.2 | GHSA-7654-vfh6-rw6x |
| Maven | org.xwiki.platform:xwiki-platform-search-ui | 15.7-rc-1 | GHSA-7654-vfh6-rw6x |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| xwiki | xwiki-platform | >= 4.5-rc-1, < 14.10.15>= 15.0-rc-1, < 15.5.2>= 15.6-rc-1, < 15.7-rc-1 |
Weakness: CWE-95, CWE-94 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-7654-vfh6-rw6x x_refsource_CONFIRM
- https://github.com/xwiki/xwiki-platform/commit/62863736d78ffd60d822279c5fb7fb9593042766 x_refsource_MISC
- https://jira.xwiki.org/browse/XWIKI-21200 x_refsource_MISC