RCE via Script Macros in XWiki 5.1-rc-1..15.3-rc-1
CVE-2023-37909 Published on October 25, 2023
Privilege escalation (PR)/remote code execution from account through Menu.UIExtensionSheet
XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Starting in version 5.1-rc-1 and prior to versions 14.10.8 and 15.3-rc-1, any user who can edit their own user profile can execute arbitrary script macros including Groovy and Python macros that allow remote code execution including unrestricted read and write access to all wiki contents. This has been patched in XWiki 14.10.8 and 15.3-rc-1 by adding proper escaping. As a workaround, the patch can be manually applied to the document `Menu.UIExtensionSheet`; only three lines need to be changed.
Vulnerability Analysis
CVE-2023-37909 can be exploited with network access, and requires small amount of user privileges. This vulnerability is considered to have a low attack complexity. Public availability of a proof of concept (POC) exploit exists for CVE-2023-37909. The potential impact of an exploit of this vulnerability is considered to be critical as this vulnerability has a high impact to the confidentiality, integrity and availability of this component.
Weakness Type
What is an Eval Injection Vulnerability?
The software receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. "eval"). This may allow an attacker to execute arbitrary code, or at least modify what code can be executed.
CVE-2023-37909 has been classified to as an Eval Injection vulnerability or weakness.
Products Associated with CVE-2023-37909
Want to know whenever a new CVE is published for Xwiki? stack.watch will email you.
Affected Versions
xwiki-platform:- Version >= 5.1-rc-1, < 14.10.8 is affected.
- Version >= 15.0-rc-1, < 15.3-rc-1 is affected.
Vulnerable Packages
The following package name and versions may be associated with CVE-2023-37909
| Package Manager | Vulnerable Package | Versions | Fixed In |
|---|---|---|---|
| maven | org.xwiki.platform:xwiki-platform-menu | >= 5.1-rc-1, < 14.10.8 | 14.10.8 |
| maven | org.xwiki.platform:xwiki-platform-menu-ui | >= 5.1-rc-1, < 14.10.8 | 14.10.8 |
| maven | org.xwiki.platform:xwiki-platform-menu-ui | >= 15.0-rc-1, < 15.3-rc-1 | 15.3-rc-1 |
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.