CVE-2025-49581
highpriority · track · 35EPSS 0.006 · 48 %ileDEEURUUSEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 6.3–8.8
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (30)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2025-1324xwiki: Mehrere SchwachstellenDeutsch2025-06-12csaf · cert_bundDE
Ein entfernter, authentisierter Angreifer kann mehrere Schwachstellen in xwiki ausnutzen, um seine Privilegien zu erhöhen, beliebigen Programmcode auszuführen, Informationen auszuspähen, Cross-Site-Scripting auszuführen oder weitere nicht spezifizierte Auswirkungen zu erzielen.
- GHSA-9875-cw22-f7cxXWiki allows remote code execution through default value of wiki macro wiki-type parameters2025-06-13ghsa · osvUS
### Impact 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 and thus impacts its confidentiality, integrity and availability. 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. The full reproduction steps can be found in the [original issue](https://jira.xwiki.org/browse/XWIKI-22760). ### Patches 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. ### Workarounds We're not aware of any workarounds except for upgrading.
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (11)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2025-49581cnnvd
- https://github.com/xwiki/xwiki-platform/commit/c99d501ed41cbee6a3c02ff927714531570789decnnvd
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-9875-cw22-f7cxcnnvd
- https://jira.xwiki.org/browse/XWIKI-22760cnnvd
- https://www.xwiki.org/xwiki/bin/view/Download/Patchcnnvd
- https://github.com/xwiki/xwiki-platform/commit/c99d501ed41cbee6a3c02ff927714531570789deenisa_euvd
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-9875-cw22-f7cxenisa_euvd
- https://jira.xwiki.org/browse/XWIKI-22760enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan