{"id":"CVE-2024-37899","summary":"Disabling a user account changes its author, allowing RCE from user account in XWiki","details":"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","aliases":["GHSA-j584-j2vj-3f93"],"modified":"2026-04-02T12:17:18.582009Z","published":"2024-06-20T22:13:59.450Z","database_specific":{"cwe_ids":["CWE-94"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/37xxx/CVE-2024-37899.json","cna_assigner":"GitHub_M"},"references":[{"type":"WEB","url":"https://jira.xwiki.org/browse/XWIKI-21611"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/37xxx/CVE-2024-37899.json"},{"type":"ADVISORY","url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-j584-j2vj-3f93"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-37899"},{"type":"FIX","url":"https://github.com/xwiki/xwiki-platform/commit/f89c8f47fad6e5cc7e68c69a7e0acde07f5eed5a"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/xwiki/xwiki-platform","events":[{"introduced":"7a8fb3b7f87153bdcbe3d336be3a565b7f77571b"},{"last_affected":"311979b15a606d822a35bdaf6587cc9eda3274e7"}],"database_specific":{"versions":[{"introduced":"13.4.7"},{"last_affected":"13.5"}]}},{"type":"GIT","repo":"https://github.com/xwiki/xwiki-platform","events":[{"introduced":"63d1d84188e8a282d11471c9fd4f86fdc90c62b6"},{"fixed":"1bcc6e962dc5701ae6f9745a209a5c0c97461128"}],"database_specific":{"versions":[{"introduced":"13.10.3"},{"fixed":"14.10.21"}]}},{"type":"GIT","repo":"https://github.com/xwiki/xwiki-platform","events":[{"introduced":"d823334f762d5ad86bea378b65af0b230668d401"},{"fixed":"447f13c6b159cf0671b65c6be8f790cf046d7ada"}],"database_specific":{"versions":[{"introduced":"15.0-rc-1"},{"fixed":"15.5.5"}]}},{"type":"GIT","repo":"https://github.com/xwiki/xwiki-platform","events":[{"introduced":"201a8cdfdaad44618c79c6dd0c0bb855b446aafb"},{"fixed":"150468c1e2cd64a2ad85b5053e9487943d3b9b1f"}],"database_specific":{"versions":[{"introduced":"15.6-rc-1"},{"fixed":"15.10.6"}]}},{"type":"GIT","repo":"https://github.com/xwiki/xwiki-platform","events":[{"introduced":"6f103dbca9c98cf3b53bfadb83d982facb198d56"},{"fixed":"3c6f5cf138d8095f63631e554ba448e4b780e162"}],"database_specific":{"versions":[{"introduced":"16.0.0-rc-1"},{"fixed":"16.0.0"}]}}],"versions":["xwiki-platform-13.10.10","xwiki-platform-13.10.11","xwiki-platform-13.10.3","xwiki-platform-13.10.4","xwiki-platform-13.10.5","xwiki-platform-13.10.6","xwiki-platform-13.10.7","xwiki-platform-13.10.8","xwiki-platform-13.10.9","xwiki-platform-13.4.7","xwiki-platform-15.0","xwiki-platform-15.0-rc-1","xwiki-platform-15.6","xwiki-platform-15.6-rc-1","xwiki-platform-16.0.0-rc-1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-37899.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H"}]}