{"id":"CVE-2024-37899","state":"PUBLISHED","title":"Disabling a user account changes its author, allowing RCE from user account in XWiki","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'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","publishedAt":"2024-06-20T22:13:59.450Z","updatedAt":"2024-08-13T13:51:01.754Z","severity":{"score":9.1,"label":"Critical","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["xwiki xwiki-platform"],"affected":[{"vendor":"xwiki","product":"xwiki-platform","versions":[{"version":">= 13.4.7, <= 13.5","status":"affected"},{"version":">= 13.10.3, < 14.10.21","status":"affected"},{"version":">= 15.0-rc-1, < 15.5.5","status":"affected"},{"version":">= 15.6-rc-1, < 15.10.6","status":"affected"},{"version":">= 16.0.0-rc-1, < 16.0.0","status":"affected"}]}],"references":["https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-j584-j2vj-3f93","https://github.com/xwiki/xwiki-platform/commit/f89c8f47fad6e5cc7e68c69a7e0acde07f5eed5a","https://jira.xwiki.org/browse/XWIKI-21611"],"weaknesses":["CWE-94"],"ingestedAt":"2026-10-29T20:07:30.303Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/37xxx/CVE-2024-37899.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-37899","state":"PUBLISHED","datePublished":"2024-06-20T22:13:59.450Z","dateUpdated":"2024-08-13T13:51:01.754Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-06-10T19:54:41.362Z"},"containers":{"cna":{"title":"Disabling a user account changes its author, allowing RCE from user account in XWiki","descriptions":[{"lang":"en","value":"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"}],"affected":[{"vendor":"xwiki","product":"xwiki-platform","versions":[{"version":">= 13.4.7, <= 13.5","status":"affected"},{"version":">= 13.10.3, < 14.10.21","status":"affected"},{"version":">= 15.0-rc-1, < 15.5.5","status":"affected"},{"version":">= 15.6-rc-1, < 15.10.6","status":"affected"},{"version":">= 16.0.0-rc-1, < 16.0.0","status":"affected"}]}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-j584-j2vj-3f93","name":"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","name":"https://github.com/xwiki/xwiki-platform/commit/f89c8f47fad6e5cc7e68c69a7e0acde07f5eed5a","tags":["x_refsource_MISC"]},{"url":"https://jira.xwiki.org/browse/XWIKI-21611","name":"https://jira.xwiki.org/browse/XWIKI-21611","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":9.1,"baseSeverity":"CRITICAL","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"LOW","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-94","lang":"en","description":"CWE-94: Improper Control of Generation of Code ('Code Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-06-20T22:13:59.450Z"},"source":{"advisory":"GHSA-j584-j2vj-3f93","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"xwiki","product":"xwiki","defaultStatus":"unknown","versions":[{"version":"13.4.7","status":"affected","lessThanOrEqual":"13.5","versionType":"custom"},{"version":"13.10.3","status":"affected","lessThanOrEqual":"14.10.21","versionType":"custom"},{"version":"15.0-rc-1","status":"affected","lessThan":"15.5.5","versionType":"custom"},{"version":"15.6-rc-1,","status":"affected","lessThan":"15.10.6","versionType":"custom"},{"version":"16.0.0-rc-1,","status":"affected","lessThan":"16.0.0","versionType":"custom"}],"cpes":["cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-06-27T18:36:25.554418Z","id":"CVE-2024-37899","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-08-13T13:51:01.754Z"}},{"title":"CVE Program Container","references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-j584-j2vj-3f93","name":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-j584-j2vj-3f93","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/f89c8f47fad6e5cc7e68c69a7e0acde07f5eed5a","name":"https://github.com/xwiki/xwiki-platform/commit/f89c8f47fad6e5cc7e68c69a7e0acde07f5eed5a","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://jira.xwiki.org/browse/XWIKI-21611","name":"https://jira.xwiki.org/browse/XWIKI-21611","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T04:04:23.403Z"}}]}}}