CVE-2025-49581
published high CVSS 4.0 · 8.7XWiki allows remote code execution through default value of wiki macro wiki-type parameters
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| 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 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| xwiki | xwiki-platform | >= 11.10.11, < 12.0 (affected)>= 12.6.3, < 12.7 (affected)>= 12.8-rc-1, < 16.4.7 (affected)>= 16.5.0-rc-1, < 16.10.3 (affected)>= 17.0.0-rc-1, < 17.0.0 (affected) | GitHub_M · cna |
Weaknesses
3- CWE-94 CWE-94: Improper Control of Generation of Code ('Code Injection')
- CWE-270 CWE-270: Privilege Context Switching Error
- CWE-250 CWE-250: Execution with Unnecessary Privileges
References
3Provider assertions
2GitHub_M · cna
XWiki allows remote code execution through default value of wiki macro wiki-type parameters
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- ad62a84173fca6f003eb42ce496f8364f6b240ae41102b636a5967eb6fc3704f
- Ingested
- 23 Sep 2026, 08:51:18 UTC
- Source record
- Official CVE record