CVE-2024-31465
XWiki Platform: Remote code execution from account via SearchSuggestSourceSheet
In short
A user with basic editing permissions in XWiki can run arbitrary code on the server by adding a special object to any page, fully compromising the system. This affects all XWiki installations from version 5.0 onwards until the patched versions.
Technical detail
CWE-95 (Improper Neutralization of Directives in Dynamically Evaluated Code) allows any authenticated user with page edit rights to inject and execute arbitrary code via XWiki.SearchSuggestSourceClass objects. The vulnerability stems from insufficient input validation in SearchSuggestSourceSheet, enabling direct code execution in the server context and affecting confidentiality, integrity, and availability of the entire installation.
Summary generated and translated by AI from the official description.
XWiki Platform is a generic wiki platform. Starting in version 5.0-rc-1 and prior to versions 14.10.20, 15.5.4, and 15.9-rc-1, any user with edit right on any page can execute any code on the server by adding an object of type `XWiki.SearchSuggestSourceClass` to their user profile or any other page. This compromises the confidentiality, integrity and availability of the whole XWiki installation. This vulnerability has been patched in XWiki 14.10.20, 15.5.4 and 15.10 RC1. As a workaround, manually apply the patch to the document `XWiki.SearchSuggestSourceSheet`.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Affected products
xwiki · xwiki-platformWant to know if your infrastructure is exposed to this?
Talk to TrueHacking →References
https://github.com/xwiki/xwiki-platform/commit/0317a3aa78065e66c86fc725976b06bf7f9b446ehttps://github.com/xwiki/xwiki-platform/commit/2740974c32dbb7cc565546d0f04e2374b32b36f7https://github.com/xwiki/xwiki-platform/commit/6a7f19f6424036fce3d703413137adde950ae809https://github.com/xwiki/xwiki-platform/commit/6a7f19f6424036fce3d703413137adde950ae809#diff-67b473d2b6397d65b7726c6a13555850b11b10128321adf9e627e656e1d130a5https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-34fj-r5gq-7395https://jira.xwiki.org/browse/XWIKI-21474