{"id":"CVE-2024-31997","aliases":["CVE-2024-31997","GHSA-c2gg-4gq4-jv5j"],"related":[],"kind":"vulnerability","state":"published","title":"XWiki Platform remote code execution from account through UIExtension parameters","summary":"XWiki Platform is a generic wiki platform. Prior to versions 4.10.19, 15.5.4, and 15.10-rc-1, parameters of UI extensions are always interpreted as Velocity code and executed with programming rights. Any user with edit right on any document like the user's own profile can create UI extensions. This allows remote code execution and thereby impacts the confidentiality, integrity and availability of the whole XWiki installation. This vulnerability has been patched in XWiki 14.10.19, 15.5.4 and 15.9-RC1. No known workarounds are available.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"XWiki Platform is a generic wiki platform. Prior to versions 4.10.19, 15.5.4, and 15.10-rc-1, parameters of UI extensions are always interpreted as Velocity code and executed with programming rights. Any user with edit right on any document like the user's own profile can create UI extensions. This allows remote code execution and thereby impacts the confidentiality, integrity and availability of the whole XWiki installation. This vulnerability has been patched in XWiki 14.10.19, 15.5.4 and 15.9-RC1. No known workarounds are available.","source":"cvelist"},{"lang":"en","text":"### Impact\nParameters of UI extensions are always interpreted as Velocity code and executed with programming rights. Any user with edit right on any document like the user's own profile can create UI extensions. This allows remote code execution and thereby impacts the confidentiality, integrity and availability of the whole XWiki installation.\n\nTo reproduce, edit your user profile with the object editor and add a UIExtension object with the following values:\n```\nExtension Point ID: org.xwiki.platform.panels.Applications\nExtension ID: platform.panels.myFakeApplication\nExtension parameters: \nlabel=I got programming right: $services.security.authorization.hasAccess('programming')\ntarget=Main.WebHome\ntargetQueryString=\nicon=icon:bomb\nExtension Scope: \"Current User\".\n```\n\nSave the document and open any document. If an application entry with the text \"I got programming right: true\" is displayed, the attack succeeded, if the code in \"label\" is displayed literally, the XWiki installation isn't vulnerable.\n\n### Patches\nThis vulnerability has been patched in XWiki 14.10.19, 15.5.4 and 15.9-RC1.\n\n### Workarounds\nWe're not aware of any workarounds apart from upgrading.\n\n### References\n* https://jira.xwiki.org/browse/XWIKI-21335\n* https://github.com/xwiki/xwiki-platform/commit/171e7c7d0e56deaa7b3678657ae26ef95379b1ea","format":"markdown","source":"ghsa"},{"lang":"es","text":"XWiki Platform es una plataforma wiki genérica. Antes de las versiones 4.10.19, 15.5.4 y 15.10-rc-1, los parámetros de las extensiones de UI siempre se interpretan como código Velocity y se ejecutan con derechos de programación. Cualquier usuario con derecho de edición en cualquier documento, como el propio perfil del usuario, puede crear extensiones de interfaz de usuario. Esto permite la ejecución remota de código y, por lo tanto, afecta la confidencialidad, integridad y disponibilidad de toda la instalación de XWiki. Esta vulnerabilidad ha sido parcheada en XWiki 14.10.19, 15.5.4 y 15.9-RC1. No hay workarounds disponibles.","source":"nvd"}],"published":"2024-04-10T17:16:53.000Z","modified":"2026-09-10T03:50:00.352Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/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:L/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:L/UI:N/S:C/C:H/I:H/A:H","score":9.9,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"}],"cwes":["CWE-862"],"affected":[{"ranges":[{"version":"< 14.10.19","status":"affected"},{"version":">= 15.0-rc-1, < 15.5.4","status":"affected"},{"version":">= 15.6-rc-1, < 15.9-rc-1","status":"affected"}],"vendor":"xwiki","product":"xwiki-platform","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"14.10.19","status":"affected"},{"type":"custom","introduced":"15.0-rc-1","fixed":"15.5.4","status":"affected"},{"type":"custom","introduced":"15.6-rc-1","fixed":"15.9-rc-1","status":"affected"}],"vendor":"xwiki","product":"xwiki","cpe":"cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"14.10.19"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-uiextension-api","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-uiextension-api","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"15.0-rc-1","status":"affected","fixed":"15.5.4"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-uiextension-api","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-uiextension-api","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"15.6-rc-1","status":"affected","fixed":"15.9-rc-1"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-uiextension-api","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-uiextension-api","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"14.10.19"},{"status":"affected","introduced":"15.0","fixed":"15.5.4"},{"status":"affected","introduced":"15.6","fixed":"15.9"}],"vendor":"xwiki","product":"xwiki","cpe":"cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-c2gg-4gq4-jv5j","tags":["exploit","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/171e7c7d0e56deaa7b3678657ae26ef95379b1ea","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/1b2574eb966457ca4ef34e557376b8751d1be90d","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/56748e154a9011f0d6239bec0823eaaeab6ec3f7","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jira.xwiki.org/browse/XWIKI-21335","tags":["exploit","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31997","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/xwiki/xwiki-platform","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-04-11T17:43:17.439Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-31997","url":"https://www.cve.org/CVERecord?id=CVE-2024-31997","licence":"CVE Terms of Use","modified":"2024-08-13T13:49:14.493Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-c2gg-4gq4-jv5j","url":"https://github.com/advisories/GHSA-c2gg-4gq4-jv5j","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:00.352Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-31997","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-31997","licence":"Public domain","modified":"2026-06-17T07:29:05.560Z"}],"updatedAt":"2026-11-25T22:58:39.081Z","epss":{"score":0.73925,"percentile":0.99483,"date":"2026-12-01T12:00:22.000Z"}}