CVE-2025-49581

XWiki allows remote code execution through default value of wiki macro wiki-type parameters

HIGH
8.8
CVSS Score
Published: June 13, 2025 at 04:09 PM UTC
Updated: June 17, 2026 at 09:31 AM UTC
1 product affected across 1 vendorXwiki

Using xwiki-platform by xwiki?

Get instant alerts when new vulnerabilities affect xwiki-platform - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.8
Exploit prediction
EPSS 0.6%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 12.0v < 12.7v < 16.10.3v < 16.4.7v < 17.0.011.10.11 ≤ v < 12.012.6.3 ≤ v < 12.712.8 ≤ v < 16.4.716.5.0 ≤ v < 16.10.317.0.0 rc1
Affected range stops below 12.0, so it looks safe — our inference, not a vendor statement
Affected range stops below 12.7, so it looks safe — our inference, not a vendor statement
Affected range stops below 16.10.3, so it looks safe — our inference, not a vendor statement
Affected range stops below 16.4.7, so it looks safe — our inference, not a vendor statement
Affected range stops below 17.0.0, so it looks safe — our inference, not a vendor statement

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-94CWE-250CWE-270

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card