# CVE-2025-49581: XWiki allows remote code execution through default value of wiki macro wiki-type parameters

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.63%, higher than 51% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-06-13T16:09:22.997Z
- Modified: 2026-06-17T09:31:31.820Z
- Also known as: GHSA-9875-cw22-f7cx
- Weaknesses: CWE-94, CWE-250, CWE-270
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- xwiki xwiki-platform: >= 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
- org.xwiki.platform:xwiki-platform-rendering-wikimacro-store (Maven): from 11.10.11; from 12.6.3; from 12.8-rc-1 before 16.4.7; from 16.5.0-rc-1 before 16.10.3; from 17.0.0-rc-1 before 17.0.0
- xwiki xwiki: from 11.10.11 before 12.0; from 12.6.3 before 12.7; from 12.8 before 16.4.7; from 16.5.0 before 16.10.3; 17.0.0

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://jira.xwiki.org/browse/XWIKI-22760> (exploit, issue-tracking, vendor-advisory, web)
- <https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-9875-cw22-f7cx> (vendor-advisory, web)
- <https://github.com/xwiki/xwiki-platform/commit/c99d501ed41cbee6a3c02ff927714531570789de> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-49581> (advisory)
- <https://github.com/xwiki/xwiki-platform> (package)

## Sources

- CVE List: [CVE-2025-49581](https://www.cve.org/CVERecord?id=CVE-2025-49581), CVE Terms of Use, modified 2025-06-13
- GitHub Advisory Database: [GHSA-9875-cw22-f7cx](https://github.com/advisories/GHSA-9875-cw22-f7cx), CC-BY-4.0, modified 2026-04-01
- NVD: [CVE-2025-49581](https://nvd.nist.gov/vuln/detail/CVE-2025-49581), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-49581 · Whole record: https://cve.day/CVE-2025-49581.json · Rebuilt by cve.day 2026-11-25T22:58:59.207Z
