{"id":"CVE-2024-55877","aliases":["CVE-2024-55877","GHSA-2r87-74cx-2p7c"],"related":[],"kind":"vulnerability","state":"published","title":"XWiki allows remote code execution from account through macro descriptions and XWiki.XWikiSyntaxMacrosList","summary":"XWiki Platform is a generic wiki platform. Starting in version 9.7-rc-1 and prior to versions 15.10.11, 16.4.1, and 16.5.0, any user with an account can perform arbitrary remote code execution by adding instances of `XWiki.WikiMacroClass` to any page. This compromises the confidentiality, integrity and availability of the whole XWiki installation. This vulnerability has been fixed in XWiki 15.10.11, 16.4.1 and 16.5.0. It is possible to manually apply the patch to the page `XWiki.XWikiSyntaxMacrosList` as a workaround.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"XWiki Platform is a generic wiki platform. Starting in version 9.7-rc-1 and prior to versions 15.10.11, 16.4.1, and 16.5.0, any user with an account can perform arbitrary remote code execution by adding instances of `XWiki.WikiMacroClass` to any page. This compromises the confidentiality, integrity and availability of the whole XWiki installation. This vulnerability has been fixed in XWiki 15.10.11, 16.4.1 and 16.5.0. It is possible to manually apply the patch to the page `XWiki.XWikiSyntaxMacrosList` as a workaround.","source":"cvelist"},{"lang":"en","text":"### Impact\nAny user with an account can perform arbitrary remote code execution by adding instances of `XWiki.WikiMacroClass` to any page. This compromises the confidentiality, integrity and availability of the whole XWiki installation.\n\nTo reproduce on a instance, as a connected user without script nor programming rights, go to your user profile and add an object of type `XWiki.WikiMacroClass`. Set \"Macro Id\", \"Macro Name\" and \"Macro Code\" to any value, \"Macro Visibility\" to `Current User` and \"Macro Description\" to `{{async}}{{groovy}}println(\"Hello from User macro!\"){{/groovy}}{{/async}}`.\nSave the page, then go to `<host>/xwiki/bin/view/XWiki/XWikiSyntaxMacrosList`.\nIf the description of your new macro reads \"Hello from User macro!\", then your instance is vulnerable.\n\n### Patches\nThis vulnerability has been fixed in XWiki 15.10.11, 16.4.1 and 16.5.0.\n\n### Workarounds\nIt is possible to manually apply [this patch](https://github.com/xwiki/xwiki-platform/commit/40e1afe001d61eafdf13f3621b4b597a0e58a3e3#diff-92fee29683e671b8bc668e3cf4295713d6259f715e3954876049f9de77c0a9ef) to the page `XWiki.XWikiSyntaxMacrosList`.\n\n### References\n\n* https://jira.xwiki.org/browse/XWIKI-22030\n* https://github.com/xwiki/xwiki-platform/commit/40e1afe001d61eafdf13f3621b4b597a0e58a3e3","format":"markdown","source":"ghsa"},{"lang":"es","text":"XWiki Platform es una plataforma wiki genérica. A partir de la versión 9.7-rc-1 y antes de las versiones 15.10.11, 16.4.1 y 16.5.0, cualquier usuario con una cuenta puede ejecutar código remoto arbitrario añadiendo instancias de `XWiki.WikiMacroClass` a cualquier página. Esto compromete la confidencialidad, integridad y disponibilidad de toda la instalación de XWiki. Esta vulnerabilidad ha sido corregida en XWiki 15.10.11, 16.4.1 y 16.5.0. Es posible aplicar manualmente el parche a la página `XWiki.XWikiSyntaxMacrosList` como workaround.","source":"nvd"}],"published":"2024-12-12T19:13:43.128Z","modified":"2026-06-17T08:11:23.777Z","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-94","CWE-96"],"affected":[{"ranges":[{"version":">= 9.7-rc-1, < 15.10.11","status":"affected"},{"version":">= 16.0.0-rc-1, < 16.4.1","status":"affected"},{"version":">= 16.5.0-rc-1, < 16.5.0","status":"affected"}],"vendor":"xwiki","product":"xwiki-platform","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"9.7-rc-1","status":"affected","fixed":"15.10.11"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-help-ui","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-help-ui","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"16.0.0-rc-1","status":"affected","fixed":"16.4.1"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-help-ui","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-help-ui","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"16.5.0-rc-1","status":"affected","fixed":"16.5.0"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-help-ui","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-help-ui","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"9.7","fixed":"15.10.11"},{"status":"affected","introduced":"16.0.0","fixed":"16.4.1"},{"status":"affected","version":"16.5.0"}],"vendor":"xwiki","product":"xwiki","cpe":"cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-2r87-74cx-2p7c","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/40e1afe001d61eafdf13f3621b4b597a0e58a3e3","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jira.xwiki.org/browse/XWIKI-22030","tags":["exploit","vendor-advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-55877","tags":["advisory"],"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-12-13T14:50:58.693Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-55877","url":"https://www.cve.org/CVERecord?id=CVE-2024-55877","licence":"CVE Terms of Use","modified":"2024-12-13T14:54:49.185Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-2r87-74cx-2p7c","url":"https://github.com/advisories/GHSA-2r87-74cx-2p7c","licence":"CC-BY-4.0","modified":"2024-12-12T22:33:07.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-55877","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-55877","licence":"Public domain","modified":"2026-06-17T08:11:23.777Z"}],"updatedAt":"2026-11-25T22:58:50.069Z","epss":{"score":0.01603,"percentile":0.76544,"date":"2026-12-01T12:00:22.000Z"}}