{"id":"CVE-2023-37912","aliases":["CVE-2023-37912","GHSA-35j5-m29r-xfq5"],"related":[],"kind":"vulnerability","state":"published","title":"XWiki Rendering's footnote macro vulnerable to privilege escalation via the footnote macro","summary":"XWiki Rendering is a generic Rendering system that converts textual input in a given syntax into another syntax. Prior to version 14.10.6 of `org.xwiki.platform:xwiki-core-rendering-macro-footnotes` and `org.xwiki.platform:xwiki-rendering-macro-footnotes` and prior to version 15.1-rc-1 of `org.xwiki.platform:xwiki-rendering-macro-footnotes`, the footnote macro executed its content in a potentially different context than the one in which it was defined. In particular in combination with the include macro, this allows privilege escalation from a simple user account in XWiki to programming rights and thus remote code execution, impacting the confidentiality, integrity and availability of the whole XWiki installation. This vulnerability has been patched in XWiki 14.10.6 and 15.1-rc-1. There is no workaround apart from upgrading to a fixed version of the footnote macro.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"XWiki Rendering is a generic Rendering system that converts textual input in a given syntax into another syntax. Prior to version 14.10.6 of `org.xwiki.platform:xwiki-core-rendering-macro-footnotes` and `org.xwiki.platform:xwiki-rendering-macro-footnotes` and prior to version 15.1-rc-1 of `org.xwiki.platform:xwiki-rendering-macro-footnotes`, the footnote macro executed its content in a potentially different context than the one in which it was defined. In particular in combination with the include macro, this allows privilege escalation from a simple user account in XWiki to programming rights and thus remote code execution, impacting the confidentiality, integrity and availability of the whole XWiki installation. This vulnerability has been patched in XWiki 14.10.6 and 15.1-rc-1. There is no workaround apart from upgrading to a fixed version of the footnote macro.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe footnote macro executed its content in a potentially different context than the one in which it was defined. In particular in combination with the include macro, this allows privilege escalation from a simple user account in XWiki to programming rights and thus remote code execution, impacting the confidentiality, integrity and availability of the whole XWiki installation.\n\nTo reproduce, perform the following steps:\n\n1. Edit your user profile with the object editor and add an object of type DocumentSheetBinding with value XWiki.ClassSheet\n2. Edit your user profile with the wiki editor and add the syntax `{{footnote}}{{groovy}}println(\"Hello \" + \"from groovy!\"){{/groovy}}{{/footnote}}`\n\nWhen the text \"Hello from groovy!\" is displayed at the bottom of the document, the installation is vulnerable. Instead, an error should be displayed.\n\n### Patches\nThis vulnerability has been patched in XWiki 14.10.6 and 15.1-rc-1.\n\n### Workarounds\nThere is no workaround apart from upgrading to a fixed version of the footnote macro.\n\n### References\n* https://jira.xwiki.org/browse/XRENDERING-688\n* https://github.com/xwiki/xwiki-rendering/commit/5f558b8fac8b716d19999225f38cb8ed0814116e","format":"markdown","source":"ghsa"},{"lang":"es","text":"XWiki Rendering es un sistema de renderizado genérico que convierte la entrada de texto en una sintaxis determinada en otra sintaxis. Antes de la versión 14.10.6 de `org.xwiki.platform:xwiki-core-rendering-macro-footnotes` y `org.xwiki.platform:xwiki-rendering-macro-footnotes` y antes de la versión 15.1-rc-1 de `org.xwiki.platform:xwiki-rendering-macro-footnotes`, la macro de nota al pie ejecutó su contenido en un contexto potencialmente diferente a aquel en el que se definió. En particular, en combinación con la macro de inclusión, esto permite escalar privilegios desde una simple cuenta de usuario en XWiki hasta derechos de programación y, por lo tanto, ejecución remota de código, lo que afecta la confidencialidad, integridad y disponibilidad de toda la instalación de XWiki. Esta vulnerabilidad ha sido parcheada en XWiki 14.10.6 y 15.1-rc-1. No existe otro workaround aparte de actualizar a una versión fija de la macro de notas al pie.","source":"nvd"}],"published":"2023-10-25T17:33:54.756Z","modified":"2026-09-10T03:50:03.521Z","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:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"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-270"],"affected":[{"ranges":[{"version":"< 14.10.6","status":"affected"},{"version":">= 15.0-rc-1, < 15.1-rc-1","status":"affected"}],"vendor":"xwiki","product":"xwiki-rendering","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"14.10.6"}],"ecosystem":"Maven","package":"org.xwiki.rendering:xwiki-rendering-macro-footnotes","purl":"pkg:maven/org.xwiki.rendering/xwiki-rendering-macro-footnotes","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"15.0-rc-1","status":"affected","fixed":"15.1-rc-1"}],"ecosystem":"Maven","package":"org.xwiki.rendering:xwiki-rendering-macro-footnotes","purl":"pkg:maven/org.xwiki.rendering/xwiki-rendering-macro-footnotes","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"14.10.6"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-core-rendering-macro-footnotes","purl":"pkg:maven/org.xwiki.platform/xwiki-core-rendering-macro-footnotes","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"14.10.6"},{"status":"affected","version":"15.0"}],"vendor":"xwiki","product":"xwiki-rendering","cpe":"cpe:2.3:a:xwiki:xwiki-rendering:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/xwiki/xwiki-rendering/security/advisories/GHSA-35j5-m29r-xfq5","tags":["patch","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-rendering/commit/5f558b8fac8b716d19999225f38cb8ed0814116e","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jira.xwiki.org/browse/XRENDERING-688","tags":["exploit","issue-tracking","patch","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-37912","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/xwiki/xwiki-rendering","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"total","date":"2024-09-10T18:34:21.859Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-37912","url":"https://www.cve.org/CVERecord?id=CVE-2023-37912","licence":"CVE Terms of Use","modified":"2024-09-12T20:47:45.452Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-35j5-m29r-xfq5","url":"https://github.com/advisories/GHSA-35j5-m29r-xfq5","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:03.521Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-37912","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-37912","licence":"Public domain","modified":"2026-06-17T06:08:53.313Z"}],"updatedAt":"2026-11-25T22:58:29.046Z","epss":{"score":0.01452,"percentile":0.74177,"date":"2026-12-01T12:00:22.000Z"}}