CVE-2024-37899

Severity CVSS v4.0:
Pending analysis
Type:
CWE-94 Code Injection
Publication date:
20/06/2024
Last modified:
05/02/2025

Description

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. When an admin disables a user account, the user&amp;#39;s profile is executed with the admin&amp;#39;s rights. This allows a user to place malicious code in the user profile before getting an admin to disable the user account. To reproduce, as a user without script nor programming rights, edit the about section of your user profile and add `{{groovy}}services.logging.getLogger("attacker").error("Hello from Groovy!"){{/groovy}}`.<br /> As an admin, go to the user profile and click the "Disable this account" button. Then, reload the page. If the logs show `attacker - Hello from Groovy!` then the instance is vulnerable. This has been patched in XWiki 14.10.21, 15.5.5, 15.10.6 and 16.0.0. Users are advised to upgrade. There are no known workarounds for this vulnerability.<br /> <br /> ### Workarounds<br /> We&amp;#39;re not aware of any workaround except upgrading.<br /> <br /> ### References<br /> * https://jira.xwiki.org/browse/XWIKI-21611<br /> * https://github.com/xwiki/xwiki-platform/commit/f89c8f47fad6e5cc7e68c69a7e0acde07f5eed5a<br />

Vulnerable products and versions

CPE From Up to
cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:* 13.10.3 (including) 14.10.21 (excluding)
cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:* 15.0 (including) 15.5.5 (excluding)
cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:* 15.6 (including) 15.10.6 (excluding)
cpe:2.3:a:xwiki:xwiki:13.4.7:*:*:*:*:*:*:*
cpe:2.3:a:xwiki:xwiki:13.5:rc1:*:*:*:*:*:*
cpe:2.3:a:xwiki:xwiki:16.0.0:rc1:*:*:*:*:*:*