{"id":"CVE-2025-49581","aliases":["CVE-2025-49581","GHSA-9875-cw22-f7cx"],"related":[],"kind":"vulnerability","state":"published","title":"XWiki allows remote code execution through default value of wiki macro wiki-type parameters","summary":"XWiki is a generic wiki platform. Any user with edit right on a page (could be the user's profile) can execute code (Groovy, Python, Velocity) with programming right by defining a wiki macro. This allows full access to the whole XWiki installation. The main problem is that if a wiki macro parameter allows wiki syntax, its default value is executed with the rights of the author of the document where it is used. This can be exploited by overriding a macro like the children macro that is used in a page that has programming right like the page XWiki.ChildrenMacro and thus allows arbitrary script macros. This vulnerability has been patched in XWiki 16.4.7, 16.10.3 and 17.0.0 by executing wiki parameters with the rights of the wiki macro's author when the parameter's value is the default value.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"XWiki is a generic wiki platform. Any user with edit right on a page (could be the user's profile) can execute code (Groovy, Python, Velocity) with programming right by defining a wiki macro. This allows full access to the whole XWiki installation. The main problem is that if a wiki macro parameter allows wiki syntax, its default value is executed with the rights of the author of the document where it is used. This can be exploited by overriding a macro like the children macro that is used in a page that has programming right like the page XWiki.ChildrenMacro and thus allows arbitrary script macros. This vulnerability has been patched in XWiki 16.4.7, 16.10.3 and 17.0.0 by executing wiki parameters with the rights of the wiki macro's author when the parameter's value is the default value.","source":"cvelist"},{"lang":"en","text":"### Impact\nAny user with edit right on a page (could be the user's profile) can execute code (Groovy, Python, Velocity) with programming right by defining a wiki macro. This allows full access to the whole XWiki installation and thus impacts its confidentiality, integrity and availability. The main problem is that if a wiki macro parameter allows wiki syntax, its default value is executed with the rights of the author of the document where it is used. This can be exploited by overriding a macro like the `children` macro that is used in a page that has programming right like the page `XWiki.ChildrenMacro` and thus allows arbitrary script macros. The full reproduction steps can be found in the [original issue](https://jira.xwiki.org/browse/XWIKI-22760).\n\n### Patches\nThis vulnerability has been patched in XWiki 16.4.7, 16.10.3 and 17.0.0 by executing wiki parameters with the rights of the wiki macro's author when the parameter's value is the default value.\n\n### Workarounds\nWe're not aware of any workarounds except for upgrading.","format":"markdown","source":"ghsa"},{"lang":"es","text":"XWiki es una plataforma wiki genérica. Cualquier usuario con permisos de edición en una página (podría ser su perfil) puede ejecutar código (Groovy, Python, Velocity) con permisos de programación mediante la definición de una macro wiki. Esto permite acceso completo a toda la instalación de XWiki. El principal problema radica en que si un parámetro de una macro wiki permite la sintaxis wiki, su valor predeterminado se ejecuta con los permisos del autor del documento donde se utiliza. Esto se puede explotar sobrescribiendo una macro como la macro secundaria que se utiliza en una página con permisos de programación, como la página XWiki.ChildrenMacro, lo que permite macros de script arbitrarias. Esta vulnerabilidad se ha corregido en XWiki 16.4.7, 16.10.3 y 17.0.0 mediante la ejecución de parámetros wiki con los permisos del autor de la macro wiki cuando el valor del parámetro es el predeterminado.","source":"nvd"}],"published":"2025-06-13T16:09:22.997Z","modified":"2026-06-17T09:31:31.820Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","score":8.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","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-94","CWE-250","CWE-270"],"affected":[{"ranges":[{"version":">= 11.10.11, < 12.0","status":"affected"},{"version":">= 12.6.3, < 12.7","status":"affected"},{"version":">= 12.8-rc-1, < 16.4.7","status":"affected"},{"version":">= 16.5.0-rc-1, < 16.10.3","status":"affected"},{"version":">= 17.0.0-rc-1, < 17.0.0","status":"affected"}],"vendor":"xwiki","product":"xwiki-platform","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"11.10.11","status":"affected"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-rendering-wikimacro-store","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-rendering-wikimacro-store","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"12.6.3","status":"affected"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-rendering-wikimacro-store","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-rendering-wikimacro-store","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"12.8-rc-1","status":"affected","fixed":"16.4.7"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-rendering-wikimacro-store","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-rendering-wikimacro-store","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"16.5.0-rc-1","status":"affected","fixed":"16.10.3"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-rendering-wikimacro-store","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-rendering-wikimacro-store","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"17.0.0-rc-1","status":"affected","fixed":"17.0.0"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-rendering-wikimacro-store","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-rendering-wikimacro-store","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"11.10.11","fixed":"12.0"},{"status":"affected","introduced":"12.6.3","fixed":"12.7"},{"status":"affected","introduced":"12.8","fixed":"16.4.7"},{"status":"affected","introduced":"16.5.0","fixed":"16.10.3"},{"status":"affected","version":"17.0.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-9875-cw22-f7cx","tags":["vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/c99d501ed41cbee6a3c02ff927714531570789de","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jira.xwiki.org/browse/XWIKI-22760","tags":["exploit","issue-tracking","vendor-advisory","web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-49581","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":"2025-06-13T16:24:56.018Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-49581","url":"https://www.cve.org/CVERecord?id=CVE-2025-49581","licence":"CVE Terms of Use","modified":"2025-06-13T16:29:33.031Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9875-cw22-f7cx","url":"https://github.com/advisories/GHSA-9875-cw22-f7cx","licence":"CC-BY-4.0","modified":"2026-04-01T17:34:16.732Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-49581","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-49581","licence":"Public domain","modified":"2026-06-17T09:31:31.820Z"}],"updatedAt":"2026-11-25T22:58:59.207Z","epss":{"score":0.00633,"percentile":0.51677,"date":"2026-12-01T12:00:22.000Z"}}