{"cve":"CVE-2025-49581","nvd":{"published":"2025-06-13T16:15:27.570","modified":"2026-06-17T09:31:31.820","status":"Analyzed","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.","cvss_v4":{"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},"cvss_v3":{"version":"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},"cwes":["CWE-94","CWE-250","CWE-270"],"references":["https://github.com/xwiki/xwiki-platform/commit/c99d501ed41cbee6a3c02ff927714531570789de","https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-9875-cw22-f7cx","https://jira.xwiki.org/browse/XWIKI-22760"],"products":["xwiki:xwiki"],"source":"nvd","synced_at":"2026-10-19T22:02:23.998251710+00:00"},"epss":{"cve":"CVE-2025-49581","score":0.0059,"percentile":0.48221,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-9875-cw22-f7cx","url":"https://osv.dev/vulnerability/GHSA-9875-cw22-f7cx","summary":"XWiki allows remote code execution through default value of wiki macro wiki-type parameters","modified":"2026-04-01T17:34:16.732469Z","packages":[{"ecosystem":"Maven","name":"org.xwiki.platform:xwiki-platform-rendering-wikimacro-store","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-rendering-wikimacro-store","ranges":[">=11.10.11"],"fixed":[]},{"ecosystem":"Maven","name":"org.xwiki.platform:xwiki-platform-rendering-wikimacro-store","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-rendering-wikimacro-store","ranges":[">=12.6.3"],"fixed":[]},{"ecosystem":"Maven","name":"org.xwiki.platform:xwiki-platform-rendering-wikimacro-store","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-rendering-wikimacro-store","ranges":[">=12.8-rc-1 <16.4.7"],"fixed":["16.4.7"]},{"ecosystem":"Maven","name":"org.xwiki.platform:xwiki-platform-rendering-wikimacro-store","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-rendering-wikimacro-store","ranges":[">=16.5.0-rc-1 <16.10.3"],"fixed":["16.10.3"]},{"ecosystem":"Maven","name":"org.xwiki.platform:xwiki-platform-rendering-wikimacro-store","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-rendering-wikimacro-store","ranges":[">=17.0.0-rc-1 <17.0.0"],"fixed":["17.0.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}