{"id":"CVE-2024-21650","aliases":["CVE-2024-21650","GHSA-rj7p-xjv7-7229"],"related":[],"kind":"vulnerability","state":"published","title":"XWiki Remote Code Execution vulnerability via user registration","summary":"XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. XWiki is vulnerable to a remote code execution (RCE) attack through its user registration feature. This issue allows an attacker to execute arbitrary code by crafting malicious payloads in the \"first name\" or \"last name\" fields during user registration. This impacts all installations that have user registration enabled for guests. This vulnerability has been patched in XWiki 14.10.17, 15.5.3 and 15.8 RC1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. XWiki is vulnerable to a remote code execution (RCE) attack through its user registration feature. This issue allows an attacker to execute arbitrary code by crafting malicious payloads in the \"first name\" or \"last name\" fields during user registration. This impacts all installations that have user registration enabled for guests. This vulnerability has been patched in XWiki 14.10.17, 15.5.3 and 15.8 RC1.","source":"cvelist"},{"lang":"en","text":"### Impact\nXWiki is vulnerable to a remote code execution (RCE) attack through its user registration feature. This issue allows an attacker to execute arbitrary code by crafting malicious payloads in the \"first name\" or \"last name\" fields during user registration. This impacts all installations that have user registration enabled for guests.\n\nTo reproduce, register with any username and password and the following payload as \"first name\": `]]{{/html}}{{async}}{{groovy}}services.logging.getLogger(\"attacker\").error(\"Attack succeeded){{/groovy}}{{/async}}`. In the following page that confirms the success of the registration, the full first name should be displayed, linking to the created user. If the formatting is broken and a log message with content \"ERROR attacker - Attack succeeded!\" is logged, the attack succeeded.\n\n### Patches\nThis vulnerability has been patched in XWiki 14.10.17, 15.5.3 and 15.8 RC1.\n\n### Workarounds\n\nIn the administration of your wiki, under \"Users & Rights\" > \"Registration\" set the \"Registration Successful Message\" to the following code:\n\n```velocity\n#set($message = $services.localization.render('core.register.successful', 'xwiki/2.1', ['USERLINK', $userName]))\n#set($userLink = $xwiki.getUserName(\"$userSpace$userName\"))\n{{info}}$message.replace('USERLINK', \"{{html clean=false}}$userLink{{/html}}\"){{/info}}\n```\n\n### References\n* https://jira.xwiki.org/browse/XWIKI-21173\n* https://github.com/xwiki/xwiki-platform/commit/b290bfd573c6f7db6cc15a88dd4111d9fcad0d31","format":"markdown","source":"ghsa"},{"lang":"es","text":"XWiki Platform es una plataforma wiki genérica que ofrece servicios de ejecución para aplicaciones creadas sobre ella. XWiki es vulnerable a un ataque de ejecución remota de código (RCE) a través de su función de registro de usuarios. Este problema permite a un atacante ejecutar código arbitrario creando payloads maliciosos en los campos \"nombre\" o \"apellido\" durante el registro del usuario. Esto afecta a todas las instalaciones que tienen habilitado el registro de usuarios para invitados. Esta vulnerabilidad ha sido parcheada en XWiki 14.10.17, 15.5.3 y 15.8 RC1.","source":"nvd"}],"published":"2024-01-08T15:18:12.782Z","modified":"2026-09-10T03:50:05.253Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H","score":10,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-94","CWE-95"],"affected":[{"ranges":[{"version":">= 2.2, < 14.10.17","status":"affected"},{"version":">= 15.0-rc-1, < 15.5.3","status":"affected"},{"version":">= 15.6-rc-1, < 15.8-rc-1","status":"affected"}],"vendor":"xwiki","product":"xwiki-platform","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"2.2","status":"affected","fixed":"14.10.17"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-administration-ui","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-administration-ui","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"15.0-rc-1","status":"affected","fixed":"15.5.3"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-administration-ui","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-administration-ui","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"15.6-rc-1","status":"affected","fixed":"15.8-rc-1"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-administration-ui","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-administration-ui","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"14.10.17"},{"status":"affected","introduced":"15.0","fixed":"15.5.3"},{"status":"affected","introduced":"15.6","lastAffected":"15.7"}],"vendor":"xwiki","product":"xwiki","cpe":"cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-rj7p-xjv7-7229","tags":["vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/b290bfd573c6f7db6cc15a88dd4111d9fcad0d31","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jira.xwiki.org/browse/XWIKI-21173","tags":["exploit","issue-tracking","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21650","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/cdf5be8c20b6b6fe6b9b56a6557561007859655f","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/ec608f303913f5e8af061f2a98506f49d69be60f","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/xwiki/xwiki-platform","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-01-09T20:05:19.685Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-21650","url":"https://www.cve.org/CVERecord?id=CVE-2024-21650","licence":"CVE Terms of Use","modified":"2025-06-17T20:39:15.923Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-rj7p-xjv7-7229","url":"https://github.com/advisories/GHSA-rj7p-xjv7-7229","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:05.253Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-21650","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-21650","licence":"Public domain","modified":"2026-06-17T07:09:55.670Z"}],"updatedAt":"2026-11-25T22:58:35.957Z","epss":{"score":0.94415,"percentile":0.99851,"date":"2026-12-01T12:00:22.000Z"}}