{"id":"CVE-2025-53836","aliases":["CVE-2025-53836","GHSA-32mf-57h2-64x9"],"related":[],"kind":"vulnerability","state":"published","title":"XWiki Rendering is vulnerable to RCE attacks when processing nested macros","summary":"XWiki Rendering is a generic rendering system that converts textual input in a given syntax (wiki syntax, HTML, etc) into another syntax (XHTML, etc). Starting in version 4.2-milestone-1 and prior to versions 13.10.11, 14.4.7, and 14.10, the default macro content parser doesn't preserve the restricted attribute of the transformation context when executing nested macros. This allows executing macros that are normally forbidden in restricted mode, in particular script macros. The cache and chart macros that are bundled in XWiki use the vulnerable feature. This has been patched in XWiki 13.10.11, 14.4.7 and 14.10. To avoid the exploitation of this bug, comments can be disabled for untrusted users until an upgrade to a patched version has been performed. Note that users with edit rights will still be able to add comments via the object editor even if comments have been disabled.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"XWiki Rendering is a generic rendering system that converts textual input in a given syntax (wiki syntax, HTML, etc) into another syntax (XHTML, etc). Starting in version 4.2-milestone-1 and prior to versions 13.10.11, 14.4.7, and 14.10, the default macro content parser doesn't preserve the restricted attribute of the transformation context when executing nested macros. This allows executing macros that are normally forbidden in restricted mode, in particular script macros. The cache and chart macros that are bundled in XWiki use the vulnerable feature. This has been patched in XWiki 13.10.11, 14.4.7 and 14.10. To avoid the exploitation of this bug, comments can be disabled for untrusted users until an upgrade to a patched version has been performed. Note that users with edit rights will still be able to add comments via the object editor even if comments have been disabled.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nThe default macro content parser didn't preserve the restricted attribute of the transformation context when executing nested macros. This allows executing macros that are normally forbidden in restricted mode, in particular script macros. The [cache](https://extensions.xwiki.org/xwiki/bin/view/Extension/Cache%20Macro) and [chart](https://extensions.xwiki.org/xwiki/bin/view/Extension/Chart%20Macro) macros that are bundled in XWiki use the vulnerable feature. The following XWiki syntax, when used inside a comment in XWiki, demonstrates the privilege escalation from comment right to programming right and thus remote code execution (RCE) that is possible due to this:\n\n```\n{{cache}}{{groovy}}println(\"Hello from Groovy!\"){{/groovy}}{{/cache}}\n```\n\nThis vulnerability exists since the restricted attribute has been added to the transformation context in version 4.2.\n\n### Patches\nThis has been patched in XWiki 13.10.11, 14.4.7 and 14.10.\n\n### Workarounds\nTo avoid the exploitation of this bug, comments can be disabled for untrusted users until an upgrade to a patched version has been performed. Note that users with edit rights will still be able to add comments via the object editor even if comments have been disabled.\n\n### Resources\n* https://github.com/xwiki/xwiki-rendering/commit/c73fa3ccd4ac59057e48e5d4325f659e78e8f86d\n* https://jira.xwiki.org/browse/XRENDERING-689\n* https://jira.xwiki.org/browse/XWIKI-20375\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [Jira XWiki.org](https://jira.xwiki.org/)\n* Email us at [Security Mailing List](mailto:security@xwiki.org)\n\n### Attribution\n\nThis vulnerability has been reported on Intigriti by René de Sain @renniepak.","format":"markdown","source":"ghsa"},{"lang":"es","text":"XWiki Rendering es un sistema de renderizado genérico que convierte la entrada textual en una sintaxis dada (sintaxis wiki, HTML, etc.) en otra sintaxis (XHTML, etc.). A partir de la versión 4.2-milestone-1 y anteriores a las versiones 13.10.11, 14.4.7 y 14.10, el analizador de contenido de macros predeterminado no conserva el atributo restringido del contexto de transformación al ejecutar macros anidadas. Esto permite ejecutar macros que normalmente están prohibidas en modo restringido, en particular las macros de script. Las macros de caché y gráficos incluidas en XWiki utilizan esta función vulnerable. Esto se ha corregido en XWiki 13.10.11, 14.4.7 y 14.10. Para evitar que se aproveche este fallo, se pueden desactivar los comentarios para usuarios no confiables hasta que se actualice a una versión corregida. Tenga en cuenta que los usuarios con permisos de edición podrán añadir comentarios a través del editor de objetos, incluso si los comentarios se han desactivado.","source":"nvd"}],"published":"2025-07-14T22:03:06.000Z","modified":"2026-09-10T03:50:58.039Z","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-863"],"affected":[{"ranges":[{"version":">= 4.2-milestone-1, < 13.10.11","status":"affected"},{"version":">= 14.0, < 14.4.7","status":"affected"},{"version":">= 14.5, < 14.10","status":"affected"}],"vendor":"xwiki","product":"xwiki-rendering","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"4.2-milestone-1","status":"affected","fixed":"13.10.11"}],"ecosystem":"Maven","package":"org.xwiki.rendering:xwiki-rendering-transformation-macro","purl":"pkg:maven/org.xwiki.rendering/xwiki-rendering-transformation-macro","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"14.0","status":"affected","fixed":"14.4.7"}],"ecosystem":"Maven","package":"org.xwiki.rendering:xwiki-rendering-transformation-macro","purl":"pkg:maven/org.xwiki.rendering/xwiki-rendering-transformation-macro","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"14.5","status":"affected","fixed":"14.10"}],"ecosystem":"Maven","package":"org.xwiki.rendering:xwiki-rendering-transformation-macro","purl":"pkg:maven/org.xwiki.rendering/xwiki-rendering-transformation-macro","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.3","fixed":"13.10.11"},{"status":"affected","introduced":"14.0","fixed":"14.4.7"},{"status":"affected","introduced":"14.5","fixed":"14.10"},{"status":"affected","version":"4.2"},{"status":"affected","version":"4.2"},{"status":"affected","version":"4.2"},{"status":"affected","version":"4.2"}],"vendor":"xwiki","product":"xwiki","cpe":"cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/xwiki/xwiki-rendering/security/advisories/GHSA-32mf-57h2-64x9","tags":["exploit","third-party-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-rendering/commit/c73fa3ccd4ac59057e48e5d4325f659e78e8f86d","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jira.xwiki.org/browse/XRENDERING-689","tags":["exploit","issue-tracking","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jira.xwiki.org/browse/XWIKI-20375","tags":["exploit","issue-tracking","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-53836","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":"2025-07-15T13:24:52.433Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-53836","url":"https://www.cve.org/CVERecord?id=CVE-2025-53836","licence":"CVE Terms of Use","modified":"2025-07-15T19:49:20.208Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-32mf-57h2-64x9","url":"https://github.com/advisories/GHSA-32mf-57h2-64x9","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:58.039Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-53836","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-53836","licence":"Public domain","modified":"2026-06-17T09:39:00.340Z"}],"updatedAt":"2026-11-25T22:59:01.253Z","epss":{"score":0.00638,"percentile":0.51889,"date":"2026-12-01T12:00:22.000Z"}}