CVE-2025-49581 Details
Description
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.
A remote code execution vulnerability exists in XWiki versions 11.10.11 prior to 12.0, 12.6.3 prior to 12.7, 12.8-rc-1 prior to 16.4.7, 16.5.0-rc-1 prior to 16.10.3, and 17.0.0-rc-1 prior to 17.0.0. This vulnerability allows any user with edit rights on a page to execute code (Groovy, Python, Velocity) with programming rights by creating a wiki macro. The issue arises when a macro parameter permits wiki syntax; its default value is executed with the author's rights from the document where it is applied. This can be exploited by manipulating a macro, such as the 'children' macro, on a page with programming rights, like 'XWiki.ChildrenMacro', to execute arbitrary scripts.
Users can upgrade to XWiki versions 16.4.7, 16.10.3, or 17.0.0, where this vulnerability has been patched. Instructions for upgrading can be found in the XWiki documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jun 13, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/xwiki/xwiki-platform/commit/c99d501ed41cbee6a3c02ff927714531570789de | [email protected] | Patch |
| https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-9875-cw22-f7cx | [email protected] | Vendor Advisory |
| https://jira.xwiki.org/browse/XWIKI-22760 | [email protected] | ExploitIssue TrackingVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-250 | Execution with Unnecessary Privileges | [email protected] |
| CWE-270 | Privilege Context Switching Error | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| xwiki xwiki | >= 11.10.11, < 12.0 >= 12.6.3, < 12.7 >= 12.8, < 16.4.7 >= 16.5.0, < 16.10.3 17.0.0 rc1 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 3, 2025 | Initial Analysis | [email protected] |
| Jun 13, 2025 | New CVE Received | [email protected] |