{"id":"CVE-2021-21379","published":"2021-03-12T17:30:15Z","modified":"2024-08-03T18:09:15Z","title":"It's possible to execute anything with the rights of the author of a macro which uses the {{wikimacrocontent}} macro","vendor":"xwiki","product":"xwiki-platform","tier":"tail","description":{"text":"XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In affected versions of XWiki Platform, the `{{wikimacrocontent}}` executes the content with the rights of the wiki macro author instead of the caller of that wiki macro. This makes possible to inject scripts through it and they will be executed with the rights of the wiki macro (very often a user which has Programming rights). Fortunately, no such macro exists by default in XWiki Standard but one could have been created or installed with an extension. This vulnerability has been patched in versions XWiki 12.6.3, 11.10.11 and 12.8-rc-1. There is no easy workaround other than disabling the affected macros. Inserting content in a safe way or knowing what is the user who called the wiki macro is not easy.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00476,"percentile":0.33414,"provenance":"source"},"cwes":[{"id":"CWE-281","name":"Improper Preservation of Permissions"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-v662-xpcc-9xf6","tags":["x_refsource_CONFIRM"]},{"url":"https://jira.xwiki.org/browse/XWIKI-17759","tags":["x_refsource_MISC"]}],"priority":{"score":12.1,"factors":[{"name":"EPSS percentile","points":6.68},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"xwiki","affectedVersions":[{"vendor":"xwiki","product":"xwiki-platform","versions":[">= 11.4.0, < 11.10.11",">= 12.0.0, < 12.6.3",">= 12.7.0, < 12.8-rc-1"]}],"affected":[{"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-rendering-wikimacro-store","vulnerableRanges":[">=11.4, <11.10.11",">=12.0, <12.6.3",">=12.7, <12.8"],"patched":["11.10.11","12.6.3","12.8"],"from":["GHSA-v662-xpcc-9xf6"],"provenance":"source"}],"summary":{"text":"The XWiki Platform (xwiki-platform) has a flaw in its {{wikimacrocontent}} macro, which runs content with the rights of the wiki macro's author rather than the rights of the user calling the macro. An attacker who can inject script through a wiki macro that uses {{wikimacrocontent}}, which is not present in XWiki Standard by default but may have been created or installed via an extension, can have that script run with the author's rights, which is often a user with Programming rights; exploitation requires low privileges, user interaction, and a macro of this kind to exist on the instance.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:38:08Z"},"euvd":{"id":"EUVD-2021-0708","exploited":false,"provenance":"source"}}