RCE in Xwiki
CVE-2025-49581
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.
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.006 (46.1th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 46th percentile — 46.1% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.005 · newest: 0.006 · change: +0.001
Affected products
- Xwiki — versions 17.0.0
- Xwiki Xwiki-Platform — versions >= 11.10.11, < 12.0, >= 12.6.3, < 12.7, >= 12.8-rc-1, < 16.4.7
Weakness classification (CWE)
References
- github.com/xwiki/xwiki-platform/security/advisories/GHSA-9875-cw22-f7cx (Vendor Advisory)
- github.com/xwiki/xwiki-platform/commit/c99d501ed41cbee6a3c02ff927714531570789de (Patch)
- jira.xwiki.org/browse/XWIKI-22760 (Exploit, Issue Tracking, Vendor Advisory)
Frequently asked questions
- What is CVE-2025-49581?
- CVE-2025-49581 is a high-severity vulnerability in Xwiki, classified under Code Injection. CVSS score: 8.8/10. Published 2025-06-13.
- How severe is CVE-2025-49581?
- High severity. CVSS v3 base score is 8.8 out of 10.