{"id":"CVE-2025-49581","published":"2025-06-13T16:09:22Z","modified":"2025-06-13T16:29:33Z","title":"XWiki allows remote code execution through default value of wiki macro wiki-type parameters","vendor":"xwiki","product":"xwiki-platform","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00633,"percentile":0.51293,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-270","name":"Privilege Context Switching Error"},{"id":"CWE-250","name":"Execution with Unnecessary Privileges"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-9875-cw22-f7cx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/c99d501ed41cbee6a3c02ff927714531570789de","tags":["x_refsource_MISC"]},{"url":"https://jira.xwiki.org/browse/XWIKI-22760","tags":["x_refsource_MISC"]}],"priority":{"score":16.3,"factors":[{"name":"EPSS percentile","points":10.26},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"xwiki","affectedVersions":[{"vendor":"xwiki","product":"xwiki-platform","versions":[">= 11.10.11, < 12.0",">= 12.6.3, < 12.7",">= 12.8-rc-1, < 16.4.7",">= 16.5.0-rc-1, < 16.10.3",">= 17.0.0-rc-1, < 17.0.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-06-13T16:24:56.018895Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-rendering-wikimacro-store","vulnerableRanges":[">=11.10.11, <12.0",">=12.6.3, <12.7",">=12.8-rc-1, <16.4.7",">=16.5.0-rc-1, <16.10.3",">=17.0.0-rc-1, <17.0.0"],"patched":["16.4.7","16.10.3","17.0.0"],"from":["GHSA-9875-cw22-f7cx"],"provenance":"source"}],"summary":{"text":"The XWiki Platform (xwiki-platform) contains a flaw in how wiki macro parameters that accept wiki syntax handle their default values: those defaults are executed with the rights of the author of the document where the macro is used, not the macro's author. An attacker who has edit rights on a page, such as their own user profile, can define a wiki macro that overrides an existing macro like the children macro, so that its default parameter value runs arbitrary Groovy, Python, or Velocity code with programming rights and therefore full access to the XWiki installation.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:17:51Z"},"euvd":{"id":"EUVD-2025-18284","exploited":false,"provenance":"source"}}