Arbitrary Code Execution Vulnerability in XWiki by XWiki SAS
CVE-2025-49581
What is CVE-2025-49581?
A vulnerability in XWiki allows users with edit rights to execute arbitrary code through specially crafted wiki macros. When a wiki macro is designed to accept parameters that permit wiki syntax, it may execute with the permissions of the document's author if default values are used. This means that an attacker can manipulate a macro, like the children macro, to execute unauthorized scripts, granting them full access to the XWiki installation. XWiki has addressed this issue in versions 16.4.7, 16.10.3, and 17.0.0 by reconfiguring the execution parameters to operate under the macro's author's rights when default values are applied.
Affected Version(s)
xwiki-platform >= 11.10.11, < 12.0 < 11.10.11, 12.0
xwiki-platform >= 12.6.3, < 12.7 < 12.6.3, 12.7
xwiki-platform >= 12.8-rc-1, < 16.4.7 < 12.8-rc-1, 16.4.7