{"id":"CVE-2023-37909","published":"2023-10-25T17:09:59Z","modified":"2024-09-17T13:37:52Z","title":"Privilege escalation (PR)/remote code execution from account through Menu.UIExtensionSheet","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. 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.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01887,"percentile":0.80032,"provenance":"source"},"cwes":[{"id":"CWE-95","name":"Improper Neutralization of Directives in Dynamically Evaluated Code"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-v2rr-xw95-wcjx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/9e8f080094333dec63a8583229a3799208d773be","tags":["x_refsource_MISC"]},{"url":"https://jira.xwiki.org/browse/XWIKI-20746","tags":["x_refsource_MISC"]}],"priority":{"score":23.0,"factors":[{"name":"EPSS percentile","points":16.01},{"name":"CVSS severity","points":7.0}]},"vendorSlug":"xwiki","affectedVersions":[{"vendor":"xwiki","product":"xwiki-platform","versions":[">= 5.1-rc-1, < 14.10.8",">= 15.0-rc-1, < 15.3-rc-1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-09-10T18:39:07.513308Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-menu","vulnerableRanges":[">=5.1-rc-1, <14.10.8"],"patched":["14.10.8"],"from":["GHSA-v2rr-xw95-wcjx"],"provenance":"source"},{"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-menu-ui","vulnerableRanges":[">=5.1-rc-1, <14.10.8",">=15.0-rc-1, <15.3-rc-1"],"patched":["14.10.8","15.3-rc-1"],"from":["GHSA-v2rr-xw95-wcjx"],"provenance":"source"}],"summary":{"text":"The flaw is in XWiki Platform's wiki and runtime services, where the Menu.UIExtensionSheet component fails to properly neutralise directives in dynamically evaluated code, allowing script macros to run unescaped. An attacker with network access and only a low-privilege account that can edit its own user profile, without needing user interaction, can execute arbitrary script macros such as Groovy and Python, achieving remote code execution with unrestricted read and write access to all wiki contents.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:40:42Z"},"euvd":{"id":"EUVD-2023-2811","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-41934","published":"2022-11-23","fixed":"14.4.3","kev":false,"link":{"from":"CVE-2022-41934","to":"CVE-2023-37909","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.xwiki.platform:xwiki-platform-menu-ui","fromFixed":"14.4.3","toFixed":"14.10.8","daysApart":336}]}},{"cve":"CVE-2023-37909","published":"2023-10-25","fixed":"15.3-rc-1","kev":false}],"package":"Maven:org.xwiki.platform:xwiki-platform-menu-ui"}}