Vulnerabilities

CVE-2025-49581

High 8.8 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2025-06-13
Last modified
2026-06-17
Assigned by
security-advisories@github.com
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
0.5 % higher than 39 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Yes, see references

Affected products

Vendor Product Versions Status
org.xwiki.platform xwiki-platform-rendering-wikimacro-store (Maven) ≥ 11.10.11 Affected
org.xwiki.platform xwiki-platform-rendering-wikimacro-store (Maven) ≥ 12.6.3 Affected
org.xwiki.platform xwiki-platform-rendering-wikimacro-store (Maven) ≥ 12.8-rc-1, < 16.4.7 Affected
org.xwiki.platform xwiki-platform-rendering-wikimacro-store (Maven) ≥ 16.5.0-rc-1, < 16.10.3 Affected
org.xwiki.platform xwiki-platform-rendering-wikimacro-store (Maven) ≥ 17.0.0-rc-1, < 17.0.0 Affected
Xwiki Xwiki 17.0.0 Affected
Xwiki Xwiki ≥ 11.10.11, < 12.0 Affected
Xwiki Xwiki ≥ 12.6.3, < 12.7 Affected
Xwiki Xwiki ≥ 12.8, < 16.4.7 Affected
Xwiki Xwiki ≥ 16.5.0, < 16.10.3 Affected

Weakness type

  • CWE-250: Execution with Unnecessary Privileges

    The product performs an operation at a privilege level that is higher than the minimum level required, which creates new weaknesses or amplifies the consequences of other weaknesses.

  • CWE-270: Privilege Context Switching Error

    The product does not properly manage privileges while it is switching between different contexts that have different privileges or spheres of control.

  • CWE-94: Improper Control of Generation of Code

    The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or b…

Attack techniques

Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.

  • T1027.006: HTML Smuggling stealth
  • T1027.009: Embedded Payloads stealth
  • T1055.003: Thread Execution Hijacking stealth, privilege-escalation
  • T1564.009: Resource Forking stealth
  • T1574.005: Executable Installer File Permissions Weakness stealth, execution
  • T1574.010: Services File Permissions Weakness stealth, execution

References

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities