{"id":"CVE-2024-37899","published":"2024-06-20T22:13:59Z","modified":"2024-08-13T13:51:01Z","title":"Disabling a user account changes its author, allowing RCE from user account in XWiki","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. When an admin disables a user account, the user's profile is executed with the admin'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}}`.\nAs 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.\n\n### Workarounds\nWe're not aware of any workaround except upgrading.\n\n### References\n* https://jira.xwiki.org/browse/XWIKI-21611\n* https://github.com/xwiki/xwiki-platform/commit/f89c8f47fad6e5cc7e68c69a7e0acde07f5eed5a\n","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00694,"percentile":0.52936,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-j584-j2vj-3f93","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/f89c8f47fad6e5cc7e68c69a7e0acde07f5eed5a","tags":["x_refsource_MISC"]},{"url":"https://jira.xwiki.org/browse/XWIKI-21611","tags":["x_refsource_MISC"]}],"priority":{"score":17.0,"factors":[{"name":"EPSS percentile","points":10.59},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"xwiki","affectedVersions":[{"vendor":"xwiki","product":"xwiki-platform","versions":[">= 13.4.7, <= 13.5",">= 13.10.3, < 14.10.21",">= 15.0-rc-1, < 15.5.5",">= 15.6-rc-1, < 15.10.6",">= 16.0.0-rc-1, < 16.0.0"]}],"affected":[{"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-oldcore","vulnerableRanges":[">=13.4.7, <14.10.21",">=13.10.3, <14.10.21",">=15.0-rc-1, <15.5.5",">=15.6-rc-1, <15.10.6",">=16.0.0-rc-1, <16.0.0"],"patched":["14.10.21","15.5.5","15.10.6","16.0.0"],"from":["GHSA-j584-j2vj-3f93"],"provenance":"source"}],"euvd":{"id":"EUVD-2024-2085","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-xwiki-platform-cve-2022-36090","parents":[{"from":"CVE-2022-36090","to":"CVE-2024-37899","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/user/api/XWikiUser.java"],"commits":["https://github.com/xwiki/xwiki-platform/commit/e074d226d9b2b96a0a1ba4349d1b73a802842986","https://github.com/xwiki/xwiki-platform/commit/f89c8f47fad6e5cc7e68c69a7e0acde07f5eed5a","https://github.com/xwiki/xwiki-platform/commit/046c36519a2df392c922c16d0d38472b98c414d0"],"basis":"shared function","functions":["XWikiUser"]}]}],"packageHistory":[{"cve":"CVE-2024-31464","published":"2024-04-10","fixed":"15.9-rc-1","kev":false,"link":{"from":"CVE-2024-31464","to":"CVE-2024-37899","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.xwiki.platform:xwiki-platform-oldcore","fromFixed":"15.5.4","toFixed":"15.5.5","daysApart":71}]}},{"cve":"CVE-2024-31981","published":"2024-04-10","fixed":"15.10-rc-1","kev":false},{"cve":"CVE-2024-31987","published":"2024-04-10","fixed":"15.10-rc-1","kev":false,"link":{"from":"CVE-2024-31987","to":"CVE-2024-37899","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.xwiki.platform:xwiki-platform-oldcore","fromFixed":"15.10-rc-1","toFixed":"15.10.6","daysApart":71}]}},{"cve":"CVE-2024-37898","published":"2024-07-31","fixed":"15.10.6","kev":false},{"cve":"CVE-2024-37899","published":"2024-06-20","fixed":"16.0.0","kev":false},{"cve":"CVE-2024-43400","published":"2024-08-19","fixed":"16.0.0","kev":false},{"cve":"CVE-2025-32968","published":"2025-04-23","fixed":"16.10.1","kev":false},{"cve":"CVE-2024-56158","published":"2025-06-12","fixed":"16.10.2","kev":false}],"package":"Maven:org.xwiki.platform:xwiki-platform-oldcore"}}