XWiki allows remote code execution through default value of wiki macro wiki-type parameters
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Privilege escalation, Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-250 and CWE-94.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| XWiki | xwiki-platform | 11.10.11 to before 12.0; 12.6.3 to before 12.7; 12.8-rc-1 to before 16.4.7; 16.5.0-rc-1 to before 16.10.3; 17.0.0-rc-1 to before 17.0.0 | 12.0, 12.7, 16.4.7, 16.10.3, 17.0.0 | Patch available | CNA |
| — | org.xwiki.platform:xwiki-platform-rendering-wikimacro-store (Maven) | 11.10.11 and later | — | No fix listed | GHSA-9875-cw22-f7cx |
| — | org.xwiki.platform:xwiki-platform-rendering-wikimacro-store (Maven) | 12.6.3 and later | — | No fix listed | GHSA-9875-cw22-f7cx |
| — | org.xwiki.platform:xwiki-platform-rendering-wikimacro-store (Maven) | 12.8-rc-1 to before 16.4.7 | 16.4.7 | Patch available | GHSA-9875-cw22-f7cx |
| — | org.xwiki.platform:xwiki-platform-rendering-wikimacro-store (Maven) | 16.5.0-rc-1 to before 16.10.3 | 16.10.3 | Patch available | GHSA-9875-cw22-f7cx |
| — | org.xwiki.platform:xwiki-platform-rendering-wikimacro-store (Maven) | 17.0.0-rc-1 to before 17.0.0 | 17.0.0 | Patch available | GHSA-9875-cw22-f7cx |
- xwiki-platform VendorXWiki Affected 11.10.11 to before 12.0; 12.6.3 to before 12.7; 12.8-rc-1 to before 16.4.7; 16.5.0-rc-1 to before 16.10.3; 17.0.0-rc-1 to before 17.0.0 Fixed in 12.0, 12.7, 16.4.7, 16.10.3, 17.0.0 Patch available CNA
- org.xwiki.platform:xwiki-platform-rendering-wikimacro-store (Maven) Vendor— Affected 11.10.11 and later Fixed in — No fix listed GHSA-9875-cw22-f7cx
- org.xwiki.platform:xwiki-platform-rendering-wikimacro-store (Maven) Vendor— Affected 12.6.3 and later Fixed in — No fix listed GHSA-9875-cw22-f7cx
- org.xwiki.platform:xwiki-platform-rendering-wikimacro-store (Maven) Vendor— Affected 12.8-rc-1 to before 16.4.7 Fixed in 16.4.7 Patch available GHSA-9875-cw22-f7cx
- org.xwiki.platform:xwiki-platform-rendering-wikimacro-store (Maven) Vendor— Affected 16.5.0-rc-1 to before 16.10.3 Fixed in 16.10.3 Patch available GHSA-9875-cw22-f7cx
- org.xwiki.platform:xwiki-platform-rendering-wikimacro-store (Maven) Vendor— Affected 17.0.0-rc-1 to before 17.0.0 Fixed in 17.0.0 Patch available GHSA-9875-cw22-f7cx
Remediation
- Fix · CNA xwiki-platform (xwiki) Fixed in 12.0, 12.7, 16.4.7, 16.10.3, 17.0.0
- Fix · GHSA-9875-cw22-f7cx org.xwiki.platform:xwiki-platform-rendering-wikimacro-store (Maven) Fixed in 16.4.7 Advisory →
- Fix · GHSA-9875-cw22-f7cx org.xwiki.platform:xwiki-platform-rendering-wikimacro-store (Maven) Fixed in 16.10.3 Advisory →
- Fix · GHSA-9875-cw22-f7cx org.xwiki.platform:xwiki-platform-rendering-wikimacro-store (Maven) Fixed in 17.0.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2025-49581
- 2026-10-03 Alias added: GHSA-9875-cw22-f7cx
References
Advisory 2
More Xwiki vulnerabilities
- TI-2025-18595 Remote code execution as guest via SolrSearchMacros request in xwiki KEVCVSS 3.1CRITICAL 9.8
- TI-2023-25214 Remote code execution through the section parameter in Administration as guest in XWiki Platform CVSS 3.1CRITICAL 10.0
- TI-2025-23500 XWiki Platform vulnerable to SQL injection through getdeleteddocuments.vm template sort parameter CVSS 4.0CRITICAL 9.3
- TI-2025-23979 org.xwiki.platform:xwiki-platform-rest-server allows SQL injection in query endpoint of REST API CVSS 4.0CRITICAL 9.3
- TI-2024-20829 XWiki Platform: Remote code execution from account via SearchSuggestSourceSheet CVSS 3.1CRITICAL 10.0
- TI-2024-14375 XWiki Remote Code Execution vulnerability via user registration CVSS 3.1CRITICAL 10.0
Sources
- CVE-2025-49581 · CVE Program
- CVE-2025-49581 · NVD
- FIRST EPSS
- GHSA-9875-cw22-f7cx · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences